Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

failed with error code 1 #9

Open
GCMan777 opened this issue Jun 22, 2019 · 3 comments
Open

failed with error code 1 #9

GCMan777 opened this issue Jun 22, 2019 · 3 comments

Comments

@GCMan777
Copy link

when i try

sudo pip3 install cwiid

i get

Collecting cwiid
Downloading https://files.pythonhosted.org/packages/fa/e8/d0f03c60bbdc583a7fa37a126e9b20055fb3752861820c25bd212dc62756/cwiid-3.0.0.tar.gz
Building wheels for collected packages: cwiid
Running setup.py bdist_wheel for cwiid ... error
Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;file='/tmp/pip-build-bx0dhl_m/cwiid/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/tmpa2d4ju3gpip-wheel- --python-tag cp35:
running bdist_wheel
running build
running build_ext
building 'cwiid' extension
creating build
creating build/temp.linux-armv7l-3.5
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.5-6waWnr/python3.5-3.5.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.5m -c cwiidmodule.c -o build/temp.linux-armv7l-3.5/cwiidmodule.o
cwiidmodule.c:27:19: fatal error: cwiid.h: No such file or directory
#include <cwiid.h>
^
compilation terminated.
error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1


Failed building wheel for cwiid
Running setup.py clean for cwiid
Failed to build cwiid
Installing collected packages: cwiid
Running setup.py install for cwiid ... error
Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;file='/tmp/pip-build-bx0dhl_m/cwiid/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-omfholw_-record/install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_ext
building 'cwiid' extension
creating build
creating build/temp.linux-armv7l-3.5
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.5-6waWnr/python3.5-3.5.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.5m -c cwiidmodule.c -o build/temp.linux-armv7l-3.5/cwiidmodule.o
cwiidmodule.c:27:19: fatal error: cwiid.h: No such file or directory
#include <cwiid.h>
^
compilation terminated.
error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1

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

Command "/usr/bin/python3 -u -c "import setuptools, tokenize;file='/tmp/pip-build-bx0dhl_m/cwiid/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-omfholw_-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-bx0dhl_m/cwiid/

Originally posted by @GCMan777 in #7 (comment)

@ArchiPi
Copy link

ArchiPi commented Jun 25, 2019

I get the exact same error message and I don't understand how I can install the library with the changed file

@TwizzyDizzy
Copy link

TwizzyDizzy commented Apr 30, 2020

Not sure which device you are on, but in my case (Raspbian Buster, Raspberry Pi 2B) this did the trick for me:

aptitude install python3-dev
aptitude install libcwiid-dev libcwiid1
pip install wheel

BUT... you will probably be running into #7 afterwards.

Cheers
Thomas

@Zed-GH
Copy link

Zed-GH commented Feb 15, 2021

Similar issue here, its failing to build the wheel, running this on an X64 desktop running Ubuntu, however.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants