Please note that just a few lines BELOW these there WERE the ACTUAL commands I used.... I'll go back an remove/DEL this fake-info... (DONE!)m.cavallerin wrote: ↑Wed May 22, 2019 5:16 pmThese are the steps I followedHannu wrote: ↑Wed Apr 17, 2019 6:05 pmkkremitzki wrote: ↑Wed May 22, 2019 2:34 amCan you be more explicit on what you've tried or what commands you've run?"upd" is a script that does ...Code: Select all
!!! DELETED !!!!
sudo apt-get autoremove
sudo apt-get autoclean
... after having done "$ARGUMENTS"
FreeCAD 18.1/Ubuntu 18.04.2. LTS: no workbenches after install
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
- Hannu
- Posts: 130
- Joined: Fri Sep 11, 2015 4:12 pm
- Location: Strängnäs, Sweden - 1hr drive west from Stockholm
Re: FreeCAD 18.1/Ubuntu 18.04.2. LTS: no workbenches after install
/Hannu - engineer & mild
- Embedded, Computer, Software, Electronic, Fault analysis. A&D Photography http://flickr.com/arkane
- Mechanics, FDM 3D-prints, Solder, Lathe, Mill, Weld -work. ISO Audits, Claim, Deviation, Corrective action
- Embedded, Computer, Software, Electronic, Fault analysis. A&D Photography http://flickr.com/arkane
- Mechanics, FDM 3D-prints, Solder, Lathe, Mill, Weld -work. ISO Audits, Claim, Deviation, Corrective action
-
- Posts: 115
- Joined: Wed May 30, 2018 6:59 pm
Re: FreeCAD 18.1/Ubuntu 18.04.2. LTS: no workbenches after install
Just a few steps forward.
I modified following libraries into my
.local/lib/python3.6/site-packages/PySide2/__init__.py
.local/lib/python3.6/site-packages/shiboken2/__init__.py
with the following editing on lines :
and it works but when I run the add-on manager, it complies:
any help?
Enclosed the freeze for pip
I modified following libraries into my
.local/lib/python3.6/site-packages/PySide2/__init__.py
.local/lib/python3.6/site-packages/shiboken2/__init__.py
with the following editing on lines :
Code: Select all
#type.__signature__
type.__text_signature__
Code: Select all
Running the Python command 'Std_AddonMgr' failed:
Traceback (most recent call last):
File "/usr/share/freecad/Mod/AddonManager/AddonManagerGui.py", line 10, in Activated
import AddonManager
File "/usr/share/freecad/Mod/AddonManager/AddonManager.py", line 46, in <module>
from PySide import QtCore, QtGui
File "/usr/share/freecad/Ext/PySide/QtCore.py", line 1, in <module>
from PySide2.QtCore import *
/usr/lib/x86_64-linux-gnu/libQt5Core.so.5: version `Qt_5.13' not found (required by /home/michele/.local/lib/python3.6/site-packages/PySide2/QtCore.abi3.so)
Enclosed the freeze for pip
- Attachments
-
- pipFreezeLog.log
- (1.89 KiB) Downloaded 67 times
Re: FreeCAD 18.1/Ubuntu 18.04.2. LTS: no workbenches after install
Based on the info you have provided i would say that at some point in the past you pip installed PySide2, using their official wheel. Now that packages are interfering with your FreeCAD install or AppImage. My recommendation would be to remove the pip installed PySide2 and try to run FreeCAD again.
P.S. If you have installed the PySide2 as --user you can quickly confirm if this is the culprit by creating another user account and try to run FreeCAD from that user account.
-
- Posts: 115
- Joined: Wed May 30, 2018 6:59 pm
Re: FreeCAD 18.1/Ubuntu 18.04.2. LTS: no workbenches after install
thank you very much!!!!!!Based on the info you have provided i would say that at some point in the past you pip installed PySide2, using their official wheel. Now that packages are interfering with your FreeCAD install or AppImage. My recommendation would be to remove the pip installed PySide2 and try to run FreeCAD again.
It worked..finally!!!!!
Regards!
Re: FreeCAD 18.1/Ubuntu 18.04.2. LTS: no workbenches after install
Good to hear that and you're welcome.m.cavallerin wrote: ↑Mon Aug 26, 2019 4:26 pm thank you very much!!!!!!
It worked..finally!!!!!
Regards!
Re: FreeCAD 18.1/Ubuntu 18.04.2. LTS: no workbenches after install
removing pyside2 that was installed with pip install --user works, unless you would like to use pyside2 in other programs. I was able to work around the problem by modifying /usr/lib/freecad/Ext/freecad/__init__.py to contain the following:
This should remove all user site-packages from the path, so that freecad doesn't get borked using them.
Code: Select all
import pkgutil
import sys, os
__path__ = pkgutil.extend_path(__path__, __name__)
newpath = []
for val in sys.path:
if not os.getenv("HOME") + '/.local' in val:
newpath.append(val)
sys.path = newpath
import FreeCAD as app
Re: FreeCAD 18.1/Ubuntu 18.04.2. LTS: no workbenches after install
Sorry to dig out an old thread but I have the exact same problem on freeCAD 18.4 (and ubuntu 18.04 LTS)
I confirmed the culprid was indeed an pyside2 incompatibility because when I uninstal it freeCAD works ; and when I install it I get the signature error as soon as I try to load a workbench.
As I need pyside2 for other things, I tried pa2ees' script modification (thx man). But it does not work for me, I still get the signature error.
Trying to execute the script in a python terminal I get :
>>> import pkgutil
>>> import sys, os
>>> __path__ = pkgutil.extend_path(__path__, __name__)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name '__path__' is not defined
I suppose it s not meant to be executed like that.
Anyone know what I could try?
I confirmed the culprid was indeed an pyside2 incompatibility because when I uninstal it freeCAD works ; and when I install it I get the signature error as soon as I try to load a workbench.
As I need pyside2 for other things, I tried pa2ees' script modification (thx man). But it does not work for me, I still get the signature error.
Trying to execute the script in a python terminal I get :
>>> import pkgutil
>>> import sys, os
>>> __path__ = pkgutil.extend_path(__path__, __name__)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name '__path__' is not defined
I suppose it s not meant to be executed like that.
Anyone know what I could try?
Re: FreeCAD 18.1/Ubuntu 18.04.2. LTS: no workbenches after install
Thank you so much for this! PySide2 was creating problems with FreeCAD. No I removed it and everything is back. Unfortunately all my PySide2 projects won't work now.... changing the __init__.py as suggested didn't work. Any other idea how to keep Pyside2 alongside FreeCAD?pa2ees wrote: ↑Fri Dec 13, 2019 6:03 pm removing pyside2 that was installed with pip install --user works, unless you would like to use pyside2 in other programs. I was able to work around the problem by modifying /usr/lib/freecad/Ext/freecad/__init__.py to contain the following:This should remove all user site-packages from the path, so that freecad doesn't get borked using them.Code: Select all
import pkgutil import sys, os __path__ = pkgutil.extend_path(__path__, __name__) newpath = [] for val in sys.path: if not os.getenv("HOME") + '/.local' in val: newpath.append(val) sys.path = newpath import FreeCAD as app
Re: FreeCAD 18.1/Ubuntu 18.04.2. LTS: no workbenches after install
I haven't read the thread in detail but PySide2 works without problem with FreeCAD. FreeCAD uses PySide2 in fact. It is one of its requisites for installation, at least if you install in normal ways.
Code: Select all
Package: freecad-daily-python3
Version: 0.19~pre2~202006050120~ubuntu18.04.1
State: installed (0.19~pre2~202006040256~ubuntu18.04.1), upgrade available (0.19~pre2~202006050120~ubuntu18.04.1)
Automatically installed: yes
Priority: optional
Section: science
Maintainer: Debian Science Maintainers <debian-science-maintainers@lists.alioth.debian.org>
Architecture: amd64
Uncompressed Size: 102 k
Depends: freecad-daily-common, python3-matplotlib, python3-pivy, python3-pyside2.qtcore, python3-pyside2.qtgui, python3-pyside2.qtuitools,
python3-pyside2.qtsvg, python3-pyside2.qtwidgets, python3-pyside2.qtxml, python3-pyside2uic, libfreecad-daily-python3-0.19 (<
0.19~pre2~202006050120~ubuntu18.04.1+1~), libfreecad-daily-python3-0.19 (>= 0.19~pre2~202006050120~ubuntu18.04.1), libc6 (>= 2.14),
libgcc1 (>= 1:3.0), libpython3.6 (>= 3.6.5), libqt5core5a (>= 5.9.0~beta), libqt5gui5 (>= 5.7.0), libqt5widgets5 (>= 5.0.2),
libstdc++6 (>= 5.2)
However, depending on your particular system, you may have conflicting versions of Qt5. This message in one of the posts above leads me to believe this is the case.
Code: Select all
/usr/lib/x86_64-linux-gnu/libQt5Core.so.5: version `Qt_5.13' not found (required by /home/michele/.local/lib/python3.6/site-packages/PySide2/QtCore.abi3.so)
Always add the important information to your posts if you need help. Also see Tutorials and Video tutorials.
To support the documentation effort, and code development, your donation is appreciated: liberapay.com/FreeCAD.
To support the documentation effort, and code development, your donation is appreciated: liberapay.com/FreeCAD.
Re: FreeCAD 18.1/Ubuntu 18.04.2. LTS: no workbenches after install
Didn't test it, but i guess one way would be to install PySide2 like this:
As PySide2 won't be installed to any of the standard Python module search paths, FreeCAD won't find it and hence will not try to use it. In other projects you will need to make sure PIP installed PySide2 will be found, by using PYTHONPATH environment variable or by modifying sys.path.
P.S. Obligatory XKCD:
Code: Select all
pip3 install PySide2 --user --target path_to_custom_directory
P.S. Obligatory XKCD: