Skip to content

unresolved dependency pytest-runner on python 37 install #420

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

Closed
Warpulis opened this issue Jan 9, 2020 · 1 comment · Fixed by #418
Closed

unresolved dependency pytest-runner on python 37 install #420

Warpulis opened this issue Jan 9, 2020 · 1 comment · Fixed by #418

Comments

@Warpulis
Copy link

Warpulis commented Jan 9, 2020

I'm on a new python 3.7.4 on Windows 10 and tried to

C:\Python37\python.exe -m pip install --proxy "<removed>" pynvim

The process hangs and after Ctrl-C I got an error message about the missing dependency

distutils.errors.DistutilsError: Could not find suitable distribution for Requirement.parse('pytest-runner')

After

C:\Python37\python.exe -m pip install --proxy "<removed>" pytest-runner

pynvim installs just fine.

P.S.: Full log output:

ERROR: Command errored out with exit status 1:
command: 'C:\Python37\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"[Userhome]\AppData\Local\Temp\pip-install-d7kgpoi9\pynvim\setup.py'"'"'; file='"'""[Userhome]\AppData\Local\Temp\pip-install-d7kgpoi9\pynvim\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base ‘"[Userhome]\AppData\Local\Temp\pip-install-d7kgpoi9\pynvim\pip-egg-info'
cwd: "[Userhome]\AppData\Local\Temp\pip-install-d7kgpoi9\pynvim
Complete output (25 lines):
Download error on https://pypi.org/simple/pytest-runner/: timed out -- Some packages may not be found!
Couldn't find index page for 'pytest-runner' (maybe misspelled?)
Download error on https://pypi.org/simple/: timed out -- Some packages may not be found!
No local packages or working download links found for pytest-runner
Traceback (most recent call last):
File "", line 1, in
File ""[Userhome]\AppData\Local\Temp\pip-install-d7kgpoi9\pynvim\setup.py", line 50, in
zip_safe=False)
File "C:\Python37\lib\site-packages\setuptools_init_.py", line 144, in setup
install_setup_requires(attrs)
File "C:\Python37\lib\site-packages\setuptools_init
.py", line 139, in install_setup_requires
dist.fetch_build_eggs(dist.setup_requires)
File "C:\Python37\lib\site-packages\setuptools\dist.py", line 724, in fetch_build_eggs
replace_conflicting=True,
File "C:\Python37\lib\site-packages\pkg_resources_init
.py", line 782, in resolve
replace_conflicting=replace_conflicting
File "C:\Python37\lib\site-packages\pkg_resources_init_.py", line 1065, in best_match
return self.obtain(req, installer)
File "C:\Python37\lib\site-packages\pkg_resources_init_.py", line 1077, in obtain
return installer(requirement)
File "C:\Python37\lib\site-packages\setuptools\dist.py", line 791, in fetch_build_egg
return cmd.easy_install(req)
File "C:\Python37\lib\site-packages\setuptools\command\easy_install.py", line 673, in easy_install
raise DistutilsError(msg)
distutils.errors.DistutilsError: Could not find suitable distribution for Requirement.parse('pytest-runner')
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

@justinmk
Copy link
Member

justinmk commented Jan 9, 2020

should be fixed by #418 but I'm thinking we should remove it entirely.

justinmk pushed a commit that referenced this issue Jan 10, 2020
pytest runner should not be unconditionally included in setup_requires.
This change makes it conditional on setup.py invocation arguments as recommended upstream [1].

See: pytest-dev/pytest#3814

Identified via: [FreeBSD Ports Bug 242065](https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=242065)

Closes #417
Closes #420

[1] https://pytest-runner.readthedocs.io/en/latest/#conditional-requirement
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants