-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Namespace package zope cannot find modules during testing #870
Comments
I suspect the offending release is v28.3.0, and in particular the work for #805. Can you confirm the issue only occurs on Python 3.3+? If so, that's almost certainly the cause. The good news is that in #250, I'm making some progress in a better technique that will fully and properly address the behavior for Python 3.5+, and based on this ticket, I'll probably opt to revert the behavior from #805 for Python 3.3 and 3.4. |
Thanks for looking into this. The issue doesn't occur on 2.7, but it does indeed show up on 3.3, 3.4 and 3.5. |
Can you please retry with setuptools v31.0.0? One caution to consider is that any namespace packages must be installed from source or from wheels generated with setuptools 31 or later (or older than 28.3.0) due to #845. |
Now we get |
so |
@jaraco We are seeing the 3.5-only failures as well in |
Looks like that has been opened as #885. |
This is broken again with 32.0.0, please reopen @jaraco |
To be more precise, it is only broken like this with 3.5 (and 3.6 although there we seem to get a new ModuleNotFoundError instead of ImportError). |
@FRidh: The issue described in this ticket was implicated by the change in 28.8.0, a change which has been backed out. In 31.0.0, I've implemented an all new technique for handling namespace packages, which has tests, but which still had the additional issue reported in #885. That issue was solved in v31.0.1. With 32.0.0, the only change was an unrelated to change with how MANIFEST.in files are processed, so should be unrelated. I suspect any issues you have with v32 will apply to 31.0.1. If you're getting a new error, please file a new ticket describing the issue and how we can replicate it. |
With 34.1.1 still broken. |
This discussion continues in #912. |
In Nixpkgs we recently updated setuptools from 26.1.1 to 28.8.0 (and the issue also occurs with the latest 30.2.0). This seemed to break the testing of several zope modules for us. The modules do actually work, its just that when running
python setup.py test
we get import errors. Note that at this point we populatePYTHONPATH
with all the dependencies. Any idea what could have caused this?NixOS/nixpkgs#20791
The text was updated successfully, but these errors were encountered: