Giter VIP home page Giter VIP logo

Comments (3)

jessedp avatar jessedp commented on June 14, 2024

error: invalid command 'bdist_wheel' makes it look like the wheel python package is not installed, I suppose DietPi may not include it by default.

Can you try pip3 install wheel and then install this again?

(among others, this agrees https://stackoverflow.com/questions/65273035/how-to-fix-error-invalid-command-bdist-wheel )

from pihole5-list-tool.

ViperTK avatar ViperTK commented on June 14, 2024

cool & thanks for the quick response. so installing wheel separately seemed to have fixed the error partly but seems regex install is still failing. I tried pip3 install regex separately as well, and it still failed with same error. any thoughts?

root@DietPi:# sudo pip3 install pihole5-list-tool --upgrade
Collecting pihole5-list-tool
Using cached https://files.pythonhosted.org/packages/e0/4a/3e554deccec452a3eaa76d28f8612ec88d2c99a08f40a2b014ffbae74de0/pihole5_list_tool-0.6.0-py2.py3-none-any.whl
Collecting PyInquirer (from pihole5-list-tool)
Requirement already satisfied, skipping upgrade: terminaltables in /usr/local/lib/python3.7/dist-packages (from pihole5-list-tool) (3.1.10)
Requirement already satisfied, skipping upgrade: requests in /usr/local/lib/python3.7/dist-packages (from pihole5-list-tool) (2.27.1)
Requirement already satisfied, skipping upgrade: ansicolors in /usr/local/lib/python3.7/dist-packages (from pihole5-list-tool) (1.1.8)
Collecting regex>=2016.11.21 (from PyInquirer->pihole5-list-tool)
Using cached https://files.pythonhosted.org/packages/b6/d9/b6971b194833ee2eccf4591f9097833b65e669cce0f8fc0ff2a118238f63/regex-2022.4.24.tar.gz
Requirement already satisfied, skipping upgrade: prompt-toolkit==1.0.14 in /usr/local/lib/python3.7/dist-packages (from PyInquirer->pihole5-list-tool) (1.0.14)
Requirement already satisfied, skipping upgrade: Pygments>=2.2.0 in /usr/local/lib/python3.7/dist-packages (from PyInquirer->pihole5-list-tool) (2.12.0)
Requirement already satisfied, skipping upgrade: charset-normalizer
=2.0.0; python_version >= "3" in /usr/local/lib/python3.7/dist-packages (from requests->pihole5-list-tool) (2.0.12)
Requirement already satisfied, skipping upgrade: urllib3<1.27,>=1.21.1 in /usr/local/lib/python3.7/dist-packages (from requests->pihole5-list-tool) (1.26.9)
Requirement already satisfied, skipping upgrade: idna<4,>=2.5; python_version >= "3" in /usr/local/lib/python3.7/dist-packages (from requests->pihole5-list-tool) (3.3)
Requirement already satisfied, skipping upgrade: certifi>=2017.4.17 in /usr/local/lib/python3.7/dist-packages (from requests->pihole5-list-tool) (2021.10.8)
Requirement already satisfied, skipping upgrade: wcwidth in /usr/local/lib/python3.7/dist-packages (from prompt-toolkit==1.0.14->PyInquirer->pihole5-list-tool) (0.2.5)
Requirement already satisfied, skipping upgrade: six>=1.9.0 in /usr/local/lib/python3.7/dist-packages (from prompt-toolkit==1.0.14->PyInquirer->pihole5-list-tool) (1.16.0)
Building wheels for collected packages: regex
Running setup.py bdist_wheel for regex ... error
Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;file='/tmp/pip-install-04nadgff/regex/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" bdist_wheel -d /tmp/pip-wheel-0hrteq3p --python-tag cp37:
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-aarch64-cpython-37
creating build/lib.linux-aarch64-cpython-37/regex
copying regex_3/init.py -> build/lib.linux-aarch64-cpython-37/regex
copying regex_3/regex.py -> build/lib.linux-aarch64-cpython-37/regex
copying regex_3/_regex_core.py -> build/lib.linux-aarch64-cpython-37/regex
copying regex_3/test_regex.py -> build/lib.linux-aarch64-cpython-37/regex
running build_ext
building 'regex._regex' extension
creating build/temp.linux-aarch64-cpython-37
creating build/temp.linux-aarch64-cpython-37/regex_3
aarch64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/python3.7m -c regex_3/_regex.c -o build/temp.linux-aarch64-cpython-37/regex_3/_regex.o
regex_3/_regex.c:50:10: fatal error: Python.h: No such file or directory
#include "Python.h"
^~~~~~~~~~
compilation terminated.
error: command '/usr/bin/aarch64-linux-gnu-gcc' failed with exit code 1


Failed building wheel for regex
Running setup.py clean for regex
Failed to build regex
Installing collected packages: regex, PyInquirer, pihole5-list-tool
Running setup.py install for regex ... error
Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;file='/tmp/pip-install-04nadgff/regex/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /tmp/pip-record-0hdxf_mr/install-record.txt --single-version-externally-managed --compile:
running install
/usr/local/lib/python3.7/dist-packages/setuptools/command/install.py:37: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
setuptools.SetuptoolsDeprecationWarning,
running build
running build_py
creating build
creating build/lib.linux-aarch64-cpython-37
creating build/lib.linux-aarch64-cpython-37/regex
copying regex_3/init.py -> build/lib.linux-aarch64-cpython-37/regex
copying regex_3/regex.py -> build/lib.linux-aarch64-cpython-37/regex
copying regex_3/_regex_core.py -> build/lib.linux-aarch64-cpython-37/regex
copying regex_3/test_regex.py -> build/lib.linux-aarch64-cpython-37/regex
running build_ext
building 'regex._regex' extension
creating build/temp.linux-aarch64-cpython-37
creating build/temp.linux-aarch64-cpython-37/regex_3
aarch64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/python3.7m -c regex_3/_regex.c -o build/temp.linux-aarch64-cpython-37/regex_3/_regex.o
regex_3/_regex.c:50:10: fatal error: Python.h: No such file or directory
#include "Python.h"
^~~~~~~~~~
compilation terminated.
error: command '/usr/bin/aarch64-linux-gnu-gcc' failed with exit code 1

----------------------------------------

Command "/usr/bin/python3 -u -c "import setuptools, tokenize;file='/tmp/pip-install-04nadgff/regex/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /tmp/pip-record-0hdxf_mr/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-install-04nadgff/regex/

from pihole5-list-tool.

ViperTK avatar ViperTK commented on June 14, 2024

Just an update: I followed the steps here and that may have fixed the issue.

https://stackoverflow.com/questions/53744668/failed-building-wheel-for-regex-while-installing-pip-package
specifically just this command - sudo apt-get install python3 python3-pip ipython3 build-essential python-dev python3-dev

from pihole5-list-tool.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.