[Solved] Issues scaling images on Ubuntu 22.04

Post here for help on using FreeCAD's graphical user interface (GUI).
Forum rules
and Helpful information
IMPORTANT: Please click here and read this first, before asking for help

Also, be nice to others! Read the FreeCAD code of conduct!
Post Reply
leoheck
Veteran
Posts: 1222
Joined: Tue Mar 13, 2018 5:56 pm
Location: Coffee shop

[Solved] Issues scaling images on Ubuntu 22.04

Post by leoheck »

I am experiencing issues to scale images when running FreeCad on Ubuntu 22.04
Do you guys have the same issue?
Any idea or workaround to solve this?

Thank you!

Edit: Jeeeeeesus! Forgort the version, by bad.

Code: Select all

OS: Ubuntu 22.04 LTS (ubuntu:GNOME/ubuntu)
Word size of FreeCAD: 64-bit
Version: 0.20.
Build type: Release
Branch: unknown
Hash: b02705d79f2e1adc7773f0c845e0acc5ae8fde4b
Python 3.10.4, Qt 5.15.3, Coin 4.0.0, OCC 7.5.1
Locale: English/United States (en_US)
Installed mods: 
  * A2plus 0.4.56
  * Curves 0.4.3
  * fasteners 0.3.41
  * Assembly4 0.11.12
  * kicadStepUpMod 10.12.0
  * ExplodedAssembly
Last edited by leoheck on Wed Jun 01, 2022 1:13 am, edited 2 times in total.
User avatar
Shalmeneser
Veteran
Posts: 9474
Joined: Wed Dec 23, 2020 12:04 am
Location: Fr

Re: Issues scaling images

Post by Shalmeneser »

Full version ? File to try ?
User avatar
bambuko
Veteran
Posts: 2160
Joined: Thu Oct 24, 2019 12:53 pm
Location: UK, England, North Devon

Re: Issues scaling images

Post by bambuko »

leoheck wrote: Thu May 26, 2022 8:06 pm ...Do you guys have the same issue?...
How would I know if "my issues" are "the same" as yours, if I don't what your issues are??
We need bit more clarity from you...
I am using Link branch and Assembly3
you can also download ... and try it here
excellent Assembly3 tutorials here
Bance
Veteran
Posts: 4186
Joined: Wed Feb 11, 2015 3:00 pm
Location: London

Re: Issues scaling images

Post by Bance »

leoheck
Veteran
Posts: 1222
Joined: Tue Mar 13, 2018 5:56 pm
Location: Coffee shop

Re: Issues scaling images

Post by leoheck »

Ops, sorry, forgot to add the version. Here it is.

Code: Select all

OS: Ubuntu 22.04 LTS (ubuntu:GNOME/ubuntu)
Word size of FreeCAD: 64-bit
Version: 0.20.
Build type: Release
Branch: unknown
Hash: b02705d79f2e1adc7773f0c845e0acc5ae8fde4b
Python 3.10.4, Qt 5.15.3, Coin 4.0.0, OCC 7.5.1
Locale: English/United States (en_US)
Installed mods: 
  * A2plus 0.4.56
  * Curves 0.4.3
  * fasteners 0.3.41
  * Assembly4 0.11.12
  * kicadStepUpMod 10.12.0
  * ExplodedAssembly
Last edited by leoheck on Sat May 28, 2022 4:43 am, edited 1 time in total.
leoheck
Veteran
Posts: 1222
Joined: Tue Mar 13, 2018 5:56 pm
Location: Coffee shop

Re: Issues scaling images

Post by leoheck »

Here is a screenshot
Screenshot-20220528014120-1920x1200.png
Screenshot-20220528014120-1920x1200.png (511.62 KiB) Viewed 1366 times
And here what I have on Report View

Code: Select all

01:41:06  Running the Python command 'Image_Scaling' failed:
Traceback (most recent call last):
  File "/usr/share/freecad-daily/Mod/Image/ImageTools/_CommandImageScaling.py", line 68, in Activated
    cmdCreateImageScaling(name="ImageScaling", trackers=trackers)
  File "/usr/share/freecad-daily/Mod/Image/ImageTools/_CommandImageScaling.py", line 214, in cmdCreateImageScaling
    ui.setupUi(d)
  File "/usr/share/freecad-daily/Mod/Image/ImageTools/_CommandImageScaling.py", line 138, in setupUi
    self.tracker = trackers.lineTracker(scolor=(1,0,0))
  File "/usr/share/freecad-daily/Mod/Draft/draftguitools/gui_trackers.py", line 183, in __init__
    line.numVertices.setValue(2)
  File "/usr/lib/python3/dist-packages/pivy/coin.py", line 3989, in __getattr__
    field = self.getField(name)
  File "/usr/lib/python3/dist-packages/pivy/coin.py", line 3873, in getField
    return _coin.SoFieldContainer_getField(self, name)

<built-in function SoFieldContainer_getField> returned a result with an exception set<class 'SystemError'>
01:41:07  SystemError: PY_SSIZE_T_CLEAN macro must be defined for '#' formats
01:41:07  
The above exception was the direct cause of the following exception:

01:41:07  Traceback (most recent call last):
01:41:07    File "/usr/share/freecad-daily/Mod/Image/ImageTools/_CommandImageScaling.py", line 187, in getmousepoint
01:41:07      event = event_cb.getEvent()
01:41:07    File "/usr/lib/python3/dist-packages/pivy/coin.py", line 42443, in getEvent
01:41:07      return _coin.SoEventCallback_getEvent(self)
01:41:07  SystemError: <built-in function SoEventCallback_getEvent> returned a result with an exception set
01:41:07  <class 'SystemError'>
01:41:07  SystemError: PY_SSIZE_T_CLEAN macro must be defined for '#' formats
01:41:07  
The above exception was the direct cause of the following exception:

01:41:07  Traceback (most recent call last):
01:41:07    File "/usr/share/freecad-daily/Mod/Image/ImageTools/_CommandImageScaling.py", line 187, in getmousepoint
01:41:07      event = event_cb.getEvent()
01:41:07    File "/usr/lib/python3/dist-packages/pivy/coin.py", line 42443, in getEvent
01:41:07      return _coin.SoEventCallback_getEvent(self)
01:41:07  SystemError: <built-in function SoEventCallback_getEvent> returned a result with an exception set
01:41:07  <class 'SystemError'>
01:41:07  SystemError: PY_SSIZE_T_CLEAN macro must be defined for '#' formats
01:41:07  
The above exception was the direct cause of the following exception:

01:41:07  Traceback (most recent call last):
01:41:07    File "/usr/share/freecad-daily/Mod/Image/ImageTools/_CommandImageScaling.py", line 187, in getmousepoint
01:41:07      event = event_cb.getEvent()
01:41:07    File "/usr/lib/python3/dist-packages/pivy/coin.py", line 42443, in getEvent
01:41:07      return _coin.SoEventCallback_getEvent(self)
01:41:07  SystemError: <built-in function SoEventCallback_getEvent> returned a result with an exception set
01:41:17  <class 'SystemError'>
01:41:17  SystemError: PY_SSIZE_T_CLEAN macro must be defined for '#' formats
01:41:17  
The above exception was the direct cause of the following exception:

01:41:17  Traceback (most recent call last):
01:41:17    File "/usr/share/freecad-daily/Mod/Image/ImageTools/_CommandImageScaling.py", line 187, in getmousepoint
01:41:17      event = event_cb.getEvent()
01:41:17    File "/usr/lib/python3/dist-packages/pivy/coin.py", line 42443, in getEvent
01:41:17      return _coin.SoEventCallback_getEvent(self)
01:41:17  SystemError: <built-in function SoEventCallback_getEvent> returned a result with an exception set
01:41:17  <class 'SystemError'>
01:41:17  SystemError: PY_SSIZE_T_CLEAN macro must be defined for '#' formats
01:41:17  
The above exception was the direct cause of the following exception:

01:41:17  Traceback (most recent call last):
01:41:17    File "/usr/share/freecad-daily/Mod/Image/ImageTools/_CommandImageScaling.py", line 187, in getmousepoint
01:41:17      event = event_cb.getEvent()
01:41:17    File "/usr/lib/python3/dist-packages/pivy/coin.py", line 42443, in getEvent
01:41:17      return _coin.SoEventCallback_getEvent(self)
01:41:17  SystemError: <built-in function SoEventCallback_getEvent> returned a result with an exception set
01:41:17  <class 'SystemError'>
01:41:17  SystemError: PY_SSIZE_T_CLEAN macro must be defined for '#' formats
01:41:17  
The above exception was the direct cause of the following exception:

01:41:17  Traceback (most recent call last):
01:41:17    File "/usr/share/freecad-daily/Mod/Image/ImageTools/_CommandImageScaling.py", line 187, in getmousepoint
01:41:17      event = event_cb.getEvent()
01:41:17    File "/usr/lib/python3/dist-packages/pivy/coin.py", line 42443, in getEvent
01:41:17      return _coin.SoEventCallback_getEvent(self)
01:41:17  SystemError: <built-in function SoEventCallback_getEvent> returned a result with an exception set
01:41:17  <class 'SystemError'>
01:41:17  SystemError: PY_SSIZE_T_CLEAN macro must be defined for '#' formats
01:41:17  
The above exception was the direct cause of the following exception:

01:41:17  Traceback (most recent call last):
01:41:17    File "/usr/share/freecad-daily/Mod/Image/ImageTools/_CommandImageScaling.py", line 187, in getmousepoint
01:41:17      event = event_cb.getEvent()
01:41:17    File "/usr/lib/python3/dist-packages/pivy/coin.py", line 42443, in getEvent
01:41:17      return _coin.SoEventCallback_getEvent(self)
01:41:17  SystemError: <built-in function SoEventCallback_getEvent> returned a result with an exception set
01:41:17  <class 'SystemError'>
01:41:17  SystemError: PY_SSIZE_T_CLEAN macro must be defined for '#' formats
01:41:17  
The above exception was the direct cause of the following exception:

01:41:17  Traceback (most recent call last):
01:41:17    File "/usr/share/freecad-daily/Mod/Image/ImageTools/_CommandImageScaling.py", line 187, in getmousepoint
01:41:17      event = event_cb.getEvent()
01:41:17    File "/usr/lib/python3/dist-packages/pivy/coin.py", line 42443, in getEvent
01:41:17      return _coin.SoEventCallback_getEvent(self)
01:41:17  SystemError: <built-in function SoEventCallback_getEvent> returned a result with an exception set
01:41:17  <class 'SystemError'>
01:41:17  SystemError: PY_SSIZE_T_CLEAN macro must be defined for '#' formats
01:41:17  
The above exception was the direct cause of the following exception:

01:41:17  Traceback (most recent call last):
01:41:17    File "/usr/share/freecad-daily/Mod/Image/ImageTools/_CommandImageScaling.py", line 187, in getmousepoint
01:41:17      event = event_cb.getEvent()
01:41:17    File "/usr/lib/python3/dist-packages/pivy/coin.py", line 42443, in getEvent
01:41:17      return _coin.SoEventCallback_getEvent(self)
01:41:17  SystemError: <built-in function SoEventCallback_getEvent> returned a result with an exception set
01:41:17  <class 'SystemError'>
01:41:17  SystemError: PY_SSIZE_T_CLEAN macro must be defined for '#' formats
01:41:17  
The above exception was the direct cause of the following exception:

01:41:17  Traceback (most recent call last):
01:41:17    File "/usr/share/freecad-daily/Mod/Image/ImageTools/_CommandImageScaling.py", line 187, in getmousepoint
01:41:17      event = event_cb.getEvent()
01:41:17    File "/usr/lib/python3/dist-packages/pivy/coin.py", line 42443, in getEvent
01:41:17      return _coin.SoEventCallback_getEvent(self)
01:41:17  SystemError: <built-in function SoEventCallback_getEvent> returned a result with an exception set
01:41:17  <class 'SystemError'>
01:41:17  SystemError: PY_SSIZE_T_CLEAN macro must be defined for '#' formats
01:41:17  
The above exception was the direct cause of the following exception:

01:41:17  Traceback (most recent call last):
01:41:17    File "/usr/share/freecad-daily/Mod/Image/ImageTools/_CommandImageScaling.py", line 187, in getmousepoint
01:41:17      event = event_cb.getEvent()
01:41:17    File "/usr/lib/python3/dist-packages/pivy/coin.py", line 42443, in getEvent
01:41:17      return _coin.SoEventCallback_getEvent(self)
01:41:17  SystemError: <built-in function SoEventCallback_getEvent> returned a result with an exception set
01:41:17  <class 'SystemError'>
01:41:17  SystemError: PY_SSIZE_T_CLEAN macro must be defined for '#' formats
01:41:17  
The above exception was the direct cause of the following exception:

01:41:17  Traceback (most recent call last):
01:41:17    File "/usr/share/freecad-daily/Mod/Image/ImageTools/_CommandImageScaling.py", line 187, in getmousepoint
01:41:17      event = event_cb.getEvent()
01:41:17    File "/usr/lib/python3/dist-packages/pivy/coin.py", line 42443, in getEvent
01:41:17      return _coin.SoEventCallback_getEvent(self)
01:41:17  SystemError: <built-in function SoEventCallback_getEvent> returned a result with an exception set
01:41:17  <class 'SystemError'>
01:41:17  SystemError: PY_SSIZE_T_CLEAN macro must be defined for '#' formats
01:41:17  
The above exception was the direct cause of the following exception:

01:41:17  Traceback (most recent call last):
01:41:17    File "/usr/share/freecad-daily/Mod/Image/ImageTools/_CommandImageScaling.py", line 187, in getmousepoint
01:41:17      event = event_cb.getEvent()
01:41:17    File "/usr/lib/python3/dist-packages/pivy/coin.py", line 42443, in getEvent
01:41:17      return _coin.SoEventCallback_getEvent(self)
01:41:17  SystemError: <built-in function SoEventCallback_getEvent> returned a result with an exception set
01:41:17  <class 'SystemError'>
01:41:17  SystemError: PY_SSIZE_T_CLEAN macro must be defined for '#' formats
01:41:17  
The above exception was the direct cause of the following exception:

01:41:17  Traceback (most recent call last):
01:41:17    File "/usr/share/freecad-daily/Mod/Image/ImageTools/_CommandImageScaling.py", line 187, in getmousepoint
01:41:17      event = event_cb.getEvent()
01:41:17    File "/usr/lib/python3/dist-packages/pivy/coin.py", line 42443, in getEvent
01:41:17      return _coin.SoEventCallback_getEvent(self)
01:41:17  SystemError: <built-in function SoEventCallback_getEvent> returned a result with an exception set
01:41:17  <class 'SystemError'>
01:41:17  SystemError: PY_SSIZE_T_CLEAN macro must be defined for '#' formats
01:41:18  
The above exception was the direct cause of the following exception:

01:41:18  Traceback (most recent call last):
01:41:18    File "/usr/share/freecad-daily/Mod/Image/ImageTools/_CommandImageScaling.py", line 187, in getmousepoint
01:41:18      event = event_cb.getEvent()
01:41:18    File "/usr/lib/python3/dist-packages/pivy/coin.py", line 42443, in getEvent
01:41:18      return _coin.SoEventCallback_getEvent(self)
01:41:18  SystemError: <built-in function SoEventCallback_getEvent> returned a result with an exception set
01:41:18  <class 'SystemError'>
01:41:18  SystemError: PY_SSIZE_T_CLEAN macro must be defined for '#' formats
01:41:18  
The above exception was the direct cause of the following exception:

01:41:18  Traceback (most recent call last):
01:41:18    File "/usr/share/freecad-daily/Mod/Image/ImageTools/_CommandImageScaling.py", line 187, in getmousepoint
01:41:18      event = event_cb.getEvent()
01:41:18    File "/usr/lib/python3/dist-packages/pivy/coin.py", line 42443, in getEvent
01:41:18      return _coin.SoEventCallback_getEvent(self)
01:41:18  SystemError: <built-in function SoEventCallback_getEvent> returned a result with an exception set
01:41:18  <class 'SystemError'>
01:41:18  SystemError: PY_SSIZE_T_CLEAN macro must be defined for '#' formats
01:41:18  
The above exception was the direct cause of the following exception:

01:41:18  Traceback (most recent call last):
01:41:18    File "/usr/share/freecad-daily/Mod/Image/ImageTools/_CommandImageScaling.py", line 187, in getmousepoint
01:41:18      event = event_cb.getEvent()
01:41:18    File "/usr/lib/python3/dist-packages/pivy/coin.py", line 42443, in getEvent
01:41:18      return _coin.SoEventCallback_getEvent(self)
01:41:18  SystemError: <built-in function SoEventCallback_getEvent> returned a result with an exception set
01:41:18  <class 'SystemError'>
01:41:18  SystemError: PY_SSIZE_T_CLEAN macro must be defined for '#' formats
01:41:18  
The above exception was the direct cause of the following exception:

01:41:18  Traceback (most recent call last):
01:41:18    File "/usr/share/freecad-daily/Mod/Image/ImageTools/_CommandImageScaling.py", line 187, in getmousepoint
01:41:18      event = event_cb.getEvent()
01:41:18    File "/usr/lib/python3/dist-packages/pivy/coin.py", line 42443, in getEvent
01:41:18      return _coin.SoEventCallback_getEvent(self)
01:41:18  SystemError: <built-in function SoEventCallback_getEvent> returned a result with an exception set
01:41:18  <class 'SystemError'>
01:41:18  SystemError: PY_SSIZE_T_CLEAN macro must be defined for '#' formats
01:41:18  
The above exception was the direct cause of the following exception:

01:41:18  Traceback (most recent call last):
01:41:18    File "/usr/share/freecad-daily/Mod/Image/ImageTools/_CommandImageScaling.py", line 187, in getmousepoint
01:41:18      event = event_cb.getEvent()
01:41:18    File "/usr/lib/python3/dist-packages/pivy/coin.py", line 42443, in getEvent
01:41:18      return _coin.SoEventCallback_getEvent(self)
01:41:18  SystemError: <built-in function SoEventCallback_getEvent> returned a result with an exception set
01:41:18  <class 'SystemError'>
01:41:18  SystemError: PY_SSIZE_T_CLEAN macro must be defined for '#' formats
01:41:18  
The above exception was the direct cause of the following exception:

01:41:18  Traceback (most recent call last):
01:41:18    File "/usr/share/freecad-daily/Mod/Image/ImageTools/_CommandImageScaling.py", line 187, in getmousepoint
01:41:18      event = event_cb.getEvent()
01:41:18    File "/usr/lib/python3/dist-packages/pivy/coin.py", line 42443, in getEvent
01:41:18      return _coin.SoEventCallback_getEvent(self)
01:41:18  SystemError: <built-in function SoEventCallback_getEvent> returned a result with an exception set
01:41:18  <class 'SystemError'>
01:41:18  SystemError: PY_SSIZE_T_CLEAN macro must be defined for '#' formats
01:41:18  
The above exception was the direct cause of the following exception:

01:41:18  Traceback (most recent call last):
01:41:18    File "/usr/share/freecad-daily/Mod/Image/ImageTools/_CommandImageScaling.py", line 187, in getmousepoint
01:41:18      event = event_cb.getEvent()
01:41:18    File "/usr/lib/python3/dist-packages/pivy/coin.py", line 42443, in getEvent
01:41:18      return _coin.SoEventCallback_getEvent(self)
01:41:18  SystemError: <built-in function SoEventCallback_getEvent> returned a result with an exception set
01:41:18  <class 'SystemError'>
01:41:18  SystemError: PY_SSIZE_T_CLEAN macro must be defined for '#' formats
01:41:18  
The above exception was the direct cause of the following exception:

01:41:18  Traceback (most recent call last):
01:41:18    File "/usr/share/freecad-daily/Mod/Image/ImageTools/_CommandImageScaling.py", line 187, in getmousepoint
01:41:18      event = event_cb.getEvent()
01:41:18    File "/usr/lib/python3/dist-packages/pivy/coin.py", line 42443, in getEvent
01:41:18      return _coin.SoEventCallback_getEvent(self)
01:41:18  SystemError: <built-in function SoEventCallback_getEvent> returned a result with an exception set
01:41:18  <class 'SystemError'>
01:41:18  SystemError: PY_SSIZE_T_CLEAN macro must be defined for '#' formats
01:41:18  
The above exception was the direct cause of the following exception:

01:41:18  Traceback (most recent call last):
01:41:18    File "/usr/share/freecad-daily/Mod/Image/ImageTools/_CommandImageScaling.py", line 187, in getmousepoint
01:41:18      event = event_cb.getEvent()
01:41:18    File "/usr/lib/python3/dist-packages/pivy/coin.py", line 42443, in getEvent
01:41:18      return _coin.SoEventCallback_getEvent(self)
01:41:18  SystemError: <built-in function SoEventCallback_getEvent> returned a result with an exception set
01:41:18  <class 'SystemError'>
01:41:18  SystemError: PY_SSIZE_T_CLEAN macro must be defined for '#' formats
01:41:18  
The above exception was the direct cause of the following exception:

