-
-
Notifications
You must be signed in to change notification settings - Fork 146
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
Document how to contribute to nox with conda (from Windows) #234
Comments
There are also some known issues when using conda. For example, I couldn't have spaces in of the directories used in the path where I'm running nox. https://stackoverflow.com/a/44310342/101923 |
@schuderer Let's continue the conda discussion here. I was able to get the |
Thanks Tim! Wanted to let you know that I'm not ignoring you. I will have a chance to retest on Windows about a week or so from now. I will post the console output then, as well as checking whether I also have multiple binaries in the PATH. |
Here's some input/feedback on the proposed instructions. I tested the setup steps listed in the first post: (Skipped installing miniconda, already have Anaconda installed. ( $ git clone https://github.com/theacodes/nox.git
$ cd nox
$ conda create -n nox conda
$ conda activate nox
(nox) $ python --version
Python 3.7.3
(nox) $ conda config --add channels conda-forge
(nox) $ conda config --set channel_priority strict
(nox) $ conda install --file requirements-conda-test.txt
(nox) $ pip install contexter --no-deps
(nox) $ pip install -e . --no-deps
Successfully installed nox
(nox) $ nox
pkg_resources.DistributionNotFound: The 'argcomplete<2.0,>=1.9.4' distribution was not found and is required by nox To get the missing packages, I then tried: (nox) $ pip install -r requirements-test.txt
(nox) $ nox
pkg_resources.DistributionNotFound: The 'argcomplete<2.0,>=1.9.4' distribution was not found and is required by nox Installing (nox) $ pip uninstall nox
(nox) $ pip install -e .
Successfully installed argcomplete-1.10.0 nox
(nox) $ nox Only now the conda tests can't find argcomplete:
I thought the missing argcomplete was just an omission in requirements-conda-test.txt, but the following also fails with the same error: (nox) $ pip uninstall argcomplete
(nox) $ conda install argcomplete
(nox) $ nox -s conda_tests-3.6 For what it's worth, trying to re-run conda_tests-3.7 fails now:
I do have only one interpreter in the (nox) C:\dev\code\git\nox>where python
C:\Users\myuser\.conda\envs\nox\python.exe I'm unfortunately out of time for now, but still hope this input helps. |
Thanks. There is a package for argcomplete in conda-forge: https://github.com/conda-forge/argcomplete-feedstock. We'll want to add
Warning: that command installs dependencies via pip instead of conda, which can break your conda installation if any packages with C/C++ extensions are installed via pip. |
This appears to be a common Windows error.
I don't know why that file would currently be in use. It appears as though a reboot is usually required to remove / modify DLLs, but there are some steps we could take, instead: https://docs.microsoft.com/en-us/windows/win32/dlls/dynamic-link-library-updates Perhaps on Windows nox needs to move old session environments to the recycle bin instead of trying to remove them? |
This issue has gone stale, so I'm going to close it for now. If it's still something someone is interested in, feel free to comment and we can re-open. |
How would this feature be useful?
From the discussion at #224 (comment), it can be confusing how run the test suite from Windows when conda is the only available Python executable.
Describe the solution you'd like
Document the steps to setup a conda environment suitable for nox development.
conda install --file requirements-conda-test.txt
--no-deps
.--no-deps
.Describe alternatives you've considered
Encourage people to use python.org binaries on Windows, instead.
The text was updated successfully, but these errors were encountered: