booya-at / OpenGlider

python library to build paragliders
GNU General Public License v3.0
64 stars 25 forks source link

Export Fail #73

Closed jbrewer1 closed 1 year ago

jbrewer1 commented 1 year ago

Having an issue on my Ubuntu and OSX installation of openglider when trying to import or export via Freecad Gui.

I get the following error... " 23:30:28 Running the Python command G12dExport' failed: Traceback (most recent call last): I

File "/home/james/miniconda3/envs/openglider/lib/python3.10/site-packages/

freecad/freecad glider/tools/ init py", line 118, in Activated tools.export glider (glider 2d, glider_3d) File "/home/james/miniconda3/envs/openglider/lib/python3.10/site-packages/ freecad/freecad glider/tools/tools.py", line 123, in export glider filename = QtGui.QFileDialog.getSaveFileName(

PySide2 Qtwidgets.QFileDialog.getSaveFileName(): unsupported keyword 'directory App::FeaturePython object> " Suspect it is probably an issue with my installation and dependencies?

Any help appreciated

jbrewer1 commented 1 year ago

Fixed this by editing the Freecad/freecad_glider/tools/init.py and tools.py to use 'dir' keyword instead of 'directory'.

Seems to be related to the use of pyside Vs pyside2