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
Numpy conda package broken inside tox on Windows, Python 3.7/3.8 #15537
Comments
I further find the same problem if I just install
It seemed like this should prove that the problem is not related to tox, but with the new approach, I'm still having a problem if I switch to Python 3.6 (AppVeyor log) Thus, not being able to install numpy into a conda env may actually be a different bug than the original not being able to install numpy into a conda-based tox environment 🤷♂️ Possible duplicates: |
This is a workaround for numpy/numpy#15537
Do you need to activate your conda environment? |
Indeed! Using an Thanks! I had been under the assumption that when invoking Python with its full path ( That's a rather non-obvious detail of I think it would also be good to mention this pitfall in the text that numpy emits in the In any case, this likely moves the responsibility for this "bug" to the I'll leave this issue open for a bit until I get some feedback from the |
I think this is new to python3.7, definitely needed on python3.8. If we add such a message, it would only start appearing in numpy 1.19 though. I guess we could check the sys.platform, I wonder if there is a way to test "anaconda and not anaconda_activated" |
|
Closing as resolved. Please check this guide or open a new issue with system information if similar problems are encountered. |
The conda-package for numpy does not work on Windows inside a tox environment (using tox-conda):
Steps to reproduce are:
tox.ini
that usestox-conda
tox
environment that hasnumpy
inconda_deps
, either from thedefault
or theconda-forge
channeltox
such thatnumpy
is imported inside the environmentThe result in an error such as
The error occurs for Python versions 3.7 and 3.8, but not 3.6. It also only occurs when installing the numpy package inside of tox (as opposed to just the default conda environment directly)
I've set up a repository at https://github.com/goerz-testing/2020-02-06_numpy_on_appveyor that illustrates several variations of the problem. In that repository, the
tox.ini
defines arun-cmd
environment to execute arbitrary commands inside the environment. In.appveyor.yml
I then invoke tox to runinside the environment.
The repository reproduces the error on AppVeyor, but I've observed the same behavior "manually" on a standard Windows 10 installation.
Variations of things that do and don't work are branches in the repository:
master
branch: Python 3.8, numpy from conda-forge channel ❌ (AppVeyor log)37
branch: Python 3.7, numpy from conda-forge channel ❌ (AppVeyor log)defaultchannel
branch: Python 3.8, numpy from default channel ❌ (AppVeyor log) → Problem isn't just with the conda-forge numpy packagesystemtox
branch: Python 3.8, numpy from conda-forge channel, use system-tox instead of installing tox into conda ❌ (AppVeyor log) → Problem isn't with the tox installed viaconda install tox
)36
branch: Python 3.6, numpy from conda-forge channe ✅ (AppVeyor log)notox
branch: Python 3.8, numpy from conda-forge channel, install into system-conda(no tox) ✅ (AppVeyor log)It's not clear whether
numpy
ortox-conda
or a weird interaction between the two is responsible for the problem.The text was updated successfully, but these errors were encountered: