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

Clashes with python-slugify package #37

Open
dima-spire opened this issue Apr 5, 2018 · 2 comments
Open

Clashes with python-slugify package #37

dima-spire opened this issue Apr 5, 2018 · 2 comments

Comments

@dima-spire
Copy link

For example, installing airflow pip install airflow makes from slugify import Slugify fail, as there's no Slugify.

@alepando
Copy link

verdad que nadie puede ayudar a resolver este problema?
O por lo menos dar pistas por donde buscar la solución?
I copy/paste the complete exit:

yomismo$ pip install awesome-slugify
Collecting awesome-slugify
Collecting regex (from awesome-slugify)
Using cached https://files.pythonhosted.org/packages/51/60/ca22cabfcca6c5799d08947644417793470ee7afdd7681413a25d969f336/regex-2018.06.21.tar.gz
Requirement already satisfied: Unidecode<0.05,>=0.04.14 in /home/apando/venv/lib/python3.6/site-packages (from awesome-slugify) (0.4.21)
Building wheels for collected packages: regex
Running setup.py bdist_wheel for regex ... error
Complete output from command /home/apando/venv/bin/python3 -u -c "import setuptools, tokenize;file='/tmp/pip-install-k9zzhh0j/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-iapt2rg2 --python-tag cp36:
/home/apando/venv/lib/python3.6/site-packages/setuptools/dist.py:398: UserWarning: Normalizing '2018.06.21' to '2018.6.21'
normalized_version,
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.6
copying regex_3/regex.py -> build/lib.linux-x86_64-3.6
copying regex_3/_regex_core.py -> build/lib.linux-x86_64-3.6
copying regex_3/test_regex.py -> build/lib.linux-x86_64-3.6
running build_ext
building '_regex' extension
creating build/temp.linux-x86_64-3.6
creating build/temp.linux-x86_64-3.6/regex_3
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.6m -I/home/apando/venv/include/python3.6m -c regex_3/_regex.c -o build/temp.linux-x86_64-3.6/regex_3/_regex.o
regex_3/_regex.c:46:10: fatal error: Python.h: No existe el fichero o el directorio
#include "Python.h"
^~~~~~~~~~
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1


Failed building wheel for regex
Running setup.py clean for regex
Failed to build regex
Installing collected packages: regex, awesome-slugify
Running setup.py install for regex ... error
Complete output from command /home/apando/venv/bin/python3 -u -c "import setuptools, tokenize;file='/tmp/pip-install-k9zzhh0j/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-54zwzsjx/install-record.txt --single-version-externally-managed --compile --install-headers /home/apando/venv/include/site/python3.6/regex:
/home/apando/venv/lib/python3.6/site-packages/setuptools/dist.py:398: UserWarning: Normalizing '2018.06.21' to '2018.6.21'
normalized_version,
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.6
copying regex_3/regex.py -> build/lib.linux-x86_64-3.6
copying regex_3/_regex_core.py -> build/lib.linux-x86_64-3.6
copying regex_3/test_regex.py -> build/lib.linux-x86_64-3.6
running build_ext
building '_regex' extension
creating build/temp.linux-x86_64-3.6
creating build/temp.linux-x86_64-3.6/regex_3
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.6m -I/home/apando/venv/include/python3.6m -c regex_3/_regex.c -o build/temp.linux-x86_64-3.6/regex_3/_regex.o
regex_3/_regex.c:46:10: fatal error: Python.h: No existe el fichero o el directorio
#include "Python.h"
^~~~~~~~~~
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

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

Command "/home/apando/venv/bin/python3 -u -c "import setuptools, tokenize;file='/tmp/pip-install-k9zzhh0j/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-54zwzsjx/install-record.txt --single-version-externally-managed --compile --install-headers /home/apando/venv/include/site/python3.6/regex" failed with error code 1 in /tmp/pip-install-k9zzhh0j/regex/

@hippieZhou
Copy link

Hi,Have you solved it ? I alse throw this Exception on my ubuntu 18.04 server

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

3 participants