duo-labs/cloudmapper

Cannot install all requirements due to too strict requirements.txt

AliSajid opened this issue · 10 comments

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.

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

quick fix just go back a few commits..

git checkout bebf0d1a8f785b5d99995a9f120426b6ab3df4ee

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...

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

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

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

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]
... 

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

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

cheers!

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