Menu

Easy Install doesnt work for me!

Tal Weiss
2009-08-17
2013-03-15
  • Tal Weiss

    Tal Weiss - 2009-08-17

    (Well it works in IDLE but not in Pydev...)
    I did an "easy_install pyparsing"
    I removed and re-added the Python interpreter in Pydev.
    Idle understands import pyparsing.
    Pydev does not! (Unresolved import: pyparsing)
    I don't get it.
    Please help???

    Tal.
    Vista, Eclipse Version: 3.4.2, Pydev 1.4.7.2843

     
    • Fabio Zadrozny

      Fabio Zadrozny - 2009-08-17

      It should understand... Have you checked if pyparsing was actually added to your pythonpath (it may be that for some reason it didn't appear there).

      Can you create a sample script with
      import sys
      for p in sys.path: print p

      and check if the pyparsing path you were expecting was in the pythonpath.

      (if you're still unable to solve it, please post the output of running that script from within pydev).

      Cheers,

      Fabio

       
    • Tal Weiss

      Tal Weiss - 2009-08-17

      The path  is there, but everything is there twice?!?
      C:\Users\Tal\workspace\tal\src
      C:\Users\Tal\workspace\tal\src
      C:\Python26
      C:\Python26\DLLs
      C:\Python26\lib
      C:\Python26\lib\lib-tk
      C:\Python26\lib\plat-win
      C:\Python26\lib\site-packages
      C:\Python26\lib\site-packages\clientform-0.2.10-py2.6.egg
      C:\Python26\lib\site-packages\django-1.1-py2.6.egg
      C:\Python26\lib\site-packages\gtk-2.0
      C:\Python26\lib\site-packages\logilab_astng-0.19.0-py2.6.egg
      C:\Python26\lib\site-packages\logilab_common-0.39.0-py2.6.egg
      C:\Python26\lib\site-packages\mechanize-0.1.11-py2.6.egg
      C:\Python26\lib\site-packages\nose-0.11.1-py2.6.egg
      C:\Python26\lib\site-packages\pdfminer-20090330-py2.6.egg
      C:\Python26\lib\site-packages\pylint-0.18.0-py2.6.egg
      C:\Python26\lib\site-packages\pyparsing-1.5.2-py2.6-win32.egg
      C:\Python26\lib\site-packages\python_dateutil-1.4.1-py2.6.egg
      C:\Python26\lib\site-packages\simplejson-2.0.9-py2.6-win32.egg
      C:\Python26\lib\site-packages\sparqlwrapper-1.3.0-py2.6.egg
      C:\Python26\lib\site-packages\suds-0.3.6-py2.6.egg
      C:\Windows\system32\python26.zip
      C:\Users\Tal\workspace\tal\src
      C:\Users\Tal\workspace\tal\src
      C:\Python26
      C:\Python26\DLLs
      C:\Python26\lib
      C:\Python26\lib\lib-tk
      C:\Python26\lib\plat-win
      C:\Python26\lib\site-packages
      C:\Python26\lib\site-packages\clientform-0.2.10-py2.6.egg
      C:\Python26\lib\site-packages\django-1.1-py2.6.egg
      C:\Python26\lib\site-packages\gtk-2.0
      C:\Python26\lib\site-packages\logilab_astng-0.19.0-py2.6.egg
      C:\Python26\lib\site-packages\logilab_common-0.39.0-py2.6.egg
      C:\Python26\lib\site-packages\mechanize-0.1.11-py2.6.egg
      C:\Python26\lib\site-packages\nose-0.11.1-py2.6.egg
      C:\Python26\lib\site-packages\pdfminer-20090330-py2.6.egg
      C:\Python26\lib\site-packages\pylint-0.18.0-py2.6.egg
      C:\Python26\lib\site-packages\pyparsing-1.5.2-py2.6-win32.egg
      C:\Python26\lib\site-packages\python_dateutil-1.4.1-py2.6.egg
      C:\Python26\lib\site-packages\simplejson-2.0.9-py2.6-win32.egg
      C:\Python26\lib\site-packages\sparqlwrapper-1.3.0-py2.6.egg
      C:\Python26\lib\site-packages\suds-0.3.6-py2.6.egg
      C:\Windows\system32\python26.zip
      Traceback (most recent call last):
        File "C:\Users\Tal\workspace\tal\src\pyparsing.py", line 11, in <module>
          from pyparsing import Word
        File "C:\Users\Tal\workspace\tal\src\pyparsing.py", line 11, in <module>
          from pyparsing import Word
      ImportError: cannot import name Word

      The actual source file is there 4 time...

      In IDLE the same code produces a single occurrence of the paths.

      Thank you in advance!

      Tal.

       
MongoDB Logo MongoDB