FreeCAD / FreeCAD-snap

The official Snap package of the FreeCAD project
https://snapcraft.io/freecad
8 stars 9 forks source link

Image open and import fails #63

Closed gicking closed 1 year ago

gicking commented 2 years ago

Is there an existing issue for this?

Forums discussion

Cannot import pictures

Version

0.20 (Release)

Full version info

[code]
OS: Ubuntu Core 20 (XFCE/xubuntu)
Word size of FreeCAD: 64-bit
Version: 0.20.1.29177 +233 (Git) Snap 245
Build type: Release
Branch: tag: 0.20.1
Hash: f5d13554ecc7a456fb6e970568ae5c74ba727563
Python 3.8.10, Qt 5.15.3, Coin 4.0.0, Vtk 7.1.1, OCC 7.6.3
Locale: German/Germany (de_DE)
[/code]

Subproject(s) affected?

No response

Issue description

Hello,

first of all thanks a lot for developing and maintaining FreeCAD! Great job :-)

Unfortunately I have a problem importing images in the Image workbench. According to this or this tutorial video, I should be able to view or import pictures from the Image workbench without further preparation. But when I press the respective buttons, it has no effect. Namely, the commands show up in the Python console (see screenshot 1), but no file selection box opens. What am I missing?

I am using Xubuntu 20.04.5 (amd64) and FreeCAD 0.20.1 installed via system Snap-Store. So nothing funny there. If you need more information, just let me know.

Some more observations:

Thanks again for your support and have a great day!

Georg

Anything else?

Bug_import Bug_self-test test_output.txt

Code of Conduct

gicking commented 2 years ago

Update:

I deinstalled the snap and

So either there were many bugfixes (including image import) between 0.20.1.29177 (Snap) and 0.20.1.29410 (AppImage), or there is an issue with the Snap package. I suspect the latter.

For now I will stick to the AppImage as it solves the initial problem.

luzpaz commented 1 year ago

In the future, you need to sign-up to the forum and create an issue. It saves you and everyone work primarily because development versions are way ahead of minor versions. Can you confirm with Snap 'edge' ?

snap refresh freecad --channel=latest/edge # switch to edge/nightly version
snap refresh freecad --channel=latest/stable # switch back to stable version

Edit: moving to FreeCAD-snap repo temporarily to declutter FreeCAD/FreeCAD issue queue

luzpaz commented 1 year ago

FYI, I see no test errors triggered in Test WB on

OS: Ubuntu Core 20 (KDE/plasma)
Word size of FreeCAD: 64-bit
Version: 0.21.30500 (Git) Snap 329
Build type: Release
Branch: master
Hash: 3b4cbbb9430368205ccd5b11cd29b44e2c7925f4
Python 3.8.10, Qt 5.15.5, Coin 4.0.0, Vtk 7.1.1, OCC 7.6.3
Locale: English/United States (en_US)
Installed mods: 
  * TabBar
  * ExtremeProDark 1.0.4
gicking commented 1 year ago

Hi luzpaz,

sorry for the late response! But I first wanted to finish my project before messing with the working AppImage installation.

Can you please explain what you mean by "sign up to the forum and create an issue"? Which forum, and why not this issue tracker? Thanks in advance!

Ok, I followed your instructions for the newest snap version: Here's what I did:

  1. re-installed FreeCAD from snapstore
  2. launched FreeCAD, created new document and confirmed that image view and import still have no effect --> don't work
  3. updated to edge/nightly build via sudo snap refresh freecad --channel=latest/edge --> freecad (edge) 0.21-g4904ab50
  4. launched (edge) FreeCAD, created new document and checked if image view and import work --> work as expected :-)
  5. ran self-test via freecad --run-test 0 &> test_output.txt. Result see test_output.txt

Here's the full version info:

[code]
OS: Ubuntu Core 20 (XFCE/xubuntu)
[test_output.txt](https://github.com/FreeCAD/FreeCAD-snap/files/9741049/test_output.txt)

Word size of FreeCAD: 64-bit
Version: 0.21.30599 (Git) Snap 344
Build type: Release
Branch: master
Hash: 4904ab503fc29e8636f50c91c71d5b3499a61c9e
Python 3.8.10, Qt 5.15.5, Coin 4.0.0, Vtk 7.1.1, OCC 7.6.3
Locale: German/Germany (de_DE)
[/code]
luzpaz commented 1 year ago

Saw this in the log file:

Traceback (most recent call last):
  File "/snap/freecad/344/usr/Mod/PartDesign/TestPartDesignGui.py", line 55, in __call__
    self.test.assertIsNone(diag, "Dialog box could not be found")
  File "/snap/freecad/344/usr/lib/python3.8/unittest/case.py", line 1322, in assertIsNone
    self.fail(self._formatMessage(msg, standardMsg))
  File "/snap/freecad/344/usr/lib/python3.8/unittest/case.py", line 753, in fail
    raise self.failureException(msg)
AssertionError: <PySide2.QtWidgets.QMessageBox(0x556166856440) at 0x7f12f2adc400> is not None : Dialog box could not be found

I'll test my local version and confirm

luzpaz commented 1 year ago

Can't confirm test error on

OS: Ubuntu Core 20 (KDE/plasma)
Word size of FreeCAD: 64-bit
Version: 0.21.30623 (Git) Snap 350
Build type: Release
Branch: master
Hash: 27f08f38b1658e419e20a153e13236eff1293b77
Python 3.8.10, Qt 5.15.5, Coin 4.0.0, Vtk 7.1.1, OCC 7.6.3
Locale: English/United States (en_US)
Installed mods: 
  * TabBar
  * ExtremeProDark 2.2.0
luzpaz commented 1 year ago

So issue is fixed in development version. Thanks for testing and reporting. Closing ticket.