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

Cannot install all requirements due to too strict requirements.txt #884

Open
AliSajid opened this issue Jul 21, 2021 · 10 comments
Open

Cannot install all requirements due to too strict requirements.txt #884

AliSajid opened this issue Jul 21, 2021 · 10 comments

Comments

@AliSajid
Copy link

I am trying to install cloudmapper and running into a dependency resolution error.

The log of running pip install -r requirements.txt is here: https://gist.github.com/AliSajid/6003902e7e7017e80cbd20fdd0bf1a41

I've been trying to relax various packages but still keep running into the same problem.

@hampsterx
Copy link

Need another tagged release, last one is more than a year old :(

quick fix just go back a few commits..

git checkout bebf0d1a8f785b5d99995a9f120426b6ab3df4ee

@w0rmr1d3r
Copy link
Contributor

w0rmr1d3r commented Jul 30, 2021

Hello @AliSajid !
There are a lot of issues regarding the requirements.txt file and its dependencies.
There are also some PRs opened fixing the errors.

Check them out first!

What @hampsterx is saying is right! The last release is old...

@nsu700
Copy link

nsu700 commented Aug 7, 2021

I manually changed the version of urlib to 1.24.0, then it works

@cgaudit
Copy link

cgaudit commented Aug 17, 2021

Hi @nicksu-kdkd
Can you please explain what you meant by "manually changed the version of urlib to 1.24.0"?
Do you mean by hardcoding it into the relevant raw in the requirements file or by something else?

Thank's

@AliSajid
Copy link
Author

I can't talk for them but I did that by hard coding the version in the requirements.txt and it worked.

@cgaudit
Copy link

cgaudit commented Aug 17, 2021

That's worked for me also but I got another error:

`Running` setup.py install for matplotlib ... error
    ERROR: Command errored out with exit status 1:
     command: /root/cloudmapper/venv/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-fs3wv144/matplotlib_229d9eb12fe249859c2e68a7025478d0/setup.py'"'"'; __file__='"'"'/tmp/pip-install-fs3wv144/matplotlib_229d9eb12fe249859c2e68a7025478d0/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-nhqepim8/install-record.txt --single-version-externally-managed --compile --install-headers /root/cloudmapper/venv/include/site/python3.9/matplotlib                                    
         cwd: /tmp/pip-install-fs3wv144/matplotlib_229d9eb12fe249859c2e68a7025478d0/                                                                       
    Complete output (595 lines):                                                                                                                           
                                                                                                                                                           
    Edit setup.cfg to change the build options; suppress output with --quiet.                                                                              
                                                                                                                                                           
    BUILDING MATPLOTLIB                                                                                                                                    
      matplotlib: yes [3.2.2]                                                                                                                              
          python: yes [3.9.2 (default, Feb 28 2021, 17:03:44)  [GCC 10.2.1                                                                                 
                      20210110]]                                                                                                                           
        platform: yes [linux]                                                                                                                              
     sample_data: yes [installing]                                                                                                                         
           tests: no  [skipping due to configuration]                                                                                                      
             agg: yes [installing]                                                                                                                         
           tkagg: yes [installing; run-time loading from Python Tcl/Tk]                                                                                    
          macosx: no  [Mac OS-X only]
... 

@w0rmr1d3r
Copy link
Contributor

Hello @cgaudit !
There are other PRs opened regarding the matplotlib dependency.

Could this be it?
issue -> #803
PR (with the fix)-> #847

cheers!

@nsu700
Copy link

nsu700 commented Aug 18, 2021

Hi @nicksu-kdkd
Can you please explain what you meant by "manually changed the version of urlib to 1.24.0"?
Do you mean by hardcoding it into the relevant raw in the requirements file or by something else?

Thank's

@cgaudit Yes, just manually update the version in the file

@cgaudit
Copy link

cgaudit commented Aug 18, 2021

#884 (comment)

@arichtman
Copy link

#924

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

6 participants