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

0.4 Pre-Release pdfstitcher fails to launch (Linux) #35

Closed
mara004 opened this issue Mar 22, 2021 · 3 comments
Closed

0.4 Pre-Release pdfstitcher fails to launch (Linux) #35

mara004 opened this issue Mar 22, 2021 · 3 comments

Comments

@mara004
Copy link
Contributor

mara004 commented Mar 22, 2021

Version 0.4-beta.1 (Pre-Release)
Commit: 1915b50
Platform: KDE Neon based on Ubuntu 20.04 LTS (Linux)
wxPython: distribution-provided package python3-wxgtk4.0 (4.0.7+dfsg-2build1)
(wxpython setup from pip3 fails, so I cannot try it with a newer version)

pdfstitcher.py fails to launch:

$ python3 pdfstitcher.py 
Traceback (most recent call last):
  File "pdfstitcher.py", line 706, in <module>
    frm = SewGUI(None, title=_('PDF Stitcher') + ' ' + version,size=(w,h))
  File "pdfstitcher.py", line 499, in __init__
    self.lt = LayersTab(nb)
  File "pdfstitcher.py", line 268, in __init__
    self.layer_list.EnableCheckBoxes(True)
AttributeError: 'ListCtrl' object has no attribute 'EnableCheckBoxes'

I guess the problem is that pdfstitcher relies on a newer wxpython API than what I have installed, right?

@cfcurtis
Copy link
Owner

Yes, unfortunately the checkbox for the layers list needs wxpython 4.1.0 or higher. I didn't realize that it was quite so new and I rely on it for defining which layers to include in the final output. This is also a good reminder that I need to update my limited documentation!

Is it just wxpython that's not working with pip? I wonder if it's conflicting with your system version somehow, though I'm guessing there are other things that depend on that.

@mara004
Copy link
Contributor Author

mara004 commented Mar 23, 2021

Yes, unfortunately the checkbox for the layers list needs wxpython 4.1.0 or higher. I didn't realize that it was quite so new and I rely on it for defining which layers to include in the final output. This is also a good reminder that I need to update my limited documentation!

Okay, thanks for the explanation.

Is it just wxpython that's not working with pip? I wonder if it's conflicting with your system version somehow

No, I don't think it's conflicting with the system version. It should be clearly separated into /usr/lib (distribution python packages), /usr/local/lib (system-wide pip install) and ~/.local/lib (local pip install). I also have other packages installed dually without issues.

though I'm guessing there are other things that depend on that.

Yes, this probably is the problem. wxPython do not build wheels for Linux, because it is too difficult to make them work with all different distributions (https://wxpython.org/blog/2017-08-17-builds-for-linux-with-pip/index.html). I'll get the necessary library and development packages and then retry. Hopefully the distribution-provided library versions are fine, otherwise it's getting complicated.

@mara004
Copy link
Contributor Author

mara004 commented Mar 23, 2021

It was less difficult than I though. All I had to do was install the libgtk-3-dev package, and then pip setup worked (I already had the other dependencies because I regularly build software myself). The wheels take rather long to build, however, pushing up cpu usage to 100% all the time.

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

2 participants