cloudmapper icon indicating copy to clipboard operation
cloudmapper copied to clipboard

Cannot install all requirements due to too strict requirements.txt

Open AliSajid opened this issue 3 years ago • 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.

AliSajid avatar Jul 21 '21 15:07 AliSajid

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

quick fix just go back a few commits..

git checkout bebf0d1a8f785b5d99995a9f120426b6ab3df4ee

hampsterx avatar Jul 30 '21 01:07 hampsterx

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

w0rmr1d3r avatar Jul 30 '21 13:07 w0rmr1d3r

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

nsu700 avatar Aug 07 '21 03:08 nsu700

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 avatar Aug 17 '21 14:08 cgaudit

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

AliSajid avatar Aug 17 '21 14:08 AliSajid

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

cgaudit avatar Aug 17 '21 14:08 cgaudit

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

Could this be it? issue -> https://github.com/duo-labs/cloudmapper/issues/803 PR (with the fix)-> https://github.com/duo-labs/cloudmapper/pull/847

cheers!

w0rmr1d3r avatar Aug 17 '21 15:08 w0rmr1d3r

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

nsu700 avatar Aug 18 '21 01:08 nsu700

https://github.com/duo-labs/cloudmapper/issues/884#issuecomment-900345678

cgaudit avatar Aug 18 '21 06:08 cgaudit

#924

arichtman avatar Jun 26 '22 08:06 arichtman