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 problem #5053

Closed
karolszczepanek11 opened this issue Dec 16, 2020 · 2 comments
Closed

Installation problem #5053

karolszczepanek11 opened this issue Dec 16, 2020 · 2 comments

Comments

@karolszczepanek11
Copy link

I am trying to install Weblate on Ubuntu 18.04.5 LTS
Before installation I added python 3.7.5 and did update-alternatives so "python" and "python3" link to python 3.7.5 version
I followed instruction but i have an error on step:
pip install Weblate
All previous steps of installation went well (no error)

Collecting Weblate
Using cached Weblate-4.4-py3-none-any.whl (24.7 MB)
Requirement already satisfied: setuptools>=40.3.0 in ./weblate-env/lib/python3.7/site-packages (from Weblate) (51.0.0)
Collecting diff-match-patch==20200713
Using cached diff_match_patch-20200713-py3-none-any.whl (61 kB)
Collecting social-auth-app-django==4.0.0
Using cached social_auth_app_django-4.0.0-py3-none-any.whl (24 kB)
Collecting social-auth-core==3.3.3
Using cached social_auth_core-3.3.3-py3-none-any.whl (326 kB)
Collecting translation-finder==2.6
Using cached translation_finder-2.6-py3-none-any.whl (81 kB)
Collecting weblate-schemas==0.5
Using cached weblate_schemas-0.5-py3-none-any.whl (8.0 kB)
Collecting Whoosh==2.7.4
Using cached Whoosh-2.7.4-py2.py3-none-any.whl (468 kB)
Collecting bleach<3.3.0,>=3.1.1
Using cached bleach-3.2.1-py2.py3-none-any.whl (145 kB)
Collecting borgbackup<1.2.0,>=1.1.9
Using cached borgbackup-1.1.14.tar.gz (3.8 MB)
Collecting celery[redis]!=5.0.0,!=5.0.1,!=5.0.2,<5.1,>=4.4.5
Using cached celery-5.0.4-py3-none-any.whl (392 kB)
Collecting billiard<4.0,>=3.6.3.0
Using cached billiard-3.6.3.0-py3-none-any.whl (89 kB)
Collecting click<8.0,>=7.0
Using cached click-7.1.2-py2.py3-none-any.whl (82 kB)
Collecting click-didyoumean>=0.0.3
Using cached click-didyoumean-0.0.3.tar.gz (2.6 kB)
Collecting click-plugins>=1.1.1
Using cached click_plugins-1.1.1-py2.py3-none-any.whl (7.5 kB)
Collecting click-repl>=0.1.6
Using cached click_repl-0.1.6-py3-none-any.whl (4.2 kB)
Collecting cryptography>=1.4
Using cached cryptography-3.3.1-cp36-abi3-manylinux2010_x86_64.whl (2.6 MB)
Collecting cffi>=1.12
Using cached cffi-1.14.4-cp37-cp37m-manylinux1_x86_64.whl (402 kB)
Collecting cssselect<1.2.0,>=1.0.0
Using cached cssselect-1.1.0-py2.py3-none-any.whl (16 kB)
Collecting Cython<0.30,>=0.29.14
Using cached Cython-0.29.21-cp37-cp37m-manylinux1_x86_64.whl (2.0 MB)
Collecting defusedxml>=0.5.0rc1
Using cached defusedxml-0.7.0rc1-py2.py3-none-any.whl (25 kB)
Collecting Django<3.2,>=3.1
Using cached Django-3.1.4-py3-none-any.whl (7.8 MB)
Collecting asgiref<4,>=3.2.10
Using cached asgiref-3.3.1-py3-none-any.whl (19 kB)
Collecting django-appconf<1.1,>=1.0.3
Using cached django_appconf-1.0.4-py2.py3-none-any.whl (6.3 kB)
Collecting django-compressor<2.5,>=2.4
Using cached django_compressor-2.4-py2.py3-none-any.whl (126 kB)
Collecting rcssmin==1.0.6
Using cached rcssmin-1.0.6.tar.gz (582 kB)
Collecting rjsmin==1.1.0
Using cached rjsmin-1.1.0-cp37-cp37m-manylinux1_x86_64.whl (24 kB)
Collecting django-crispy-forms<1.11.0,>=1.9.0
Using cached django_crispy_forms-1.10.0-py3-none-any.whl (107 kB)
Collecting django-filter<2.5.0,>=2.4.0
Using cached django_filter-2.4.0-py3-none-any.whl (73 kB)
Collecting django-redis<4.13.0,>=4.11.0
Using cached django_redis-4.12.1-py3-none-any.whl (19 kB)
Collecting djangorestframework<3.13.0,>=3.11.0
Using cached djangorestframework-3.12.2-py3-none-any.whl (957 kB)
Collecting filelock<3.1.0,>=3.0.0
Using cached filelock-3.0.12-py3-none-any.whl (7.6 kB)
Collecting GitPython<3.2.0,>=2.1.15
Using cached GitPython-3.1.11-py3-none-any.whl (159 kB)
Collecting gitdb<5,>=4.0.1
Using cached gitdb-4.0.5-py3-none-any.whl (63 kB)
Collecting hiredis<1.2.0,>=1.0.1
Using cached hiredis-1.1.0-cp37-cp37m-manylinux2010_x86_64.whl (62 kB)
Collecting html2text<2020.1.17,>=2019.8.11
Using cached html2text-2020.1.16-py3-none-any.whl (32 kB)
Collecting jellyfish<0.9.0,>=0.7.2
Using cached jellyfish-0.8.2-cp37-cp37m-manylinux2014_x86_64.whl (90 kB)
Collecting jsonschema<3.3.0,>=3.0.0
Using cached jsonschema-3.2.0-py2.py3-none-any.whl (56 kB)
Collecting attrs>=17.4.0
Using cached attrs-20.3.0-py2.py3-none-any.whl (49 kB)
Collecting kombu<6.0,>=5.0.0
Using cached kombu-5.0.2-py2.py3-none-any.whl (180 kB)
Collecting amqp<6.0.0,>=5.0.0
Using cached amqp-5.0.2-py3-none-any.whl (46 kB)
Collecting vine<6.0,>=5.0.0
Using cached vine-5.0.0-py2.py3-none-any.whl (9.4 kB)
Collecting importlib-metadata
Using cached importlib_metadata-3.3.0-py3-none-any.whl (10 kB)
Collecting lxml<4.7.0,>=4.4.0
Using cached lxml-4.6.2-cp37-cp37m-manylinux1_x86_64.whl (5.5 MB)
Collecting misaka<2.2.0,>=2.1.0
Using cached misaka-2.1.1.tar.gz (125 kB)
Collecting oauthlib>=1.0.3
Using cached oauthlib-3.1.0-py2.py3-none-any.whl (147 kB)
Collecting openpyxl!=3.0.2,<3.1,>=2.6.0
Using cached openpyxl-3.0.5-py2.py3-none-any.whl (242 kB)
Collecting Pillow<8.1.0,>=6.0.0
Using cached Pillow-8.0.1-cp37-cp37m-manylinux1_x86_64.whl (2.2 MB)
Collecting pycairo>=1.15.3
Using cached pycairo-1.20.0.tar.gz (344 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing wheel metadata ... done
Collecting pygobject>=3.27.0
Using cached PyGObject-3.38.0.tar.gz (712 kB)
Installing build dependencies ... error
ERROR: Command errored out with exit status 1:
command: /home/weblate/weblate-env/bin/python3 /home/weblate/weblate-env/lib/python3.7/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-ryg4ilsw/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools wheel pycairo
cwd: None
Complete output (42 lines):
Collecting pycairo
Using cached pycairo-1.20.0.tar.gz (344 kB)
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'done'
Preparing wheel metadata: started
Preparing wheel metadata: finished with status 'done'
Collecting wheel
Using cached wheel-0.36.2-py2.py3-none-any.whl (35 kB)
Collecting setuptools
Using cached setuptools-51.0.0-py3-none-any.whl (785 kB)
Building wheels for collected packages: pycairo
Building wheel for pycairo (PEP 517): started
Building wheel for pycairo (PEP 517): finished with status 'error'
ERROR: Command errored out with exit status 1:
command: /home/weblate/weblate-env/bin/python3 /home/weblate/weblate-env/lib/python3.7/site-packages/pip/_vendor/pep517/_in_process.py build_wheel /tmp/tmp43k06iql
cwd: /tmp/pip-install-pt6uqawx/pycairo_530ec788871c4cbf85562ef987b616f4
Complete output (19 lines):
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.7
creating build/lib.linux-x86_64-3.7/cairo
copying cairo/init.py -> build/lib.linux-x86_64-3.7/cairo
copying cairo/init.pyi -> build/lib.linux-x86_64-3.7/cairo
copying cairo/py.typed -> build/lib.linux-x86_64-3.7/cairo
running build_ext
building 'cairo._cairo' extension
creating build/temp.linux-x86_64-3.7
creating build/temp.linux-x86_64-3.7/cairo
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 -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DPYCAIRO_VERSION_MAJOR=1 -DPYCAIRO_VERSION_MINOR=20 -DPYCAIRO_VERSION_MICRO=0 -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/python3.7m -I/home/weblate/weblate-env/include/python3.7m -c cairo/device.c -o build/temp.linux-x86_64-3.7/cairo/device.o -Wall -Warray-bounds -Wcast-align -Wconversion -Wextra -Wformat=2 -Wformat-nonliteral -Wformat-security -Wimplicit-function-declaration -Winit-self -Winline -Wmissing-format-attribute -Wmissing-noreturn -Wnested-externs -Wold-style-definition -Wpacked -Wpointer-arith -Wreturn-type -Wshadow -Wsign-compare -Wstrict-aliasing -Wundef -Wunused-but-set-variable -Wswitch-default -Wno-missing-field-initializers -Wno-unused-parameter -Wno-unused-command-line-argument -fno-strict-aliasing -fvisibility=hidden -std=c99
cairo/device.c:30:10: fatal error: Python.h: No such file or directory
#include <Python.h>
^~~~~~~~~~
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
----------------------------------------
ERROR: Failed building wheel for pycairo
Failed to build pycairo
ERROR: Could not build wheels for pycairo which use PEP 517 and cannot be installed directly

ERROR: Command errored out with exit status 1: /home/weblate/weblate-env/bin/python3 /home/weblate/weblate-env/lib/python3.7/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-ryg4ilsw/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools wheel pycairo Check the logs for full command output.

@karolszczepanek11
Copy link
Author

used python 3.6.9 instead of 3.7.5

@github-actions
Copy link

The issue you have reported is resolved now. If you don’t feel it’s right, please follow it’s labels to get a clue and take further steps.

  • In case you see a similar problem, please open a separate issue.
  • If you are happy with the outcome, don’t hesitate to support Weblate by making a donation.

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

1 participant