Python installation and module related Question. Plz help.
I am relatively new to linux and I have some issues with running python.
I am working on a lab network computer in which i donot have root permission. I have a local folder with all permissions.
The computer has python2.4 but I need 2.5 for running a simulator. So I compiled python2.5 in the /usr/local/myfolder/python2.5 that I have permission. I have added /usr/local/myfolder/python2.5/bin to the "path" variable using the "set" command. I also set the 'PYTHONPATH" variable to point to "usr/local/myfolder/python2.5/lib"
When I enter "python" in the command line from anywhere, version 2.5 opens up as expected. So I guess the "set path" was successful.
But when I try and run the simulator, it shows an error. The error is a keyError shown below
File "/projects/code/src/customlogger.py", line 60, in analysis
apply(self._log, (ANALYSIS, msg, args), kwargs)
File "/usr/lib/python2.4/logging/__init__.py", line 408, in format
s = self._fmt % record.__dict__
Now my question is, since I have the PYTHONPATH set to the new location, shouldn't "import logging" in the code import that module from the new PYTHONPATH (there is a logging folder there) rather than the old place (as shown in bold in the error messaqe above) ?
The simulator is incompatible with older version so it would be great if someone could clarify what is happening here and tell me how to run the new version (I CANNOT install the new version as root)
I appreciate your time !! Thanks !!
Last edited by nm_ashy; 11-18-2008 at 11:39 PM.