duo-labs / cloudmapper

CloudMapper helps you analyze your Amazon Web Services (AWS) environments.
BSD 3-Clause "New" or "Revised" License
5.9k stars 797 forks source link

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

Open AliSajid opened 2 years ago

AliSajid commented 2 years ago

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 commented 2 years ago

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

quick fix just go back a few commits..

git checkout bebf0d1a8f785b5d99995a9f120426b6ab3df4ee
w0rmr1d3r commented 2 years ago

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 commented 2 years ago

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

cgaudit commented 2 years ago

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 commented 2 years ago

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

cgaudit commented 2 years ago

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 commented 2 years ago

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!

nsu700 commented 2 years ago

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 commented 2 years ago

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

arichtman commented 2 years ago

924