0

How can I add path to the PYTHONPATH environment variable I tried using "sudo so" in .bash and also tried

export PYTHONPATH=$PYTHONPATH:/home/01_Understand/scitools/bin/linux32/python

but I am still getting import error. I actually want to use Understand module (understand.py) with Geany but there is always an error stating

ImportError: No module named understand

Can anyone help me in this regard ?

Thanks

0circle
  • 55
  • 1
  • 9
  • How have you installed the module? either apt or pip/setuptools should take care of adjusting PYTHONPATH for you. – Davidmh Jun 04 '14 at 12:22
  • _The Understand module is located in the SciTools installation directory at SciTools\bin\\python and that path should be added to the PYTHONPATH environment variable to access these features._ This is what is written on their web page and I am doing accordingly, yet not successful. – 0circle Jun 04 '14 at 12:34
  • Uff. My first reaction is "if they don't provide an installer it can't be good". Can you, from your user, read the file? Is that directory in your user's PYTHONPATH before starting Python? – Davidmh Jun 04 '14 at 12:37
  • There is just one understand.so file present – 0circle Jun 04 '14 at 12:40
  • It could be a compiled Python extension. You can inspect the content `nm understand.so`, and see if there is Python stuff (thins like PyNumber_Int). – Davidmh Jun 04 '14 at 12:46
  • just did it and unfortunately there is nothing like python stuff :( – 0circle Jun 04 '14 at 12:51
  • This is nothing related to Geany. But keep in mind, .bashrc is not parsed on an X environment... this needs to be put into .profile. – frlan Jun 05 '14 at 05:18

0 Answers0