Skip to content
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

Setup.py fails for pip>=20.1 #40

Open
scottandrews opened this issue May 11, 2020 · 9 comments
Open

Setup.py fails for pip>=20.1 #40

scottandrews opened this issue May 11, 2020 · 9 comments

Comments

@scottandrews
Copy link

Environment
Conda virtual environment
pip version: 20.1
Python version: 3.7.6
OS: Mac Catalina 10.15.4

Steps to Reproduce
Install anaconda 3.7.6
pip install chumpy

Output

  Using cached chumpy-0.69.tar.gz (50 kB)
    ERROR: Command errored out with exit status 1:
     command: /Users/sandrews/.virtualenvs/py37cv4/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/d7/jhs0m4vn3k9bk6dy201nrbcw0000gn/T/pip-install-klqvusum/chumpy/setup.py'"'"'; __file__='"'"'/private/var/folders/d7/jhs0m4vn3k9bk6dy201nrbcw0000gn/T/pip-install-klqvusum/chumpy/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 /private/var/folders/d7/jhs0m4vn3k9bk6dy201nrbcw0000gn/T/pip-pip-egg-info-9uh6xoy2
         cwd: /private/var/folders/d7/jhs0m4vn3k9bk6dy201nrbcw0000gn/T/pip-install-klqvusum/chumpy/
    Complete output (7 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/private/var/folders/d7/jhs0m4vn3k9bk6dy201nrbcw0000gn/T/pip-install-klqvusum/chumpy/setup.py", line 15, in <module>
        install_requires = [str(ir.req) for ir in install_reqs]
      File "/private/var/folders/d7/jhs0m4vn3k9bk6dy201nrbcw0000gn/T/pip-install-klqvusum/chumpy/setup.py", line 15, in <listcomp>
        install_requires = [str(ir.req) for ir in install_reqs]
    AttributeError: 'ParsedRequirement' object has no attribute 'req'
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.```
scottandrews added a commit to scottandrews/chumpy that referenced this issue May 11, 2020
@gayalkuruppu
Copy link

gayalkuruppu commented May 13, 2020

Environment

virtualenv virtual environment
pip version: 20.1
Python version: 3.7
OS: Debian GNU/Linux 9 (stretch)

Steps to Reproduce
pip install chumpy

Output

  Using cached chumpy-0.69.tar.gz (50 kB)
    ERROR: Command errored out with exit status 1:
     command: /home/Gayal/TF_FLAME/my_venv/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-l8jmoloi/chumpy/setup.py'"'"'; __file__='"'"'/tmp/pip-install-l8jmoloi/chumpy/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 /tmp/pip-pip-egg-info-5mq7h_yi
         cwd: /tmp/pip-install-l8jmoloi/chumpy/
    Complete output (7 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-install-l8jmoloi/chumpy/setup.py", line 15, in <module>
        install_requires = [str(ir.req) for ir in install_reqs]
      File "/tmp/pip-install-l8jmoloi/chumpy/setup.py", line 15, in <listcomp>
        install_requires = [str(ir.req) for ir in install_reqs]
    AttributeError: 'ParsedRequirement' object has no attribute 'req'
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

Tried chumpy previous versions and downto 0.66, no version worked. Then they were not compatible with my tasks.

UPDATE

Tried on ubuntu 16.04. does not work either. works fine on macos. but I need tf-gpu but I dont have gpus on my mac(currently running debian 9 on GCP)

@gayalkuruppu
Copy link

Okay it worked sorry for the trouble

@gormonn
Copy link

gormonn commented May 15, 2020

@gayalkuruppu how it works? Please tell more.

@gormonn
Copy link

gormonn commented May 15, 2020

it works to install chumpy, for me:
pip install --force-reinstall pip==19

@gayalkuruppu
Copy link

gayalkuruppu commented May 21, 2020

@gayalkuruppu how it works? Please tell more.

sorry I have added the original gt repo earlier. Following works fine.
pip install git+https://github.com/scottandrews/chumpy.git

@Andrej730
Copy link

Still an issue for me to install chumpy either with pip install git+https://github.com/mattloper/chumpy.git or pip install chumpy. #41 solves the problem for me.

Fast solution for now is to install it with scottandrews@fe51783:
pip install git+https://github.com/scottandrews/chumpy.git@fe51783e0364bf1e9b705541e7d77f894dd2b1ac

@r4ghu
Copy link

r4ghu commented Jun 28, 2020

PR #42 solves the issue.

@tusharmagrawal
Copy link

the force reinstall option worked for me too

@duanying98
Copy link

AttributeError: 'Ch' object has no attribute '_dirty_vars'
why?

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

No branches or pull requests

7 participants