furti / FreeCAD-Lithophane

FreeCAD Workbench to convert an image to a Lithophane for 3D Printing
MIT License
32 stars 7 forks source link

Test with PY3 and QT5 #11

Closed furti closed 6 years ago

furti commented 6 years ago

Should be tested with a 0.18 Build with Python 3 and QT5.

furti commented 6 years ago

First known Problem with QT5 (https://forum.freecadweb.org/viewtopic.php?p=252448#p252451)

Running the Python command 'Import_Image' failed:
Traceback (most recent call last):
  File "C:\Users\Chris\AppData\Roaming\FreeCAD\Mod\FreeCAD-Lithophane\import_image.py", line 17, in Activated
    fileName = QtGui.QFileDialog.getOpenFileName(QtGui.qApp.activeWindow(), "Open Image", '', "Image Files (*.png *.jpg *.bmp)")[0]

'NoneType' object has no attribute 'activeWindow'

FreeCAD Info:


OS: Windows 7
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.14442 (Git)
Build type: Release
Branch: master
Hash: bb9d737ba1158fdba5d06df45ab3e213065139cd
Python version: 3.6.6
Qt version: 5.6.2
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/UnitedStates (en_US)