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

Installation Fails On Repl.it #214

Open
Black-Blaze opened this issue Apr 17, 2021 · 3 comments
Open

Installation Fails On Repl.it #214

Black-Blaze opened this issue Apr 17, 2021 · 3 comments

Comments

@Black-Blaze
Copy link

Traceback:

`Repl.it: Updating package configuration

--> python3 -m poetry add Bjoern
Using version ^3.1.0 for Bjoern

Updating dependencies
Resolving dependencies...

Package operations: 1 install, 0 updates, 0 removals

  • Installing Bjoern (3.1.0)

[EnvCommandError]
Command ['/opt/virtualenvs/python3/bin/pip', 'install', '--no-deps', 'bjoern==3.1.0'] errored with the following return code 1, and output:
Collecting bjoern==3.1.0
Using cached https://files.pythonhosted.org/packages/8f/d9/729bed4f535574bd2ca7d541e88f94f5ae678c341f4df153a70a3ff3a695/bjoern-3.1.0.tar.gz
Building wheels for collected packages: Bjoern
Building wheel for Bjoern (setup.py): started
Building wheel for bjoern (setup.py): finished with status 'error'
ERROR: Command errored out with exit status 1:
command: /opt/virtualenvs/python3/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-sntn21hu/bjoern/setup.py'"'"'; file='"'"'/tmp/pip-install-sntn21hu/bjoern/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-rsvbklsv --python-tag cp38
cwd: /tmp/pip-install-sntn21hu/bjoern/
Complete output (20 lines):
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.8
copying bjoern.py -> build/lib.linux-x86_64-3.8
running build_ext
building '_bjoern' extension
creating build/temp.linux-x86_64-3.8
creating build/temp.linux-x86_64-3.8/http-parser
creating build/temp.linux-x86_64-3.8/bjoern
x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DSIGNAL_CHECK_INTERVAL=0.1 -DWANT_SIGNAL_HANDLING=yes -DWANT_SIGINT_HANDLING=yes -Ihttp-parser -Istatsd-c-client -I/usr/include/libev -I/opt/local/include -I/opt/virtualenvs/python3/include -I/usr/include/python3.8 -c http-parser/http_parser.c -o build/temp.linux-x86_64-3.8/http-parser/http_parser.o -std=c99 -fno-strict-aliasing -fcommon -fPIC -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -g
x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DSIGNAL_CHECK_INTERVAL=0.1 -DWANT_SIGNAL_HANDLING=yes -DWANT_SIGINT_HANDLING=yes -Ihttp-parser -Istatsd-c-client -I/usr/include/libev -I/opt/local/include -I/opt/virtualenvs/python3/include -I/usr/include/python3.8 -c bjoern/_bjoernmodule.c -o build/temp.linux-x86_64-3.8/bjoern/_bjoernmodule.o -std=c99 -fno-strict-aliasing -fcommon -fPIC -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -g
In file included from bjoern/wsgi.h:2:0,
from bjoern/_bjoernmodule.c:3:
bjoern/request.h:4:10: fatal error: ev.h: No such file or directory
#include <ev.h>
^~~~~~
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

ERROR: Failed building wheel for Bjoern
Running setup.py clean for bjoern
Failed to build bjoern
Installing collected packages: bjoern
Running setup.py install for bjoern: started
Running setup.py install for bjoern: finished with status 'error'
ERROR: Command errored out with exit status 1:
command: /opt/virtualenvs/python3/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-sntn21hu/bjoern/setup.py'"'"'; file='"'"'/tmp/pip-install-sntn21hu/bjoern/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-kbxfyffj/install-record.txt --single-version-externally-managed --compile --install-headers /opt/virtualenvs/python3/include/site/python3.8/bjoern
cwd: /tmp/pip-install-sntn21hu/bjoern/
Complete output (20 lines):
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.8
copying bjoern.py -> build/lib.linux-x86_64-3.8
running build_ext
building '_bjoern' extension
creating build/temp.linux-x86_64-3.8
creating build/temp.linux-x86_64-3.8/http-parser
creating build/temp.linux-x86_64-3.8/bjoern
x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DSIGNAL_CHECK_INTERVAL=0.1 -DWANT_SIGNAL_HANDLING=yes -DWANT_SIGINT_HANDLING=yes -Ihttp-parser -Istatsd-c-client -I/usr/include/libev -I/opt/local/include -I/opt/virtualenvs/python3/include -I/usr/include/python3.8 -c http-parser/http_parser.c -o build/temp.linux-x86_64-3.8/http-parser/http_parser.o -std=c99 -fno-strict-aliasing -fcommon -fPIC -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -g
x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DSIGNAL_CHECK_INTERVAL=0.1 -DWANT_SIGNAL_HANDLING=yes -DWANT_SIGINT_HANDLING=yes -Ihttp-parser -Istatsd-c-client -I/usr/include/libev -I/opt/local/include -I/opt/virtualenvs/python3/include -I/usr/include/python3.8 -c bjoern/_bjoernmodule.c -o build/temp.linux-x86_64-3.8/bjoern/_bjoernmodule.o -std=c99 -fno-strict-aliasing -fcommon -fPIC -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -g
In file included from bjoern/wsgi.h:2:0,
from bjoern/_bjoernmodule.c:3:
bjoern/request.h:4:10: fatal error: ev.h: No such file or directory
#include <ev.h>
^~~~~~
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
----------------------------------------
ERROR: Command errored out with exit status 1: /opt/virtualenvs/python3/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-sntn21hu/bjoern/setup.py'"'"'; file='"'"'/tmp/pip-install-sntn21hu/bjoern/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-kbxfyffj/install-record.txt --single-version-externally-managed --compile --install-headers /opt/virtualenvs/python3/include/site/python3.8/bjoern Check the logs for full command output.
WARNING: You are using pip version 19.3.1; however, version 21.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

exit status 1

Repl.it: Package operation failed.`

@mayli
Copy link

mayli commented Apr 18, 2021

Your system doesn't have the ev.h headers, you can apt get it.

@Black-Blaze
Copy link
Author

Well I Am On Replit And They Provide A Sandboxed Environment Without Sudo And Even Plain Apt

@mayli
Copy link

mayli commented Apr 19, 2021

Maybe a good approach is to publish bjoern as manylinux wheel to pypi, build from github actions.

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

2 participants