01:41:18  Traceback (most recent call last):
01:41:18    File "/usr/share/freecad-daily/Mod/Image/ImageTools/_CommandImageScaling.py", line 187, in getmousepoint
01:41:18      event = event_cb.getEvent()
01:41:18    File "/usr/lib/python3/dist-packages/pivy/coin.py", line 42443, in getEvent
01:41:18      return _coin.SoEventCallback_getEvent(self)
01:41:18  SystemError: <built-in function SoEventCallback_getEvent> returned a result with an exception set
01:41:18  <class 'SystemError'>
01:41:18  SystemError: PY_SSIZE_T_CLEAN macro must be defined for '#' formats
01:41:18  
The above exception was the direct cause of the following exception:

01:41:18  Traceback (most recent call last):
01:41:18    File "/usr/share/freecad-daily/Mod/Image/ImageTools/_CommandImageScaling.py", line 187, in getmousepoint
01:41:18      event = event_cb.getEvent()
01:41:18    File "/usr/lib/python3/dist-packages/pivy/coin.py", line 42443, in getEvent
01:41:18      return _coin.SoEventCallback_getEvent(self)
01:41:18  SystemError: <built-in function SoEventCallback_getEvent> returned a result with an exception set
01:41:18  <class 'SystemError'>
01:41:18  SystemError: PY_SSIZE_T_CLEAN macro must be defined for '#' formats
01:41:18  
The above exception was the direct cause of the following exception:

01:41:18  Traceback (most recent call last):
01:41:18    File "/usr/share/freecad-daily/Mod/Image/ImageTools/_CommandImageScaling.py", line 187, in getmousepoint
01:41:18      event = event_cb.getEvent()
01:41:18    File "/usr/lib/python3/dist-packages/pivy/coin.py", line 42443, in getEvent
01:41:18      return _coin.SoEventCallback_getEvent(self)
01:41:18  SystemError: <built-in function SoEventCallback_getEvent> returned a result with an exception set
01:41:18  <class 'SystemError'>
01:41:18  SystemError: PY_SSIZE_T_CLEAN macro must be defined for '#' formats
01:41:18  
The above exception was the direct cause of the following exception:

01:41:18  Traceback (most recent call last):
01:41:18    File "/usr/share/freecad-daily/Mod/Image/ImageTools/_CommandImageScaling.py", line 187, in getmousepoint
01:41:18      event = event_cb.getEvent()
01:41:18    File "/usr/lib/python3/dist-packages/pivy/coin.py", line 42443, in getEvent
01:41:18      return _coin.SoEventCallback_getEvent(self)
01:41:18  SystemError: <built-in function SoEventCallback_getEvent> returned a result with an exception set
01:41:21  <class 'SystemError'>
01:41:21  SystemError: PY_SSIZE_T_CLEAN macro must be defined for '#' formats
01:41:21  
The above exception was the direct cause of the following exception:

01:41:21  Traceback (most recent call last):
01:41:21    File "/usr/share/freecad-daily/Mod/Image/ImageTools/_CommandImageScaling.py", line 187, in getmousepoint
01:41:21      event = event_cb.getEvent()
01:41:21    File "/usr/lib/python3/dist-packages/pivy/coin.py", line 42443, in getEvent
01:41:21      return _coin.SoEventCallback_getEvent(self)
01:41:21  SystemError: <built-in function SoEventCallback_getEvent> returned a result with an exception set
01:41:21  <class 'SystemError'>
01:41:21  SystemError: PY_SSIZE_T_CLEAN macro must be defined for '#' formats
01:41:21  
The above exception was the direct cause of the following exception:

01:41:21  Traceback (most recent call last):
01:41:21    File "/usr/share/freecad-daily/Mod/Image/ImageTools/_CommandImageScaling.py", line 187, in getmousepoint
01:41:21      event = event_cb.getEvent()
01:41:21    File "/usr/lib/python3/dist-packages/pivy/coin.py", line 42443, in getEvent
01:41:21      return _coin.SoEventCallback_getEvent(self)
01:41:21  SystemError: <built-in function SoEventCallback_getEvent> returned a result with an exception set
01:41:21  <class 'SystemError'>
01:41:21  SystemError: PY_SSIZE_T_CLEAN macro must be defined for '#' formats
01:41:21  
The above exception was the direct cause of the following exception:

