Menu

#1305 Namespace packages are not recognized by Pydev

open
nobody
None
5
2013-04-19
2011-04-11
No

Apparently there is a problem with Pydev and namespace packages. I'm using Paste here as an example, but it seems to happen with others too, including WebCore (which contains the "web" namespace package).
Steps to reproduce:

1. Use pip to install the paste, pastedeploy and pastescript distributions
2. Reinitialize interpreter information so that the new packages get cached (pip installs directly to dist-packages/site-packages)
3. Open up an interactive interpreter from Pydev and run "import paste" to verify that it works
4. Create a new Pydev project
5. Create a new module
6. Add the line "import paste"
7. Save

Expected result: no errors
Actual result: error marker on that line saying "Unresolved import: paste"
Used Pydev version: 2.0

Discussion

  • Oliver

    Oliver - 2011-07-06

    toscawidgets is also affected

     
  • Fabio Zadrozny

    Fabio Zadrozny - 2011-09-03
    • status: open --> pending
     
  • Fabio Zadrozny

    Fabio Zadrozny - 2011-09-03

    I just checked it here (with the latest nightly) and it appears to be working for me. Note that there was a bug when handling zipped files -- i.e.: jars and eggs -- so, that could be your problem.

    Please grab the latest NIGHTLY version, remove your interpreter and add it again to see if it works now.

     
  • Alex Grönholm

    Alex Grönholm - 2011-11-10

    This still does not work, and the problem has nothing to do with zipped jars/eggs. I don't use them.
    Anything else you need to work on this?

     
  • Alex Grönholm

    Alex Grönholm - 2011-11-10
    • status: pending --> open
     
  • Moritz Schlarb

    Moritz Schlarb - 2013-04-19

    Any progress here?