[solved] No module named 'PathScripts.PathToolControllerGui'

Having trouble installing or compiling FreeCAD? Get help here.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Erich Schulz
Posts: 141
Joined: Tue May 07, 2019 10:50 pm
Location: Brisbane, Australia

[solved] No module named 'PathScripts.PathToolControllerGui'

Post by Erich Schulz »

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



:-/
Last edited by Erich Schulz on Tue Jun 25, 2019 4:47 pm, edited 1 time in total.
User avatar
Chris_G
Veteran
Posts: 2602
Joined: Tue Dec 31, 2013 4:10 pm
Location: France
Contact:

Re: No module named 'PathScripts.PathToolControllerGui'

Post by Chris_G »

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.
Erich Schulz
Posts: 141
Joined: Tue May 07, 2019 10:50 pm
Location: Brisbane, Australia

Re: No module named 'PathScripts.PathToolControllerGui'

Post by Erich Schulz »

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?
victordamasceno
Posts: 12
Joined: Sat Mar 30, 2019 2:14 am

Re: No module named 'PathScripts.PathToolControllerGui'

Post by victordamasceno »

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...
User avatar
sliptonic
Veteran
Posts: 3460
Joined: Tue Oct 25, 2011 10:46 pm
Location: Columbia, Missouri
Contact:

Re: No module named 'PathScripts.PathToolControllerGui'

Post by sliptonic »

https://github.com/FreeCAD/FreeCAD/pull/2250

I think that's the fix. Rebuild from source or wait for the next daily build.
Erich Schulz
Posts: 141
Joined: Tue May 07, 2019 10:50 pm
Location: Brisbane, Australia

Re: No module named 'PathScripts.PathToolControllerGui'

Post by Erich Schulz »

:-(

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...
Erich Schulz
Posts: 141
Joined: Tue May 07, 2019 10:50 pm
Location: Brisbane, Australia

Re: No module named 'PathScripts.PathToolControllerGui'

Post by Erich Schulz »

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.
oops cross-posted - that's great thanks Sliptonic - I'll wait til tomorrow and try again.
User avatar
easyw-fc
Veteran
Posts: 3633
Joined: Thu Jul 09, 2015 9:34 am

Re: No module named 'PathScripts.PathToolControllerGui'

Post by easyw-fc »

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.
I think there is still an error here:
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
wmayer
Founder
Posts: 20324
Joined: Thu Feb 19, 2009 10:32 am
Contact:

Re: No module named 'PathScripts.PathToolControllerGui'

Post by wmayer »

easyw-fc wrote: Tue Jun 11, 2019 8:27 am
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.
I think there is still an error here:
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
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.
User avatar
easyw-fc
Veteran
Posts: 3633
Joined: Thu Jul 09, 2015 9:34 am

Re: No module named 'PathScripts.PathToolControllerGui'

Post by easyw-fc »

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.
Then there should be something more to be fixed...

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
OS: Windows 10 (10.0)
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)
Post Reply