01:41:21  Traceback (most recent call last):
01:41:21    File "/usr/share/freecad-daily/Mod/Image/ImageTools/_CommandImageScaling.py", line 187, in getmousepoint
01:41:21      event = event_cb.getEvent()
01:41:21    File "/usr/lib/python3/dist-packages/pivy/coin.py", line 42443, in getEvent
01:41:21      return _coin.SoEventCallback_getEvent(self)
01:41:21  SystemError: <built-in function SoEventCallback_getEvent> returned a result with an exception set
01:41:21  <class 'SystemError'>
01:41:21  SystemError: PY_SSIZE_T_CLEAN macro must be defined for '#' formats
01:41:21  
The above exception was the direct cause of the following exception:

01:41:21  Traceback (most recent call last):
01:41:21    File "/usr/share/freecad-daily/Mod/Image/ImageTools/_CommandImageScaling.py", line 187, in getmousepoint
01:41:21      event = event_cb.getEvent()
01:41:21    File "/usr/lib/python3/dist-packages/pivy/coin.py", line 42443, in getEvent
01:41:21      return _coin.SoEventCallback_getEvent(self)
01:41:21  SystemError: <built-in function SoEventCallback_getEvent> returned a result with an exception set
01:41:50  <class 'SystemError'>
01:41:50  SystemError: PY_SSIZE_T_CLEAN macro must be defined for '#' formats
01:41:50  
The above exception was the direct cause of the following exception:

01:41:50  Traceback (most recent call last):
01:41:50    File "/usr/share/freecad-daily/Mod/Image/ImageTools/_CommandImageScaling.py", line 187, in getmousepoint
01:41:50      event = event_cb.getEvent()
01:41:50    File "/usr/lib/python3/dist-packages/pivy/coin.py", line 42443, in getEvent
01:41:50      return _coin.SoEventCallback_getEvent(self)
01:41:50  SystemError: <built-in function SoEventCallback_getEvent> returned a result with an exception set
01:41:50  <class 'SystemError'>
01:41:50  SystemError: PY_SSIZE_T_CLEAN macro must be defined for '#' formats
01:41:50  
The above exception was the direct cause of the following exception:

01:41:50  Traceback (most recent call last):
01:41:50    File "/usr/share/freecad-daily/Mod/Image/ImageTools/_CommandImageScaling.py", line 187, in getmousepoint
01:41:50      event = event_cb.getEvent()
01:41:50    File "/usr/lib/python3/dist-packages/pivy/coin.py", line 42443, in getEvent
01:41:50      return _coin.SoEventCallback_getEvent(self)
01:41:50  SystemError: <built-in function SoEventCallback_getEvent> returned a result with an exception set

User avatar
adrianinsaval
Veteran
Posts: 5541
Joined: Thu Apr 05, 2018 5:15 pm

Re: Issues scaling images

Post by adrianinsaval »

ubuntu and the ppa are broken, the version of pivy they ship is not compatible with python 3.10 which is their default python. Use some other packaging format (flatpak, snap, appimage)
leoheck
Veteran
Posts: 1222
Joined: Tue Mar 13, 2018 5:56 pm
Location: Coffee shop

Re: Issues scaling images

Post by leoheck »

Cool, thanks for this info.

The current version of it on Ubuntu 22.04 is python3-pivy_0.6.5-1build6. Since you said this version has issues, I've looked for a newer version.. and then I found this site:
https://repos.uclv.edu.cu/ubuntu/pool/universe/p/pivy/

It has this version in it, python3-pivy_0.6.7-0.1_amd64.deb
https://repos.uclv.edu.cu/ubuntu/pool/u ... _amd64.deb

After installing this new version, I did not have any other issues to scale images.

Thanks, adrianinsaval.
Syres
Veteran
Posts: 2893
Joined: Thu Aug 09, 2018 11:14 am

Re: Issues scaling images

Post by Syres »

leoheck wrote: Wed Jun 01, 2022 1:12 am After installing this new version, I did not have any other issues to scale images.
Would it not be a good idea to document this in at least one of the following two places:

https://wiki.freecadweb.org/Pivy

https://wiki.freecadweb.org/Compile_on_Linux#Pivy

in order to assist others who might not find this topic in the search??
User avatar
dpward
Posts: 27
Joined: Sun Jan 01, 2023 6:06 pm
Contact:

Re: [Solved] Issues scaling images on Ubuntu 22.04

Post by dpward »

Fix released for pivy package in Ubuntu 22.04 LTS (and Ubuntu 22.10).
https://bugs.launchpad.net/ubuntu/+sour ... ug/2000840
Post Reply