question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't install getnative through Pip

See original GitHub issue

I’ve tried installing getnative using pip install getnative, but I keep getting this;

Defaulting to user installation because normal site-packages is not writeable
Collecting getnative
  Using cached getnative-3.2.0-py3-none-any.whl (12 kB)
Collecting VapourSynth>=55
  Using cached VapourSynth-59.zip (561 kB)
  Preparing metadata (setup.py) ... done
Collecting matplotlib>=2.0.0
  Using cached matplotlib-3.5.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (11.9 MB)
Requirement already satisfied: python-dateutil>=2.7 in /usr/lib/python3.10/site-packages (from matplotlib>=2.0.0->getnative) (2.8.1)
Requirement already satisfied: pyparsing>=2.2.1 in /usr/lib/python3.10/site-packages (from matplotlib>=2.0.0->getnative) (2.4.7)
Requirement already satisfied: fonttools>=4.22.0 in ./.local/lib/python3.10/site-packages (from matplotlib>=2.0.0->getnative) (4.34.4)
Requirement already satisfied: numpy>=1.17 in /usr/lib64/python3.10/site-packages (from matplotlib>=2.0.0->getnative) (1.22.0)
Requirement already satisfied: cycler>=0.10 in ./.local/lib/python3.10/site-packages (from matplotlib>=2.0.0->getnative) (0.11.0)
Requirement already satisfied: kiwisolver>=1.0.1 in ./.local/lib/python3.10/site-packages (from matplotlib>=2.0.0->getnative) (1.4.4)
Requirement already satisfied: packaging>=20.0 in /usr/lib/python3.10/site-packages (from matplotlib>=2.0.0->getnative) (21.3)
Requirement already satisfied: pillow>=6.2.0 in /usr/lib64/python3.10/site-packages (from matplotlib>=2.0.0->getnative) (9.1.0)
Requirement already satisfied: six>=1.5 in /usr/lib/python3.10/site-packages (from python-dateutil>=2.7->matplotlib>=2.0.0->getnative) (1.16.0)
Building wheels for collected packages: VapourSynth
  Building wheel for VapourSynth (setup.py) ... error
  error: subprocess-exited-with-error
  
  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [17 lines of output]
      /home/username/.local/lib/python3.10/site-packages/setuptools/installer.py:27: SetuptoolsDeprecationWarning: setuptools.installer is deprecated. Requirements should be satisfied by a PEP 517 installer.
        warnings.warn(
      running bdist_wheel
      running build
      running build_ext
      skipping 'src/cython/vapoursynth.c' Cython extension (up-to-date)
      building 'vapoursynth' extension
      creating build
      creating build/temp.linux-x86_64-cpython-310
      creating build/temp.linux-x86_64-cpython-310/src
      creating build/temp.linux-x86_64-cpython-310/src/cython
      gcc -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -DVS_GRAPH_API -I. -Isrc/cython -Isrc/vsscript -I/usr/include/python3.10 -c src/cython/vapoursynth.c -o build/temp.linux-x86_64-cpython-310/src/cython/vapoursynth.o
      src/cython/vapoursynth.c:6:10: fatal error: Python.h: No such file or directory
          6 | #include "Python.h"
            |          ^~~~~~~~~~
      compilation terminated.
      error: command '/usr/lib64/ccache/gcc' failed with exit code 1
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for VapourSynth
  Running setup.py clean for VapourSynth
Failed to build VapourSynth
Installing collected packages: VapourSynth, matplotlib, getnative
  Running setup.py install for VapourSynth ... error
  error: subprocess-exited-with-error
  
  × Running setup.py install for VapourSynth did not run successfully.
  │ exit code: 1
  ╰─> [19 lines of output]
      /home/username/.local/lib/python3.10/site-packages/setuptools/installer.py:27: SetuptoolsDeprecationWarning: setuptools.installer is deprecated. Requirements should be satisfied by a PEP 517 installer.
        warnings.warn(
      running install
      /home/username/.local/lib/python3.10/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
        warnings.warn(
      running build
      running build_ext
      skipping 'src/cython/vapoursynth.c' Cython extension (up-to-date)
      building 'vapoursynth' extension
      creating build
      creating build/temp.linux-x86_64-cpython-310
      creating build/temp.linux-x86_64-cpython-310/src
      creating build/temp.linux-x86_64-cpython-310/src/cython
      gcc -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -DVS_GRAPH_API -I. -Isrc/cython -Isrc/vsscript -I/usr/include/python3.10 -c src/cython/vapoursynth.c -o build/temp.linux-x86_64-cpython-310/src/cython/vapoursynth.o
      src/cython/vapoursynth.c:6:10: fatal error: Python.h: No such file or directory
          6 | #include "Python.h"
            |          ^~~~~~~~~~
      compilation terminated.
      error: command '/usr/lib64/ccache/gcc' failed with exit code 1
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure

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

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

What should I do?

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
cid-chancommented, Jul 27, 2022

You need vapoursynth installed beforehand. pip only installs the Python bindings to VapourSynth (the module).

0reactions
fighuasscommented, Jul 27, 2022

Okay, I’ll try that, then. Thanks again!

Read more comments on GitHub >

github_iconTop Results From Across the Web

getnative - PyPI
Installation. Install it via: $ pip install getnative. or. Download all files from github; Install all dependencies through pip install -r requirements.txt ...
Read more >
Infiziert90/getnative: Find the native resolution(s) of ... - GitHub
Installation. Install it via: $ pip install getnative. or. Download all files from github; Install all dependencies through pip install -r requirements.txt ...
Read more >
Why can't I install packages from PyPI with Pip? - Stack Overflow
Whenever you cannot pip install a package, your first instinct should be to check its PyPI page. Let's take the popular NumPy library...
Read more >
Install TensorFlow with pip
For the CPU-only build use the pip package named tensorflow-cpu . Here are the quick versions of the install commands. Scroll down for...
Read more >
getnative - Python Package Health Analysis - Snyk
Find the native resolution(s) of upscaled material (mostly anime) For more information about how to use this package see README · Ensure you're...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found