-
Notifications
You must be signed in to change notification settings - Fork 86
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
No package 'cairo' found #89
Comments
|
now: |
|
worked. thanks. |
They are not Python packages, and there is as far as I know, no standard way to deal with those. But maybe we can print a nicer error message if one is on a Debian based system. |
hi, i am trying to get python package pygobject, pycairo as snap, but the build is failing , please suggest failed build log ext.include_dirs += [get_pycairo_include_dir()] |
@vinaysimhabn I haven't used snapcraft yet, but have you tried adding "pycairo" to "python-packages" list? |
i have tried pycairo to python-packages, even that also fails saying "ImportError: No module named 'cairo'. |
hi, failed build-log : https://launchpadlibrarian.net/372548639/buildlog_snap_ubuntu_xenial_arm64_pygobject_BUILDING.txt.gz snapcraft.yaml |
Untested: parts:
pycairo:
source: https://github.com/pygobject/pycairo/releases/download/v1.17.0/pycairo-1.17.0.tar.gz
plugin: python
build-packages:
- libcairo2-dev
stage-packages:
- libcairo2
pygobject:
source: https://download.gnome.org/sources/pygobject/3.28/pygobject-3.28.2.tar.xz
plugin: python
after:
- pycairo
build-packages:
- libglib2.0-dev
- libgirepository1.0-dev
- libffi-dev
stage-packages:
- libglib2.0
- libgirepository-1.0
- libffi6
- libcairo-gobject2 |
i tried the way you suggested, it able to build the pycairo, but pygobject
not able to build,
it just stops at libglib2.0
i tried another method, in this it is able to build pycairio, but not able
to build pygobject due to PYTHONPATH error.
parts:
pycairo-import:
plugin: python3
python-packages:
- pycairo
python-import:
plugin: python3
after:
- pycairo-import
python-packages:
- pygobject
…---------------------------------error-
You are attempting to install a package to a directory that is not
on PYTHONPATH and which Python does not read ".pth" files from. The
installation directory you specified (via --install-dir, --prefix, or
the distutils default setting) was:
/home/linaro/checkbox_src/camera/parts/python-import/install/usr/lib/python3.5/site-packages
and your PYTHONPATH environment variable currently contains:
'/home/linaro/checkbox_src/camera/stage/usr/lib/python3.5/dist-packages'
Here are some of your options for correcting the problem:
* You can choose a different installation directory, i.e., one that is
on PYTHONPATH or supports .pth files
* You can add the installation directory to the PYTHONPATH environment
variable. (It must then also be on PYTHONPATH whenever you run
Python and want to use the package(s) you are installing.)
* You can set up the installation directory to support ".pth" files by
using one of the approaches described here:
https://pythonhosted.org/setuptools/easy_install.html#custom-installation-locations
Please make the appropriate changes for your system and try again.
Command '['/bin/sh', '/tmp/tmpqzjk6fp5', 'python3',
'/home/linaro/checkbox_src/camera/parts/python-
import/install/usr/bin/easy_install3', '--prefix',
'/home/linaro/checkbox_src/camera/parts/python-import/install/usr',
'pip']' returned non-zero exit status 1
---------------------------------error-
On Thu, May 31, 2018 at 11:41 AM, Christoph Reiter ***@***.*** > wrote:
Untested:
parts:
pycairo:
source: https://github.com/pygobject/pycairo/releases/download/v1.17.0/pycairo-1.17.0.tar.gz
plugin: python
build-packages:
- libcairo2-dev
stage-packages:
- libcairo2
pygobject:
source: https://download.gnome.org/sources/pygobject/3.28/pygobject-3.28.2.tar.xz
plugin: python
after:
- pycairo
build-packages:
- libglib2.0-dev
- libgirepository1.0-dev
- libffi-dev
stage-packages:
- libglib2.0
- libgirepository-1.0
- libffi6
- libcairo-gobject2
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#89 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AB69OIxAf5rp7iinNmZkIgktmY5wYBLnks5t34mfgaJpZM4RapN7>
.
--
regards,
vinaysimha
|
i am able to build the pycairo and pygboject, but still i am getting
typelib error.
i even added - gobject-introspection in stage-packages, but still it fails
in runtime "introspection typelib not found"
Traceback (most recent call last):
File "camera_test_legacy", line 41, in <module>
from gi.repository import GObject
File "/snap/camera/x4/lib/python3.5/site-packages/gi/importer.py", line
127, in find_module
'introspection typelib not found' % namespace)
ImportError: cannot import name GObject, introspection typelib not found
here is the snapcraft.yaml
https://git.launchpad.net/ifc6309/tree/snapcraft.yaml?h=camera_pygobject
i had commented these two lines , since while building it says these
libraries are not found in stage-packages.
# - libglib2.0
# - libgirepository1.0
…On Thu, May 31, 2018 at 4:24 PM, Vinay Simha B N ***@***.***> wrote:
i tried the way you suggested, it able to build the pycairo, but pygobject
not able to build,
it just stops at libglib2.0
i tried another method, in this it is able to build pycairio, but not able
to build pygobject due to PYTHONPATH error.
parts:
pycairo-import:
plugin: python3
python-packages:
- pycairo
python-import:
plugin: python3
after:
- pycairo-import
python-packages:
- pygobject
---------------------------------error-
You are attempting to install a package to a directory that is not
on PYTHONPATH and which Python does not read ".pth" files from. The
installation directory you specified (via --install-dir, --prefix, or
the distutils default setting) was:
/home/linaro/checkbox_src/camera/parts/python-import/
install/usr/lib/python3.5/site-packages
and your PYTHONPATH environment variable currently contains:
'/home/linaro/checkbox_src/camera/stage/usr/lib/python3.
5/dist-packages'
Here are some of your options for correcting the problem:
* You can choose a different installation directory, i.e., one that is
on PYTHONPATH or supports .pth files
* You can add the installation directory to the PYTHONPATH environment
variable. (It must then also be on PYTHONPATH whenever you run
Python and want to use the package(s) you are installing.)
* You can set up the installation directory to support ".pth" files by
using one of the approaches described here:
https://pythonhosted.org/setuptools/easy_install.html#
custom-installation-locations
Please make the appropriate changes for your system and try again.
Command '['/bin/sh', '/tmp/tmpqzjk6fp5', 'python3',
'/home/linaro/checkbox_src/camera/parts/python-
import/install/usr/bin/easy_install3', '--prefix',
'/home/linaro/checkbox_src/camera/parts/python-import/install/usr',
'pip']' returned non-zero exit status 1
---------------------------------error-
On Thu, May 31, 2018 at 11:41 AM, Christoph Reiter <
***@***.***> wrote:
> Untested:
>
> parts:
> pycairo:
> source: https://github.com/pygobject/pycairo/releases/download/v1.17.0/pycairo-1.17.0.tar.gz
> plugin: python
> build-packages:
> - libcairo2-dev
> stage-packages:
> - libcairo2
> pygobject:
> source: https://download.gnome.org/sources/pygobject/3.28/pygobject-3.28.2.tar.xz
> plugin: python
> after:
> - pycairo
> build-packages:
> - libglib2.0-dev
> - libgirepository1.0-dev
> - libffi-dev
> stage-packages:
> - libglib2.0
> - libgirepository-1.0
> - libffi6
> - libcairo-gobject2
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <#89 (comment)>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/AB69OIxAf5rp7iinNmZkIgktmY5wYBLnks5t34mfgaJpZM4RapN7>
> .
>
--
regards,
vinaysimha
--
regards,
vinaysimha
|
This means you are missing "gir1.2-glib-2.0" |
i had added gir1.2-glib-2.0 , but stil i am facing the same error
https://git.launchpad.net/ifc6309/tree/snapcraft.yaml?h=camera_pygobject&id=e1ae96ef4e329bbce8e6ea27491ee54da59f0553
Traceback (most recent call last):
File "<frozen importlib._bootstrap>", line 890, in _find_spec
AttributeError: 'DynamicImporter' object has no attribute 'find_spec'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "camera_test_legacy", line 41, in <module>
from gi.repository import GObject
File "/snap/camera/x8/lib/python3.5/site-packages/gi/importer.py", line
127, in find_module
'introspection typelib not found' % namespace)
ImportError: cannot import name GObject, introspection typelib not found
…On Fri, Jun 1, 2018 at 12:53 PM, Christoph Reiter ***@***.***> wrote:
ImportError: cannot import name GObject, introspection typelib not found
This means you are missing "gir1.2-glib-2.0"
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#89 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AB69ODuHM4Tl77vi1Zu523X9fzMxU4o9ks5t4OvggaJpZM4RapN7>
.
--
regards,
vinaysimha
|
For Mac users simply |
@cleebp pip installing after a successful brew install resulted in the following:
Did you mean pip installing something else? |
|
As suggested above, is there any systematic way of doing:
or
Adding this, would make the installation a lot more user friendly :-) Anyway, works for me now, thanks for everything :-D |
I've opened #175 |
What about for CentOS7? |
These three packages will bring you all the stuff you need, so "pip install PyGObject" could proceed without glithces. |
$ sudo apt-get update https://github.com/Automattic/node-canvas/wiki/Installation:-Ubuntu-and-other-Debian-based-systems |
use direnv or just add to your profile/rc:
|
Useful solution |
"sudo apt install libcairo2-dev" seemed to be the answer. But can anyone guide me on how to do it on windows cmd. I'm getting this error if I run the above command. |
@AvinandanPal25 You can either build cairo and pycairo using gvsbuild or install msys2 and install the right packages (mingw-w64-x86_64-cairo, mingw-w64-x86_64-python-pip, etc) |
It works for me. Ty |
This works fine for me. |
Hello, apt install lxqt-core xrdp
adduser xrdp ssl-cert
reboot I have added a user and can successfully login as my user using remote desktop client. Everything works except $ lxqt-globalkeysd
[Critical] Cannot register service 'org.lxqt.global_key_shortcuts'
[Notice] Stopped |
Hello, my system is macOS10.15, and the same error occurred above, but the installation failed using this command. How should I solve it? |
My system is macOS10.15, and the same error occurred above, but the installation failed using this command. How should I solve it? |
If you use homebrew to install cairo, then when you use pycairo it should probably be from python installed by homebrew as well. |
How to fix this please?
Linux-4.9.29-13-osmc-armv7l-with-debian-9.3
Python 2.7.13 (default, Nov 24 2017, 17:33:09)
[GCC 6.3.0 20170516] on linux2
The text was updated successfully, but these errors were encountered: