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
"ImportError: No module named 'hypothesis.internal'" #17
Comments
|
Hmm. That's interesting. I think I fucked up the patch release. Thanks for the report. Give me a minute and I'll fix it. |
|
Try installing the 0.2.2 release? This should fix your problem. (I'll still need to figure out what was actually going on in there, but the internal package wasn't supposed to be in that release at all so I've just undone the changes that accidentally made it in there. Super embarrassing) |
|
Maybe missing an init.py in internals?
|
|
No, I think I understand. the packages property of setup.py is non-recursive, so I would have to specify that hypothesis.internal is one of the installed packages as well as hypothesis. Previously hypothesis has a flat package structure so I was able to forget about this. At any rate the 0.2.2. release solves this by getting rid of the internals package for now because it wasn't supposed to be in the 0.2.1 release at all (it's too big a change for a patch release). Does it work for you now? |
|
OK. I've now tested this in the 0.2.2 release and master and am pretty confident this should work correctly now. Thanks again for the report. Feel free to reopen if you're still having issues. |
|
Confirmed working if installed from pip, cheers :-) |
|
Hurrah. The installer is now tested on travis BTW so this sort of thing shouldn't happen again. |
Track engine state for ease of debugging
Add preview marker to Die Hard article
At the risk of having done something stupid...
I've just tried a fresh install of both master and the pypi release. In both cases (using an Anaconda environment) into IPython if I try:
The same occurs if I just try
import hypothesis.Looking at my site-packages after installing with pip I see files like
site-packages/hypothesis/statefultesting.py, it looks like yourinternaldirectory is being removed during install?For the master install I did a fresh checkout (python 3.4, current Anaconda, no venv) and ran
python setup.py install, I had the same problem (though the files were installed to an egg rather than a directory).For the pip install I just used
pip install hypothesis.If I install from your master using
python setup.py developthen I get theinternalfolder (in my checked out folder), so then the imports work.Am I missing something silly? Maybe you've not tested your installer recently?
The text was updated successfully, but these errors were encountered: