Porting to python3
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
Re: Porting to python3
Hello, I am using ubuntu 18.04, 64 bit and downloaded freecad conda to test it and I came across these issues
Menus are missing
Menus are missing
- Attachments
-
- vlcsnap-2018-09-19-05h02m06s803.png (98.84 KiB) Viewed 2024 times
-
- vlcsnap-2018-09-19-05h01m52s532.png (91.93 KiB) Viewed 2024 times
Re: Porting to python3
Thanks for testing. Please have a look here for a workaround: https://github.com/FreeCAD/FreeCAD_Conda/issues/17
Should be fixed with the next qt update (qt5.12) which hopefully comes at the end of 2018.
Re: Porting to python3
A Draft.makeText issue for py3 migration:
Error code:
tested with:
Code: Select all
App.newDocument("Unnamed")
App.setActiveDocument("Unnamed")
App.ActiveDocument=App.getDocument("Unnamed")
Gui.ActiveDocument=Gui.getDocument("Unnamed")
import Draft
text = (["b'Test'"],point=FreeCAD.Vector(0.0,0.0,0.0))
Draft.autogroup(text)
Code: Select all
Traceback (most recent call last):
File "C:\FreeCAD-0.18-dev_PY3_QT5-x64\Mod\Draft\Draft.py", line 7297, in attach
self.onChanged(vobj,"Justification")
File "C:\FreeCAD-0.18-dev_PY3_QT5-x64\Mod\Draft\Draft.py", line 7330, in onChanged
if hasattr(vobj,"Justification"):
<class 'AssertionError'>: The enum is empty
Code: Select all
OS: Windows 10
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.14825 (Git)
Build type: Release
Branch: master
Hash: a0ff629747d5d73567075821852a8cdaadcf51c5
Python version: 3.6.6
Qt version: 5.6.2
Coin version: 4.0.0a
OCC version: 7.3.0
Re: Porting to python3
Hi,
I'm using Win10 Pro 64Bit version 1803 build 17134.285
On startpage/documents/Recent Files previews are not shown.
Same behaviour on computer at work as well as on computer at home (same OS builds)
I'm using Win10 Pro 64Bit version 1803 build 17134.285
On startpage/documents/Recent Files previews are not shown.
Same behaviour on computer at work as well as on computer at home (same OS builds)
Re: Porting to python3
This is a known issue. I think it's a problem of the qtwebkit of conda-forge. There is not much we can do about it right now. Maybe if someone has the time, create an issue for conda-forge qt-feedstock [1], but I think this feedstock needs to be reworked for qt5.12 anyway.
[1] https://github.com/conda-forge/qt-feedstock/issues
Re: Porting to python3
Well, I'm German ...
I installed and use 0.18 non-Conda and Conda parallel. So I just crosschecked: In non-Conda the dialog displays correct - completely translated in german ...
Sorry, I simply found a different behavior between the non-Conda and the Conda flavor ...
And I followed this advice:
I apologize if it still isn't the right place - - - and please feel free to direct it to the right place.Note on Python 3
Please test Python 3 (Conda) builds in your FreeCAD daily routine and report issues.
Re: Porting to python3
Out of curiosity, do other images and icons (in the "Help" tab) appear correctly?
Re: Porting to python3
With the AppImage the "Help" tab from Start WB works OS: Ubuntu 14.04.5 LTS
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.14859 (Git) AppImage
Build type: Release
Branch: master
Hash: c3a8348861372b055c2446a09f0fc49a6cd7a2ef
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)
Will Test on Win
EDIT: Doesn't work on win OS: Windows 7
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.14859 (Git)
Build type: Release
Branch: master
Hash: c3a8348861372b055c2446a09f0fc49a6cd7a2ef
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)
"fight the good fight"
Re: Porting to python3
Hm indeed this is most likely a qt problem, but just in case there is a problem with icon paths, here is another thing to test: In the python console, type this:
In your user's home directory, you should find a "startpage.html" file, that you can open in your web browser. Can someone check on windows if the icons appear?
Code: Select all
from StartPage import StartPage
StartPage.exportTestFile()