Package Details: printrun 1:2.1.0-1

Git Clone URL: https://aur.archlinux.org/printrun.git (read-only, click to copy)
Package Base: printrun
Description: Pronterface, Pronsole, and Printcore - Pure Python 3D printing host software and GUI
Upstream URL: https://github.com/kliment/Printrun
Licenses: GPL
Conflicts: printrun-git
Provides: printrun-git
Submitter: ejona86
Maintainer: ejona86
Last Packager: ejona86
Votes: 23
Popularity: 0.000093
First Submitted: 2013-06-07 03:27 (UTC)
Last Updated: 2024-05-27 18:44 (UTC)

Latest Comments

1 2 3 4 Next › Last »

ejona86 commented on 2022-08-20 17:35 (UTC)

You can choose between 2D and 3D via Settings → Options → Viewer → Main visualization. Looks like the 3D view broke with wxgtk upgrade. It works fine with wxgtk3-3.0.5.1-3, wxgtk-common-3.0.5.1-3, python-wxpython-1:4.0.7.2-3. It's broken the next version: wxwidgets-common-3.2.0-1, wxwidgets-gtk3-3.2.0-1, python-wxpython-1:4.1.1-1. I've filed https://github.com/kliment/Printrun/issues/1283

s1zed commented on 2022-08-17 04:09 (UTC) (edited on 2022-08-17 04:11 (UTC) by s1zed)

I have found that the slicer interface in the middle of the pronterface utility does not properly show up when installing this package. Instead, you can see right through that portion of the application window to whatever is behind. Running pacman -Rdd python-pyglet to remove pyglet causes this interface to show up correctly. This leads me to believe that pyglet should be removed as a dependency if it is breaking the UI? However, running the source code straight from Github without pyglet installed produces the following error:


3D view mode requested, but we failed to initialize it.
Falling back to 2D view, and here is the backtrace:
Traceback (most recent call last):
  File "/home/s1zed/Downloads/Printrun/printrun/gui/viz.py", line 69, in __init__
    import printrun.gcview
  File "/home/s1zed/Downloads/Printrun/printrun/gcview.py", line 22, in <module>
    from .gl.panel import wxGLPanel
  File "/home/s1zed/Downloads/Printrun/printrun/gl/panel.py", line 25, in <module>
    import pyglet
ModuleNotFoundError: No module named 'pyglet'

Clearly this is somehow being used for a 3D view I have never seen in pronterface. What needs to be done to resolve this?

kirkyd commented on 2022-05-15 03:52 (UTC)

fixing /etc/locale.conf did indeed fix my trouble. thanks for the help!

ejona86 commented on 2022-05-11 00:33 (UTC)

@kirkyd, seems python -c 'import locale; print(locale.getdefaultlocale())' returns (None, None) on your system. I can reproduce that if I have LANG environment variable empty or unexported. Seems you may be missing /etc/locale.conf. I suggest fixing that, but something like LANG=en_US.utf8 pronsole.py should work.

kirkyd commented on 2022-05-10 14:16 (UTC)

I'm having an issue getting this to run.

$  pronsole.py
Traceback (most recent call last):
  File "/usr/bin/pronsole.py", line 21, in <module>
    from printrun.pronsole import pronsole
  File "/usr/lib/python3.10/site-packages/printrun/pronsole.py", line 35, in <module>
    from . import printcore
  File "/usr/lib/python3.10/site-packages/printrun/printcore.py", line 44, in <module>
    install_locale('pronterface')
  File "/usr/lib/python3.10/site-packages/printrun/utils.py", line 55, in install_locale
    translation = gettext.translation(domain, shared_locale_dir, languages=[lang[0]], fallback= True)
  File "/usr/lib/python3.10/gettext.py", line 587, in translation
    mofiles = find(domain, localedir, languages, all=True)
  File "/usr/lib/python3.10/gettext.py", line 558, in find
    for nelang in _expand_lang(lang):
  File "/usr/lib/python3.10/gettext.py", line 213, in _expand_lang
    loc = locale.normalize(loc)
  File "/usr/lib/python3.10/locale.py", line 413, in normalize
    code = localename.lower()
AttributeError: 'NoneType' object has no attribute 'lower'

tried git version without success as well.

Rhinoceros commented on 2022-05-08 02:05 (UTC)

Thanks @ejona86 for the quick fix! Works perfectly now.

ejona86 commented on 2022-05-08 00:49 (UTC)

Rhinoceros, I've updated the build to backport a fix from master that fixes the issue.

Rhinoceros commented on 2022-05-08 00:26 (UTC)

This isn't working for me at the moment.

$ pronterface.py
Traceback (most recent call last):
  File "/usr/bin/pronterface.py", line 62, in <module>
    app = PronterApp(False)
  File "/usr/lib/python3.10/site-packages/printrun/pronterface.py", line 2455, in __init__
    self.mainwindow = PronterWindow(self)
  File "/usr/lib/python3.10/site-packages/printrun/pronterface.py", line 219, in __init__
    self.reload_ui()
  File "/usr/lib/python3.10/site-packages/printrun/pronterface.py", line 293, in reload_ui
    self.createGui(self.settings.uimode == _("Compact"),
  File "/usr/lib/python3.10/site-packages/printrun/gui/__init__.py", line 259, in createGui
    viz_pane = VizPane(self, vizpanel)
  File "/usr/lib/python3.10/site-packages/printrun/gui/viz.py", line 115, in __init__
    root.gwindow = gviz.GvizWindow(build_dimensions = root.build_dimensions_list,
  File "/usr/lib/python3.10/site-packages/printrun/gviz.py", line 77, in __init__
    self.p = Gviz(panel, size = size, build_dimensions = build_dimensions, grid = grid, extrusion_width = extrusion_width, bgcolor = bgcolor, realparent = self)
  File "/usr/lib/python3.10/site-packages/printrun/gviz.py", line 197, in __init__
    self.mainpen = wx.Pen(wx.Colour(0, 0, 0), penwidth)
TypeError: Pen(): arguments did not match any overloaded call:
  overload 1: too many arguments
  overload 2: argument 2 has unexpected type 'float'
  overload 3: argument 1 has unexpected type 'Colour'

I'm not sure if it's an upstream bug since printrun-git works fine. If it is upstream, it would be good to patch this package. Cheers.

ejona86 commented on 2022-04-03 23:48 (UTC)

Yeah, https://lists.archlinux.org/pipermail/aur-requests/2022-March/068505.html . I'm not sure if I'll recreate it because it was deleted prematurely or not. Unfortunately it is hard to tell how many other things in AUR still depend on it.

marcn commented on 2022-04-03 21:14 (UTC)

@ejona86 currently the installation is not possible, due to python2-pyglet could not be found in AUR.