Comments (3)
I have just encountered this issue. Installing python3-gi-cairo
fixed it.
[joe@ryuko ~]$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux testing (buster)
Release: testing
Codename: buster
[joe@ryuko ~]$ pip3 install --user pympress
Collecting pympress
Using cached https://files.pythonhosted.org/packages/b0/5c/70c9c50529d466d70b8770f586f544de43189921b13742e4808f90fc5eb5/pympress-1.2.0-py2.py3-none-any.whl
Collecting python-vlc (from pympress)
Installing collected packages: python-vlc, pympress
Successfully installed pympress-1.2.0 python-vlc-3.0.102
[joe@ryuko ~]$ apt search python3-cairo
Sorting... Done
Full Text Search... Done
python3-cairo/testing,now 1.16.2-1+b1 amd64 [installed]
Python3 bindings for the Cairo vector graphics library
[joe@ryuko ~]$ pympress3
(pympress3:18496): Gtk-WARNING **: 23:02:51.830: Theme parsing error: gtk.css:127:35: The style property GtkButton:child-displacement-x is deprecated and shouldn't be used anymore. It will be removed in a future version
(pympress3:18496): Gtk-WARNING **: 23:02:51.830: Theme parsing error: gtk.css:128:35: The style property GtkButton:child-displacement-y is deprecated and shouldn't be used anymore. It will be removed in a future version
(pympress3:18496): Gtk-WARNING **: 23:02:51.830: Theme parsing error: gtk.css:132:46: The style property GtkScrolledWindow:scrollbars-within-bevel is deprecated and shouldn't be used anymore. It will be removed in a future version
TypeError: Couldn't find foreign struct converter for 'cairo.Context'
TypeError: Couldn't find foreign struct converter for 'cairo.Context'
TypeError: Couldn't find foreign struct converter for 'cairo.Context'
TypeError: Couldn't find foreign struct converter for 'cairo.Context'
TypeError: Couldn't find foreign struct converter for 'cairo.Context'
TypeError: Couldn't find foreign struct converter for 'cairo.Context'
TypeError: Couldn't find foreign struct converter for 'cairo.Context'
TypeError: Couldn't find foreign struct converter for 'cairo.Context'
TypeError: Couldn't find foreign struct converter for 'cairo.Context'
TypeError: Couldn't find foreign struct converter for 'cairo.Context'
TypeError: Couldn't find foreign struct converter for 'cairo.Context'
TypeError: Couldn't find foreign struct converter for 'cairo.Context'
Traceback (most recent call last):
File "/home/joe/.local/lib/python3.6/site-packages/pympress/surfacecache.py", line 298, in renderer
surface = self.surface_factory[widget_name](cairo.CONTENT_COLOR, ww, wh)
File "/home/joe/.local/lib/python3.6/site-packages/pympress/surfacecache.py", line 128, in <lambda>
self.surface_factory[widget_name] = lambda c, w, h: widget.get_window().create_similar_surface(c, w, h)
TypeError: Couldn't find foreign struct converter for 'cairo.Surface'
[joe@ryuko ~]$ sudo apt install python3-gi-cairo
[sudo] password for joe:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
python3-gi-cairo
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 24.5 kB of archives.
After this operation, 76.8 kB of additional disk space will be used.
Get:1 http://ftp.uk.debian.org/debian testing/main amd64 python3-gi-cairo amd64 3.30.1-1 [24.5 kB]
Fetched 24.5 kB in 0s (87.6 kB/s)
Selecting previously unselected package python3-gi-cairo.
(Reading database ... 495141 files and directories currently installed.)
Preparing to unpack .../python3-gi-cairo_3.30.1-1_amd64.deb ...
Unpacking python3-gi-cairo (3.30.1-1) ...
Setting up python3-gi-cairo (3.30.1-1) ...
from pympress.
Hi @sigwinch28, thanks for the feedback I'll update the readme.
from pympress.
That's sort of strange. We use the python-cairo
bindings, but not through gobject introspection (gi
). I suspect python-cairo
is a dependency for python-gi-cairo
, so you might have installed both at once.
Did you copy/paste the command line from the README? I see you're using Python 2.7 and the command line given is installing prerequesites for python 3 (i.e. python3-cairo
instead of python-cairo
).
You could grep through your apt logs to find out whether you just installed python-cairo
or just python-gi-cairo
. That would confirm whether a dependency is really missing or not.
from pympress.
Related Issues (20)
- Pympress (1.5.1+dfsg-3build1) is not loading when using i3 HOT 7
- Pympress crashes on start on Fedora 38 beta. HOT 1
- get_primary_monitor() returns None HOT 2
- Notes are misaligned HOT 2
- Improve Annotations HOT 9
- Undo Clears Slide HOT 4
- Incorrect rendering of greek and math symbols on windows in plots generated with R HOT 14
- First slide in presenter mode. HOT 3
- [Windows] Not loading the proper language HOT 1
- Setup proper visual testing
- Support proper Hi-DPI on Windows HOT 2
- Annotation support for line breaks
- Allow configuring thresholds for colors on elapsed time for estimated time HOT 2
- Help needed for installation under nobara linux
- No video when note slide located at bottom of page HOT 7
- Slide deck overview missing every 2nd slide HOT 5
- Recomend using pipx instead of pip HOT 3
- Shortcuts page in version 1.7.1 shows wrong keys: Shift and Ctrl are mixed HOT 7
- Play gif via animate package does not start animation loop when displayed via Pympress HOT 9
- Save PDF with the Highlights HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pympress.