Skip to content

Instantly share code, notes, and snippets.

@nelsonjchen
Created April 8, 2013 03:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nelsonjchen/5333916 to your computer and use it in GitHub Desktop.
Save nelsonjchen/5333916 to your computer and use it in GitHub Desktop.
[19:48:25] <cinnamyn77> it turned out my issue wasn't directly related to pycharm
[19:49:06] <cinnamyn77> though i am still slightly mystified that sys.modules had different directory capitalizations in pycharm and on the cli
[19:52:39] <crazysim> oh?
[19:52:58] <crazysim> what was it
[19:54:54] <cinnamyn77> deep in the test loaders in nose, it does some module checking
[19:55:16] <cinnamyn77> it was comparing the result of os.getcwd() to sys.modules
[19:55:25] <cinnamyn77> one had my home dir with my name capitalized, and one did not
[19:55:30] <crazysim> hmm
[19:55:36] <cinnamyn77> so the comparison failed, the modules were stripped out, and imports failed
[19:55:52] <cinnamyn77> i ended up renaming my homedir to be capitalized ><
[19:56:19] <cinnamyn77> one could add a lower() call on the comparison, but that wouldn't be safe if the fs is case-sensitive
[19:56:58] <crazysim> yeah
[19:58:32] <crazysim> OS X?
[19:58:52] <cinnamyn77> yes
[19:59:14] <crazysim> welp, lets blame adobe. damn suite requires case insensitivity. i blame them.
[19:59:18] <cinnamyn77> i was pulling my hair out
[19:59:23] <cinnamyn77> yeah, i heard about that
[19:59:34] <cinnamyn77> i have very similar setups at home and work
[20:00:05] <cinnamyn77> same os version, same pycharm version, virtualenvs built from the same requirements file...
[20:00:17] <cinnamyn77> however! my homedir at work has Name and home has name
[20:00:18] <cinnamyn77> sigh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment