FreeCAD 18.1/Ubuntu 18.04.2. LTS: no workbenches after install

Having trouble installing or compiling FreeCAD? Get help here.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
m.cavallerin
Posts: 115
Joined: Wed May 30, 2018 6:59 pm

Re: FreeCAD 18.1/Ubuntu 18.04.2. LTS: no workbenches after install

Post by m.cavallerin »

Hi,

i'm facing similar issue and I have this error:

Code: Select all

During initialization the error type object 'type' has no attribute '__signature__' occurred in /usr/share/freecad/Mod/Plot/InitGui.py
Please look into the log file for further information
During initialization the error type object 'type' has no attribute '__signature__' occurred in /usr/share/freecad/Mod/Ship/InitGui.py
Please look into the log file for further information
During initialization the error type object 'type' has no attribute '__signature__' occurred in /usr/share/freecad/Mod/Draft/InitGui.py
Please look into the log file for further information
During initialization the error type object 'type' has no attribute '__signature__' occurred in /usr/share/freecad/Mod/Arch/InitGui.py
Please look into the log file for further information
During initialization the error type object 'type' has no attribute '__signature__' occurred in /usr/share/freecad/Mod/Tux/InitGui.py
Please look into the log file for further information
type object 'type' has no attribute '__signature__'
I clean almost everything and still it doesn't start; freecad doesn't load its gui interface, even if

Code: Select all

freecad -c
it runs properly.

If I run the freeCAD_assy3 fork (python2) it works

Should my issue related to python2 and python 3?

If inside a terminal I type:

Code: Select all

python --version
I get Python 2.7.15rc1

thx

Using linux Mint

thx
User avatar
kkremitzki
Veteran
Posts: 2515
Joined: Thu Mar 03, 2016 9:52 pm
Location: Illinois

Re: FreeCAD 18.1/Ubuntu 18.04.2. LTS: no workbenches after install

Post by kkremitzki »

m.cavallerin wrote: Wed May 22, 2019 1:04 am
I clean almost everything and still it doesn't start
Can you be more explicit on what you've tried or what commands you've run?
Like my FreeCAD work? I'd appreciate any level of support via Patreon, Liberapay, or PayPal! Read more about what I do at my blog.
User avatar
Joel_graff
Veteran
Posts: 1949
Joined: Fri Apr 28, 2017 4:23 pm
Contact:

Re: FreeCAD 18.1/Ubuntu 18.04.2. LTS: no workbenches after install

Post by Joel_graff »

Very interested to see if this issue can be resolved - I have the same error running the AppImage or building from source.
FreeCAD Trails workbench for transportation engineering: https://www.github.com/joelgraff/freecad.trails

pivy_trackers 2D coin3D library: https://www.github.com/joelgraff/pivy_trackers
m.cavallerin
Posts: 115
Joined: Wed May 30, 2018 6:59 pm

Re: FreeCAD 18.1/Ubuntu 18.04.2. LTS: no workbenches after install

Post by m.cavallerin »

Hannu wrote: Wed Apr 17, 2019 6:05 pm
kkremitzki wrote: Wed May 22, 2019 2:34 am
m.cavallerin wrote: Wed May 22, 2019 1:04 am
I clean almost everything and still it doesn't start
Can you be more explicit on what you've tried or what commands you've run?

Code: Select all

sudo apt-get purge freecad freecad-common # TWO packages, I THINK the second package was freecad-common
sudo apt-get autoremove
sudo apt-get autoclean
sudo apt-get install freecad 

"upd" is a script that does ...
sudo apt-get autoremove
sudo apt-get autoclean
... after having done "$ARGUMENTS"
These are the steps I followed
User avatar
kkremitzki
Veteran
Posts: 2515
Joined: Thu Mar 03, 2016 9:52 pm
Location: Illinois

Re: FreeCAD 18.1/Ubuntu 18.04.2. LTS: no workbenches after install

Post by kkremitzki »

Can you try these? Those commands are not sufficient.
kkremitzki wrote: Mon May 20, 2019 1:45 pm

Code: Select all

sudo apt purge -y \*freecad\*
sudo rm -rf /usr/share/freecad && sudo rm -rf /usr/lib/freecad
Then install freecad again.
Like my FreeCAD work? I'd appreciate any level of support via Patreon, Liberapay, or PayPal! Read more about what I do at my blog.
m.cavallerin
Posts: 115
Joined: Wed May 30, 2018 6:59 pm

Re: FreeCAD 18.1/Ubuntu 18.04.2. LTS: no workbenches after install

Post by m.cavallerin »

Ok, I did as your suggestion

Code: Select all

During initialization the error type object 'type' has no attribute '__signature__' occurred in /usr/share/freecad/Mod/Plot/InitGui.py
Please look into the log file for further information
During initialization the error type object 'type' has no attribute '__signature__' occurred in /usr/share/freecad/Mod/Ship/InitGui.py
Please look into the log file for further information
During initialization the error type object 'type' has no attribute '__signature__' occurred in /usr/share/freecad/Mod/Draft/InitGui.py
Please look into the log file for further information
During initialization the error type object 'type' has no attribute '__signature__' occurred in /usr/share/freecad/Mod/Arch/InitGui.py
Please look into the log file for further information
During initialization the error type object 'type' has no attribute '__signature__' occurred in /usr/share/freecad/Mod/Tux/InitGui.py
Please look into the log file for further information
type object 'type' has no attribute '__signature__'
Still gettin' same errors but at least freecad gui starts,,,but if I try to switch to Part design error message (enclosed)

OS: Linux Mint 19
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.1.
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/UnitedStates (en_US)
Attachments
error.png
error.png (10.65 KiB) Viewed 2401 times
User avatar
kkremitzki
Veteran
Posts: 2515
Joined: Thu Mar 03, 2016 9:52 pm
Location: Illinois

Re: FreeCAD 18.1/Ubuntu 18.04.2. LTS: no workbenches after install

Post by kkremitzki »

Can you paste the output of dpkg -l | grep freecad and ls -l /usr/lib/freecad?
Like my FreeCAD work? I'd appreciate any level of support via Patreon, Liberapay, or PayPal! Read more about what I do at my blog.
m.cavallerin
Posts: 115
Joined: Wed May 30, 2018 6:59 pm

Re: FreeCAD 18.1/Ubuntu 18.04.2. LTS: no workbenches after install

Post by m.cavallerin »

Code: Select all

dpkg -l | grep freecad

ii  freecad                                                     2:0.18.1+dfsg1~201904300243~ubuntu18.04.1                   all          Extensible Open Source CAx program
ii  freecad-common                                              2:0.18.1+dfsg1~201904300243~ubuntu18.04.1                   all          Extensible Open Source CAx program - common files
ii  freecad-python3                                             2:0.18.1+dfsg1~201904300243~ubuntu18.04.1                   amd64        Extensible Open Source CAx program - Python 3 binaries
ii  freecad-runtime                                             2:0.18.1+dfsg1~201904300243~ubuntu18.04.1                   all          Extensible Open Source CAx program - runtime files
ii  libfreecad-python3-0.18                                     2:0.18.1+dfsg1~201904300243~ubuntu18.04.1                   amd64        Extensible Open Source CAx program - Python 3 library files
and

Code: Select all

ls -l /usr/lib/freecad

total 4
drwxr-xr-x 2 root root 4096 May 22 22:36 bin
lrwxrwxrwx 1 root root   23 Apr 30 04:43 Ext -> ../../share/freecad/Ext
lrwxrwxrwx 1 root root   23 Apr 30 04:43 Gui -> ../../share/freecad/Gui
lrwxrwxrwx 1 root root   28 May 22 22:37 lib -> /etc/alternatives/freecadlib
lrwxrwxrwx 1 root root   23 Apr 30 04:43 Mod -> ../../share/freecad/Mod
User avatar
kkremitzki
Veteran
Posts: 2515
Joined: Thu Mar 03, 2016 9:52 pm
Location: Illinois

Re: FreeCAD 18.1/Ubuntu 18.04.2. LTS: no workbenches after install

Post by kkremitzki »

Hmm, that all looks normal. I guess the next thing to try then would be to temporarily move ~/.FreeCAD to a new location so your user-level configuration files will be regenerated. Try running mv ~/.FreeCAD ~/.FreeCAD.bkp and then re-run FreeCAD and see what happens.
Like my FreeCAD work? I'd appreciate any level of support via Patreon, Liberapay, or PayPal! Read more about what I do at my blog.
m.cavallerin
Posts: 115
Joined: Wed May 30, 2018 6:59 pm

Re: FreeCAD 18.1/Ubuntu 18.04.2. LTS: no workbenches after install

Post by m.cavallerin »

No nothimg, I think that something has been disrupted by some installaton I performed some weeks ago....

I think I'm going to reinstall everything...Linux too..

Thx in any case....

Regards
Post Reply