Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Setup incompatible with pip3 #13

Open
mattar13 opened this issue Sep 11, 2019 · 2 comments
Open

Setup incompatible with pip3 #13

mattar13 opened this issue Sep 11, 2019 · 2 comments

Comments

@mattar13
Copy link

mattar13 commented Sep 11, 2019

Hello. When attempting to run the command
pip3 install rivuletpy

we get the error message
ERROR: Command errored out with exit status 1:
command: 'c:\users\rennalabsa1\.anaconda\prompts\envs\riv\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\jro22\\AppData\\Local\\Temp\\pip-install-12l0i5al\\rivuletpy\\setup.py'"'"'; __file__='"'"'C:\\Users\\jro22\\AppData\\Local\\Temp\\pip-install-12l0i5al\\rivuletpy\\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 pip-egg-info
cwd: C:\Users\jro22\AppData\Local\Temp\pip-install-12l0i5al\rivuletpy\
Complete output (5 lines):
Traceback (most recent call last):
File "", line 1, in <module>
File "C:\Users\jro22\AppData\Local\Temp\pip-install-12l0i5al\rivuletpy\setup.py", line 7, in <module>
from pip.req import parse_requirements
ModuleNotFoundError: No module named 'pip.req'
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

it seems that the line
from pip.req import parse_requirements

is causing a problem.

We are running this on a 64 bit Windows 10 machine with python version 3.7.4.
all of the dependencies are up to date.

@lsqshr
Copy link
Collaborator

lsqshr commented Sep 11, 2019 via email

@lsqshr
Copy link
Collaborator

lsqshr commented Sep 11, 2019

I see the problem. You are trying to install from the PyPI repo where the setup.py is not compatible with pip10. I will update the package in PyPI soon.

In the meanwhile, can you try to install from the source?

(riv)$ git clone https://github.com/RivuletStudio/rivuletpy.git
(riv)$ cd rivuletpy
(riv)$ python setup.py develop # Needed since we use the fast-forward 'tqdm' and 'pylibtiff'
(riv)$ pip3 install .

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants