python - PYTHONPATH missing from environment -


please me understand this. here can see have pythonpath set (it's .bashrc)

jean@klippie:~$ echo $pythonpath  :/home/jean/local/lib/python2.6/site-packages 

but if try launch in local site-packages ignored:

jean@klippie:~$ gtimelog traceback (most recent call last):   file "/home/jean/bin/gtimelog", line 5, in <module>     pkg_resources import load_entry_point   file "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 2671, in <module>     working_set.require(__requires__)   file "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 654, in require     needed = self.resolve(parse_requirements(requirements))   file "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 552, in resolve     raise distributionnotfound(req) pkg_resources.distributionnotfound: gtimelog==0.5.0 

now if manually export pythonpath value echo showed me above, not ignored:

jean@klippie:~$ export pythonpath=:/home/jean/local/lib/python2.6/site-packages jean@klippie:~$ gtimelog # success 

any clue what's going wrong?

most probably, set shell variable pythonpath in .bashrc, don't export variable environment. printing via echo shows shell variable has printed value. try

env | grep pythonpath 

to query if pythonpath in environment , make sure export in .bashrc.


Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -