Comments (6)
Maybe the workflow described in this Stackoverflow question allows you to use the gi
module from your Anaconda installation.
from pympress.
If you installed python3-gi
you really should have the gi
module.
It seems that you are using a python version inside an installation of anaconda. You should you have a different python installation, and you probably installed gi
for one and pympress
for the other. In that case, try forcing the python outside the anaconda installation (for example in the default location, it could be /usr/bin/python3
:
pip uninstall pympress
/usr/bin/python3 -m pip install pympress
/usr/bin/python3 -m pympress
If that fixes it, you should check what defaults where as python installations go, on your system. Maybe default to using the non-anaconda python, or install gi
for the anaconda python.
To make the above fix more definitive, you can modify the pympress entry point (you can find out where it is using which pympress
, usually at $HOME/.local/bin/pympress
) to make sure it points to the non-anaconda python installation (on the first line, after the initial #!
). From there on just running pympress
should be fine.
from pympress.
Thank you for the answer, I think we can close this one.
from pympress.
Hi,
I had another problem with the import of cairo, I tried solving it in the same fashion but it didn't work, after a few research it appears that there is no cairo for python2 and so we need to use python3 (which I thought would be done using pympress3) but at the begining of the file in /usr/bin/pympress and /usr/bin/pympress3 we have the following line :
#!/usr/bin/python
changing it to python3 worked for me :
#!/usr/bin/python3
from pympress.
Using apt-cache search python cairo
on my Ubuntu system, it says that there is a Cairo package for Python2 (shortened output):
python-cairo - Python bindings for the Cairo vector graphics library
python-cairo-dbg - Python bindings for the Cairo vector graphics library (debug extension)
python-cairo-dev - Python cairo bindings: development files
python3-cairo - Python 3 bindings for the Cairo vector graphics library
python3-cairo-dev - Python 3 cairo bindings: development files
python3-cairo-doc - Python 3 cairo bindings: documentation files
python3-gi-cairo - Python 3 Cairo bindings for the GObject library
python-gi-cairo - Python Cairo bindings for the GObject library
Another alternative (instead of modifying the Shebang line of an installed package): Calling python3 -m pympress
instead of pympress
from the terminal should do the trick to (when doing so, the Shebang line is ignored).
from pympress.
if it works for you we can close this issue, @PierreQuinton.
The moral of the story is to make sure the same python installation if used for pympress as well as for all its dependencies.
from pympress.
Related Issues (20)
- 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
- vlc opens new window, rather than embedding when run under wayland HOT 3
- gif animation remains visible after changing the slide
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.