KIT-MBS / pydca

Direct coupling analysis software for protein and RNA sequences
MIT License
45 stars 22 forks source link

pip install fails in python 3.10 #11

Open ChristophKnapp opened 1 year ago

ChristophKnapp commented 1 year ago

Hi , I'm trying to install pydca. Unfortunately I'm not getting very far. It's missing a platform attribute (linux_distribution). From other threads I figured that this was predicated and removed in python3.8. I'm on Ubuntu 22.04 and python 3.10. Would it be possible to fix that.

Thanks a lot.

pip install pydca Defaulting to user installation because normal site-packages is not writeable Collecting pydca Using cached pydca-1.23.tar.gz (98 kB) Preparing metadata (setup.py) ... done Collecting biopython==1.74 Using cached biopython-1.74.tar.gz (16.1 MB) Preparing metadata (setup.py) ... done Collecting llvmlite==0.30.0 Using cached llvmlite-0.30.0.tar.gz (110 kB) Preparing metadata (setup.py) ... done Collecting matplotlib==3.0.0 Using cached matplotlib-3.0.0.tar.gz (36.3 MB) Preparing metadata (setup.py) ... error error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully. │ exit code: 1 ╰─> [48 lines of output] Traceback (most recent call last): File "", line 2, in File "", line 34, in File "/tmp/pip-install-r1mrjqrf/matplotlib_fd3102cdcdaa4566b6c139e937eac207/setup.py", line 170, in msg = pkg.install_help_msg() File "/tmp/pip-install-r1mrjqrf/matplotlib_fd3102cdcdaa4566b6c139e937eac207/setupext.py", line 539, in install_help_msg release = platform.linux_distribution()[0].lower() AttributeError: module 'platform' has no attribute 'linux_distribution'

  Edit setup.cfg to change the build options

  BUILDING MATPLOTLIB
              matplotlib: yes [3.0.0]
                  python: yes [3.10.6 (main, Nov 14 2022, 16:10:14) [GCC
                          11.3.0]]
                platform: yes [linux]

  REQUIRED DEPENDENCIES AND EXTENSIONS
                   numpy: yes [version 1.23.4]
        install_requires: yes [handled by setuptools]
                  libagg: yes [pkg-config information for 'libagg' could not
                          be found. Using local copy.]
                freetype: no  [The C/C++ header for freetype2 (ft2build.h)
                          could not be found.  You may need to install the
                          development package.]
                     png: yes [version 1.6.37]
                   qhull: yes [pkg-config information for 'libqhull' could not
                          be found. Using local copy.]

  OPTIONAL SUBPACKAGES
             sample_data: yes [installing]
                toolkits: yes [installing]
                   tests: no  [skipping due to configuration]
          toolkits_tests: no  [skipping due to configuration]

  OPTIONAL BACKEND EXTENSIONS
                     agg: yes [installing]
                   tkagg: yes [installing; run-time loading from Python Tcl /
                          Tk]
                  macosx: no  [Mac OS-X only]
               windowing: no  [Microsoft Windows only]

  OPTIONAL PACKAGE DATA
                    dlls: no  [skipping due to configuration]

  ============================================================================
                          * The following required packages can not be built:
                          * freetype
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. error: metadata-generation-failed

× Encountered error while generating package metadata. ╰─> See above for output.

note: This is an issue with the package mentioned above, not pip. hint: See above for details.