Probably you have the PYTHONPATH mixed... You can check that by making a script and running it (if you can't fix it, please post the details of your PYTHONPATH):
i.e.: import sys;print(sorted('\n'.join(sys.path))) Cheers, Fabio On Thu, Oct 6, 2011 at 4:25 PM, Mehrdad Pazooki <mehrdad.pazo...@gmail.com> wrote: > I used the following source code; > https://www.assembla.com/code/EstMon/subversion/nodes/trunk/src/daemon.py > when I pasted it to eclipse in a new file I got a message: "Unresolved > Import Module; atexit" with a red cross beside my import section which > is;"import sys, os, time, atexit, signal, socketserver" > atexit is the only module that it cannot import, but it exists! I ran > the code and I had no trouble. I also tried; > $ python3 -c 'import atexit' > it proved that python3 has no problem with this module. > > $ locate atexit > /usr/lib/perl5/auto/POSIX/atexit.al > /usr/lib/python2.7/atexit.py > /usr/lib/python2.7/atexit.pyc > /usr/lib/python2.7/atexit.pyo > /usr/lib/python3.2/lib-dynload/atexit.cpython-32mu.so > /usr/src/eclipse/plugins/org.python.pydev.jython_2.2.2.2011082312/Lib/atexit.py > /var/cache/abrt-di/usr/src/debug/glibc-2.14-34-ge2a3090/stdlib/atexit.c > /var/cache/abrt-di/usr/src/debug/glibc-2.14-34-ge2a3090/stdlib/cxa_atexit.c > > does anyone know a solution to fix this issue? > > > ------------------------------------------------------------------------------ > All the data continuously generated in your IT infrastructure contains a > definitive record of customers, application performance, security > threats, fraudulent activity and more. Splunk takes this data and makes > sense of it. Business sense. IT sense. Common sense. > http://p.sf.net/sfu/splunk-d2dcopy1 > _______________________________________________ > Pydev-users mailing list > Pydev-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/pydev-users > ------------------------------------------------------------------------------ All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity and more. Splunk takes this data and makes sense of it. Business sense. IT sense. Common sense. http://p.sf.net/sfu/splunk-d2dcopy1 _______________________________________________ Pydev-users mailing list Pydev-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pydev-users