-
Notifications
You must be signed in to change notification settings - Fork 89
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
[windows prebuild] pixbuf fails when starting pympress #248
Comments
Is the file mentioned in the error message at the expected location? Can you open it? |
The file is fine. It's a standard PNG that is recognized by the os and by
other programmes.
I get the same error with the version installed by the msi.
|
I added the full backtrace in the first message. Is there any prefix I might need to change? |
I don’t think the path should be an issue if the path in the error message is where the file is located. Sometimes Windows has a hard time with spaces in paths but that should be fine from python.
|
Hmm, I only seem to have the compiled/frozen
and the loaders folder have the libraries I tried to load the shipped library in a clean py39 environment (it seems to frozen against py39): >>> import sys
>>> sys.path.append("c:/path/to/pympress/lib/")
>>> import gi
ImportError: cannot import name '_gi' from partially initialized module 'gi' (most likely due to a circular import) (c:/path/to/pympress/lib\gi\__init__.pyc) Not sure if you are supposed to be able to do this with I tried to install Is there somewhere where I can see the environment used for building the package? |
Yes the build system is through github actions, specifically the
I’ve built binaries with the latest commit and that messed up the naming a little bit as they are not releases, but those versions should run without crashing at least (though probably failing to load the pointers PNGs properly.) A good other debugging element would be to figure out whether other PNGs fail to load (icons, etc.) or just the pointers. |
The links do not appear to be working. Meanwhile, I have tried to setup a $ python -m pympress
Traceback (most recent call last):
File "C:\Anaconda3\envs\pympress\lib\runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Anaconda3\envs\pympress\lib\runpy.py", line 86, in _run_code
exec(code, run_globals)
File "C:\Anaconda3\envs\pympress\lib\site-packages\pympress\__main__.py", line 102, in <module>
from pympress import app
File "C:\Anaconda3\envs\pympress\lib\site-packages\pympress\app.py", line 38, in <module>
from pympress import util, config, document, ui, builder
File "C:\Anaconda3\envs\pympress\lib\site-packages\pympress\document.py", line 50, in <module>
gi.require_version('Poppler', '0.18')
File "C:\Anaconda3\envs\pympress\lib\site-packages\gi\__init__.py", line 126, in require_version
raise ValueError('Namespace %s not available' % namespace)
ValueError: Namespace Poppler not available I guess this would normally be provided by the Conda dependencies:
Edit: I guess gi support ins't enabled in the conda poppler package... conda-forge/poppler-feedstock#49 (comment) |
I think the issue is having the full gtk/gobject-introspection system using a windows-built python whereas msys against uses a mingw (i.e. gcc) built python, where getting the full setup is much easier. Last I tried I couldn’t get Poppler and bindings to compile on windows (gtk worked but not fully featured I think, and a little brittle). Interesting though it is, it’s a bit too much of a rabbit hole for me. My last efforts are here though you may need an appveyor account to see them − all that was years ago though. It is great that poppler is compiled and shipped on conda. It would be even greater if it shipped the
and Arguably it would only be a small increment to the conda recipes so could be extrapolated from their work and maybe even merged there. I’ve also fixed the links to the installers and zips above to outside github for now − until they get a proper release which will make them downloadable. |
You can get the binaries from the artifact zip here, that’s a little less shady: https://github.com/Cimbali/pympress/actions/runs/2610972958#artifacts |
I can start pympress with the latest build. But is still complaining about pngs. Moving the mouse inside the window constantly creates errors relating to Adwaita icons_
And I can crash the the program with the clicking help > shortcuts:
Strangely, it does show the |
Aside: I just noticed that conda gdk doesn't support png:
but it is actually missing the pixbufloader files. |
Interesting. Can you use that query loaders binary with |
In any case I’ll try and get my hands on a windows machine soon and reproduce this. |
By the way, does the log file contain a |
No it crashes. I think the versions are (too) different. It can't load any of the loaders. But the
I can check if this matches the output on my GNU/Linux machine. |
Thanks for checking. The Highlight buttons are rendered with cairo not |
I don't see those messages. Most seem to be missing png icons. One that I noticed is missing is the downward-pointing arrow for dropdown lists (e.g. in the window where you can configure the presenter's screen). |
I just had an antivirus interfere with Also are you using Windows 11? I only have 10 to test it on and can’t reproduce. Not that it should be the cause here. Finally can you report the first 2 lines of your log file? |
Describe the bug
With the two latest releases, I am unable to start pympress on windows.
I get the following error.
I have tried
PATH
.PATH
. Neither helped.To Reproduce
pympress-v1.7.2-x86_64.zip
orpympress-v1.7.2-i686.zip
.cmd
Environment (please complete the following information):
Debug information (see below for file locations)
Additional context
pympress/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache
seems to be fine...The text was updated successfully, but these errors were encountered: