[solved] No module named 'PathScripts.PathToolControllerGui'
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
-
- Posts: 141
- Joined: Tue May 07, 2019 10:50 pm
- Location: Brisbane, Australia
[solved] No module named 'PathScripts.PathToolControllerGui'
Hi
so I just upgraded to ubuntu 18 thought I would play with freecad-daily so I could tinker with 4th axis stuff...
OS: Ubuntu 18.04.2 LTS (ubuntu:GNOME/ubuntu)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.
Build type: Release
Python version: 3.6.7
Qt version: 5.9.5
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/Australia (en_AU)
it starts well then when I go to access the path workbench i get No module named 'PathScripts.PathToolControllerGui'
reeCAD 0.19, Libs: 0.19R
© Juergen Riegel, Werner Mayer, Yorik van Havre 2001-2019
##### #### ### ####
# # # # # #
# ## #### #### # # # # #
#### # # # # # # # ##### # #
# # #### #### # # # # #
# # # # # # # # # ## ## ##
# # #### #### ### # # #### ## ## ##
connect failed: No such file or directory
Coin info in MeshRenderer(): GL_ARB_vertex_buffer_object extension not supported
No module named 'PathScripts.PathToolControllerGui'
Traceback (most recent call last):
File "<string>", line 73, in Initialize
File "/usr/share/freecad-daily/Mod/Path/PathScripts/PathJobCmd.py", line 27, in <module>
import PathScripts.PathJob as PathJob
File "/usr/share/freecad-daily/Mod/Path/PathScripts/PathJob.py", line 33, in <module>
import PathScripts.PathToolController as PathToolController
File "/usr/share/freecad-daily/Mod/Path/PathScripts/PathToolController.py", line 197, in <module>
from PathScripts.PathToolControllerGui import ViewProvider
:-/
so I just upgraded to ubuntu 18 thought I would play with freecad-daily so I could tinker with 4th axis stuff...
OS: Ubuntu 18.04.2 LTS (ubuntu:GNOME/ubuntu)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.
Build type: Release
Python version: 3.6.7
Qt version: 5.9.5
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/Australia (en_AU)
it starts well then when I go to access the path workbench i get No module named 'PathScripts.PathToolControllerGui'
reeCAD 0.19, Libs: 0.19R
© Juergen Riegel, Werner Mayer, Yorik van Havre 2001-2019
##### #### ### ####
# # # # # #
# ## #### #### # # # # #
#### # # # # # # # ##### # #
# # #### #### # # # # #
# # # # # # # # # ## ## ##
# # #### #### ### # # #### ## ## ##
connect failed: No such file or directory
Coin info in MeshRenderer(): GL_ARB_vertex_buffer_object extension not supported
No module named 'PathScripts.PathToolControllerGui'
Traceback (most recent call last):
File "<string>", line 73, in Initialize
File "/usr/share/freecad-daily/Mod/Path/PathScripts/PathJobCmd.py", line 27, in <module>
import PathScripts.PathJob as PathJob
File "/usr/share/freecad-daily/Mod/Path/PathScripts/PathJob.py", line 33, in <module>
import PathScripts.PathToolController as PathToolController
File "/usr/share/freecad-daily/Mod/Path/PathScripts/PathToolController.py", line 197, in <module>
from PathScripts.PathToolControllerGui import ViewProvider
:-/
Last edited by Erich Schulz on Tue Jun 25, 2019 4:47 pm, edited 1 time in total.
Re: No module named 'PathScripts.PathToolControllerGui'
Hi,
There is some work on the path WB related to this issue : https://forum.freecadweb.org/viewtopic. ... &start=210
I suppose it will be fixed soon.
There is some work on the path WB related to this issue : https://forum.freecadweb.org/viewtopic. ... &start=210
I suppose it will be fixed soon.
-
- Posts: 141
- Joined: Tue May 07, 2019 10:50 pm
- Location: Brisbane, Australia
Re: No module named 'PathScripts.PathToolControllerGui'
oh dear
is there a way I can access a version 0.19 that isn't broken so I can experiment with Russ's 4th axis code?
is there a way I can access a version 0.19 that isn't broken so I can experiment with Russ's 4th axis code?
-
- Posts: 12
- Joined: Sat Mar 30, 2019 2:14 am
Re: No module named 'PathScripts.PathToolControllerGui'
I have the same issue on Freecad-daily V0.19 2019/06/10 on Ubuntu 18.04. Freecad 0.18.1 works no problem though...
- sliptonic
- Veteran
- Posts: 3460
- Joined: Tue Oct 25, 2011 10:46 pm
- Location: Columbia, Missouri
- Contact:
Re: No module named 'PathScripts.PathToolControllerGui'
https://github.com/FreeCAD/FreeCAD/pull/2250
I think that's the fix. Rebuild from source or wait for the next daily build.
I think that's the fix. Rebuild from source or wait for the next daily build.
-
- Posts: 141
- Joined: Tue May 07, 2019 10:50 pm
- Location: Brisbane, Australia
Re: No module named 'PathScripts.PathToolControllerGui'
I'm wondering if I need to compile my own version to get ahold of a working path in v0.19???
I'd rather avoid this at this delicate noob stage of my freecadding...
-
- Posts: 141
- Joined: Tue May 07, 2019 10:50 pm
- Location: Brisbane, Australia
Re: No module named 'PathScripts.PathToolControllerGui'
oops cross-posted - that's great thanks Sliptonic - I'll wait til tomorrow and try again.sliptonic wrote: ↑Tue Jun 11, 2019 2:35 am https://github.com/FreeCAD/FreeCAD/pull/2250
I think that's the fix. Rebuild from source or wait for the next daily build.
Re: No module named 'PathScripts.PathToolControllerGui'
I think there is still an error here:sliptonic wrote: ↑Tue Jun 11, 2019 2:35 am https://github.com/FreeCAD/FreeCAD/pull/2250
I think that's the fix. Rebuild from source or wait for the next daily build.
PathScripts/PathToolController.py#L197
it should be commented/removed:
Code: Select all
# if FreeCAD.GuiUp:
# # need ViewProvider class in this file to support loading of old files
# from PathScripts.PathToolControllerGui import ViewProvider
Re: No module named 'PathScripts.PathToolControllerGui'
No, this block is essential to keep existing project files loading properly. In existing project files the Python proxy of the view provider saves module name and class name which will be PathToolController instead of PathToolControllerGui.easyw-fc wrote: ↑Tue Jun 11, 2019 8:27 amI think there is still an error here:sliptonic wrote: ↑Tue Jun 11, 2019 2:35 am https://github.com/FreeCAD/FreeCAD/pull/2250
I think that's the fix. Rebuild from source or wait for the next daily build.
PathScripts/PathToolController.py#L197
it should be commented/removed:Code: Select all
# if FreeCAD.GuiUp: # # need ViewProvider class in this file to support loading of old files # from PathScripts.PathToolControllerGui import ViewProvider
The line from PathScripts.PathToolControllerGui import ViewProvider makes sure that PathToolController provides the class ViewProvider.
Re: No module named 'PathScripts.PathToolControllerGui'
Then there should be something more to be fixed...wmayer wrote: ↑Tue Jun 11, 2019 10:18 am No, this block is essential to keep existing project files loading properly. In existing project files the Python proxy of the view provider saves module name and class name which will be PathToolController instead of PathToolControllerGui.
The line from PathScripts.PathToolControllerGui import ViewProvider makes sure that PathToolController provides the class ViewProvider.
I get the following errors after having applied the PR 2250:
Code: Select all
module 'PathScripts' has no attribute 'PathToolController'
Traceback (most recent call last):
File "<string>", line 73, in Initialize
File "C:\FreeCAD-daily\Mod\Path\PathScripts\PathJobCmd.py", line 27, in <module>
import PathScripts.PathJob as PathJob
File "C:\FreeCAD-daily\Mod\Path\PathScripts\PathJob.py", line 33, in <module>
import PathScripts.PathToolController as PathToolController
File "C:\FreeCAD-daily\Mod\Path\PathScripts\PathToolController.py", line 197, in <module>
from PathScripts.PathToolControllerGui import ViewProvider
File "C:\FreeCAD-daily\Mod\Path\PathScripts\PathToolControllerGui.py", line 32, in <module>
import PathScripts.PathToolController as PathToolController
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.16945 (Git)
Build type: Release
Branch: master
Hash: d818a9638424a934bd9da74d187a1af4cb773f05
Python version: 3.6.8
Qt version: 5.12.1
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/United States (en_US)