bjtully / BioData

All of my various bioinformatic scripts fit for public consumption (loosely defining "fit")
MIT License
70 stars 39 forks source link

Issues with istalling Keggdecoder. #65

Open chrissy005 opened 2 months ago

chrissy005 commented 2 months ago

Hello, I was attempting to install Keggdecoder and ran into the following issue. I understand that certain versions of python are not compatible. I am using Python 3.9. How can I resolve this?

python3 -m pip install KEGGDecoder Collecting KEGGDecoder Using cached KEGGDecoder-1.3-py2.py3-none-any.whl.metadata (560 bytes) Collecting matplotlib==3.0.3 (from KEGGDecoder) Using cached matplotlib-3.0.3.tar.gz (36.6 MB) Preparing metadata (setup.py) ... error error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully. │ exit code: 1 ╰─> [55 lines of output] /private/var/folders/4s/hy0z7yvn2ssccz45vk3ylhh00000gn/T/pip-install-02acqbwf/matplotlib_8bbcd677d757403e90cf174b13502bc0/setup.py:33: SetuptoolsDeprecationWarning: The test command is disabled and references to it are deprecated. !!

          ********************************************************************************
          Please remove any references to `setuptools.command.test` in all supported versions of the affected package.

          By 2024-Nov-15, you need to update your project and remove deprecated calls
          or your builds will no longer be supported.
          ********************************************************************************

  !!
    from setuptools.command.test import test as TestCommand
  ============================================================================
  Edit setup.cfg to change the build options

  BUILDING MATPLOTLIB
              matplotlib: yes [3.0.3]
                  python: yes [3.9.6 | packaged by conda-forge | (default, Jul
                          11 2021, 03:35:11)  [Clang 11.1.0 ]]
                platform: yes [darwin]

  REQUIRED DEPENDENCIES AND EXTENSIONS
                   numpy: yes [not found. pip may install it below.]
        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.39]
                   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: yes [installing, darwin]
               windowing: no  [Microsoft Windows only]

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

  ============================================================================
                          * The following required packages can not be built:
                          * freetype
                          * Try installing freetype with `brew install
                          * freetype` and pkg-config with `brew install pkg-
                          * config`
  [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.

pablo-icm commented 2 months ago

same here!

pablo-icm commented 2 months ago

Sorry for the fast trigger... Just browsing closed issues solved mine. See #44. I was using python 3.8 and a virtual environment. Using python 3.6 solved the problem.

chrissy005 commented 2 months ago

I tried to download python 3.6 on my Mac but unable to find the compilation.

pablo-icm commented 2 months ago

I guess then that your best option is to install miniconda in your mac and then follow this instructions: https://github.com/bjtully/BioData/blob/master/KEGGDecoder/README.md#installation