PyTrack icon indicating copy to clipboard operation
PyTrack copied to clipboard

install error

Open xyue22 opened this issue 3 years ago • 7 comments

I encountered the following error using "pip3 install PyTrack-NTU" when installing the package on MacBook Air (M1).

Collecting PyTrack-NTU Using cached PyTrack-NTU-1.1.0.tar.gz (44 kB) Preparing metadata (setup.py) ... done Collecting numpy==1.16.2 Using cached numpy-1.16.2.zip (5.1 MB) Preparing metadata (setup.py) ... done Collecting scipy==1.2.1 Using cached scipy-1.2.1.tar.gz (23.1 MB) Preparing metadata (setup.py) ... done Collecting matplotlib==3.0.2 Using cached matplotlib-3.0.2.tar.gz (36.5 MB) Preparing metadata (setup.py) ... error error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully. │ exit code: 1 ╰─> [43 lines of output] IMPORTANT WARNING: pkg-config is not installed. matplotlib may not be able to find some of its dependencies ============================================================================ Edit setup.cfg to change the build options

  BUILDING MATPLOTLIB
              matplotlib: yes [3.0.2]
                  python: yes [3.10.2 | packaged by conda-forge | (main, Feb
                          1 2022, 19:28:34) [Clang 11.1.0 ]]
                platform: yes [darwin]
  
  REQUIRED DEPENDENCIES AND EXTENSIONS
                   numpy: yes [version 1.21.5]
        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: 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
  [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.

any hints how to fix it?

xyue22 avatar Mar 02 '22 20:03 xyue22

The solution to my problem. Changes made recently by pip caused the problem. So, using "--use-deprecated=backtrack-on-build-failures" to install. For example, pip install PyTrack-NTU --use-deprecated=backtrack-on-build-failures.

xyue22 avatar Mar 04 '22 20:03 xyue22

The solution to my problem. Changes made recently by pip caused the problem. So, using "--use-deprecated=backtrack-on-build-failures" to install. For example, pip install PyTrack-NTU --use-deprecated=backtrack-on-build-failures.

Getting an error from this as well: "option --use-deprecated: invalid choice: 'backtrack-on-build-failures' (choose from 'legacy-resolver')

EDIT: Nothing about pip solves this. I was able to install using the "--no-deps" modifier to prevent the dependencies from being installed. I'll report back if I notice any issue with using up-to-date versions of the requirements

mjkleiman avatar Apr 27 '22 18:04 mjkleiman

Hello,

Im having issues installing even with "--no deps--" modification. the installer is not responding to my version of SciPy which is installed and up to date. I have updated Brew, wheel, pip everything, even downloaded Xcode... I have no clue what to do.

anyone know how to fix this error? " Using legacy 'setup.py install' for numpy, since package 'wheel' is not installed. Using legacy 'setup.py install' for pandas, since package 'wheel' is not installed. Using legacy 'setup.py install' for scipy, since package 'wheel' is not installed. Using legacy 'setup.py install' for statsmodels, since package 'wheel' is not installed. Installing collected packages: scipy, numpy, greenlet, sqlalchemy, patsy, pandas, matplotlib, statsmodels, seaborn, pingouin, PyTrack-NTU Attempting uninstall: scipy Found existing installation: scipy 1.8.0 Uninstalling scipy-1.8.0: Successfully uninstalled scipy-1.8.0 Running setup.py install for scipy ... error error: subprocess-exited-with-error

× Running setup.py install for scipy did not run successfully. │ exit code: 1 ╰─> [100 lines of output]

....

note: This error originates from a subprocess, and is likely not a problem with pip. WARNING: No metadata found in /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages Rolling back uninstall of scipy Moving to /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/scipy-1.8.0.dist-info/ from /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/~cipy-1.8.0.dist-info Moving to /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/scipy/ from /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/~cipy error: legacy-install-failure

× Encountered error while trying to install package. ╰─> scipy

note: This is an issue with the package mentioned above, not pip. hint: See above for output from the failure. "

blackdog1245 avatar May 18 '22 10:05 blackdog1245

I am also getting an install error. Tried creating a new virtual environment, not working.

Mac OS 12.3.1, Tried on python 3.9 and 3.10

Pages and pages of logs, then at the bottom:

line 375, in generate_sources source = func(extension, build_dir) File "numpy/core/setup.py", line 423, in generate_config_h moredefs, ignored = cocache.check_types(config_cmd, ext, build_dir) File "numpy/core/setup.py", line 47, in check_types out = check_types(*a, **kw) File "numpy/core/setup.py", line 279, in check_types raise SystemError( SystemError: Cannot compile 'Python.h'. Perhaps you need to install python-dev|python-devel. ---------------------------------------- ERROR: Command errored out with exit status 1: /Users/REDACTED/REDACTED/venv2/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/md/qkg7lzfs1nsd_83tyh7rznrm0000gn/T/pip-install-4sku3oho/numpy_858e2ac46e7e4c53bbd607b28edd6855/setup.py'"'"'; file='"'"'/private/var/folders/md/qkg7lzfs1nsd_83tyh7rznrm0000gn/T/pip-install-4sku3oho/numpy_858e2ac46e7e4c53bbd607b28edd6855/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 /private/var/folders/md/qkg7lzfs1nsd_83tyh7rznrm0000gn/T/pip-record-qngaxl33/install-record.txt --single-version-externally-managed --compile --install-headers /Users/REDACTED/REDACTED/venv2/include/site/python3.10/numpy Check the logs for full command output.

AnneExo avatar Jun 01 '22 16:06 AnneExo

I am also having the same issue with freetype & png deps.

dasooni avatar Jun 29 '22 07:06 dasooni

I'm also getting this error on install. @titoghose, can you please help us?

mikewinters10 avatar Aug 01 '22 23:08 mikewinters10

Apologies for the very long delay. I've resolved the installation error, so hopefully should be fine now.

titoghose avatar Aug 17 '22 07:08 titoghose