I get the following error while running some python code
Traceback (most recent call last): File "./dspl.py", line 4, in import base ImportError: No module named base
The disp.py is in directory PERSISTENCE_LENGTH, as listed below. The disp.py imports few python scripts that are inside the directory UTILS (shown below). I added the path of imported directory (/home/vinay/oxDNA) to PYTHONPATH i.e.,export PYTHONPATH=${PYTHONPATH}:/home/vinay/oxDNA/). There is a proper__init__.py file inside the UTILS directory.
disp.py is in the directory: /home/vinay/oxDNA/EXAMPLES/PERSISTENCE_LENGTH
disp.py is importing other modules that are in the directory: /home/vinay/oxDNA/UTILS
When I print sys.path, I can see that PYTHONPATH is okay. as shown below ['', '/home/vinay', '/home/vinay/oxDNA/UTILS', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-linux2', )
init.pyor an__init__.py? - Klaus D./home/user/mymodules/XYZ.__init__.py, PYTHONPATH would be/home/user/mymodules- tdelaney