Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

python 3 support #12

Open
easyw opened this issue Oct 22, 2018 · 5 comments
Open

python 3 support #12

easyw opened this issue Oct 22, 2018 · 5 comments

Comments

@easyw
Copy link

easyw commented Oct 22, 2018

Unfortunately GeoData is not py3 complaint ATM.
Would you please have a look at it?
FC is going toward py3 and I would like to have this WB py3 ready too 馃槃

@luzpaz
Copy link

luzpaz commented Nov 7, 2018

Tracking via FreeCAD/FreeCAD-addons#93

@luzpaz
Copy link

luzpaz commented Jan 11, 2019

@microelly2 When invoking from CLI I see:

During initialization the error Missing parentheses in call to 'print'. Did you mean print("run import ...")? (<string>, line 108) occurred in /home/beast/.FreeCAD/Mod/geodata/InitGui.py
Please look into the log file for further information

Running:

OS: Manjaro Linux
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.15609 (Git) AppImage
Build type: Release
Branch: master
Hash: a14af0f2bd26f980d71be80a799ee48127bc7619
Python version: 3.6.7
Qt version: 5.6.2
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/UnitedStates (en_US)

@luzpaz
Copy link

luzpaz commented Jan 16, 2019

Traceback (most recent call last):
  File "<string>", line 120, in InitApplications
  File "<string>", line 108
    print "run import ..."
                         ^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print("run import ...")?
----------------------------------------------------------------------------------------------------
During initialization the error Missing parentheses in call to 'print'. Did you mean print("run import ...")? (<string>, line 108) occurred in /home/foo/.FreeCAD/Mod/geodata/InitGui.py
Please look into the log file for further information

@elliotclee
Copy link

bump... Main changes that need to be made are using print as a function, doing 'from importlib import reload' anywhere that reload() is used, and using != operator instead of <>.

@elliotclee
Copy link

geodata-python3.zip

Did the grunt work in the attached patch. I think there are still some issues that come from Qt5, since when I tried to import OSM or Lidar data, it popped up empty dialog boxes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants