Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
No pyside in portage
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
grooveman
Veteran
Veteran


Joined: 24 Feb 2003
Posts: 1217

PostPosted: Thu Jan 03, 2019 4:15 pm    Post subject: No pyside in portage Reply with quote

Hi.

For the last year and a half or so, I had been trying to get FreeCAD installed and working on my Gentoo system. It never really worked. I hadn't tried for a while until recently again, and I see that it has been removed entirely from Portage.

Fortunately, I found that FreeCAD offers a stand-alone appimage version. This seems to work just fine under Gentoo -- except when I need to use the Assembly module... as soon as I go to import something, it blows up. I think that this is probably because I do not have pyside installed. But -- it looks like pyside is no longer in portage either. Of course, it is just a guess, but the README pulled from github states that this is a dependency of the module, so I think it is a good guess...

I'm trying to follow the tutorial for creating the lego block, on the freecad website, which introduces the assembly module (something I will need). When I click on "Import a part from another freecad document", it segfaults.

Code:
importing part from /home/user/Desktop/Scratch/Lego Block.fcstd
Program received signal SIGSEGV, Segmentation fault.
#0  /lib64/libc.so.6(+0x36810) [0x7fd268165810]
#1  /usr/lib64/libexpat.so.1(XML_SetHashSalt+0x1b) [0x7fd25dbf408b]
#2  /tmp/.mount_FreeCA8zNfHb/usr/lib/python2.7/lib-dynload/pyexpat.x86_64-linux-gnu.so(+0x3e32) [0x7fd1efdf2e32]
#3  /tmp/.mount_FreeCA8zNfHb/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x4bd4) [0x7fd269e080d4]
#4  /tmp/.mount_FreeCA8zNfHb/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x80d) [0x7fd269e0a17d]
#5  /tmp/.mount_FreeCA8zNfHb/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(+0x1623e5) [0x7fd269e0a3e5]
#6  /tmp/.mount_FreeCA8zNfHb/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyObject_Call+0x43) [0x7fd269dd1e23]
#7  /tmp/.mount_FreeCA8zNfHb/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(+0x7d30d) [0x7fd269d2530d]
#8  /tmp/.mount_FreeCA8zNfHb/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyObject_Call+0x43) [0x7fd269dd1e23]
#9  /tmp/.mount_FreeCA8zNfHb/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(+0x12e48f) [0x7fd269dd648f]
#10  /tmp/.mount_FreeCA8zNfHb/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(+0x12c4df) [0x7fd269dd44df]
#11  /tmp/.mount_FreeCA8zNfHb/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyObject_Call+0x43) [0x7fd269dd1e23]
#12  /tmp/.mount_FreeCA8zNfHb/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x2316) [0x7fd269e05816]
#13  /tmp/.mount_FreeCA8zNfHb/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x80d) [0x7fd269e0a17d]
#14  /tmp/.mount_FreeCA8zNfHb/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x48d8) [0x7fd269e07dd8]
#15  /tmp/.mount_FreeCA8zNfHb/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x80d) [0x7fd269e0a17d]
#16  /tmp/.mount_FreeCA8zNfHb/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(+0x162310) [0x7fd269e0a310]
#17  /tmp/.mount_FreeCA8zNfHb/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyObject_Call+0x43) [0x7fd269dd1e23]
#18  /tmp/.mount_FreeCA8zNfHb/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(+0x7d30d) [0x7fd269d2530d]
#19  /tmp/.mount_FreeCA8zNfHb/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyObject_Call+0x43) [0x7fd269dd1e23]
#20  /tmp/.mount_FreeCA8zNfHb/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_CallObjectWithKeywords+0x47) [0x7fd269d90837]
#21  /tmp/.mount_FreeCA8zNfHb/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyInstance_New+0x68) [0x7fd269daa6e8]
#22  /tmp/.mount_FreeCA8zNfHb/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyObject_Call+0x43) [0x7fd269dd1e23]
#23  /tmp/.mount_FreeCA8zNfHb/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x2316) [0x7fd269e05816]
#24  /tmp/.mount_FreeCA8zNfHb/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x80d) [0x7fd269e0a17d]
#25  /tmp/.mount_FreeCA8zNfHb/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x48d8) [0x7fd269e07dd8]
#26  /tmp/.mount_FreeCA8zNfHb/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x80d) [0x7fd269e0a17d]
#27  /tmp/.mount_FreeCA8zNfHb/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(+0x162310) [0x7fd269e0a310]
#28  /tmp/.mount_FreeCA8zNfHb/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyObject_Call+0x43) [0x7fd269dd1e23]
#29  /tmp/.mount_FreeCA8zNfHb/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(+0x7d30d) [0x7fd269d2530d]
#30  /tmp/.mount_FreeCA8zNfHb/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyObject_Call+0x43) [0x7fd269dd1e23]
#31  /tmp/.mount_FreeCA8zNfHb/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_CallObjectWithKeywords+0x47) [0x7fd269d90837]
#32  ././/lib/freecad/lib/libFreeCADBase.so(PP_Run_Method+0xd7) [0x7fd26a327e17]
#33  0x7fd26a2bb119 in Base::InterpreterSingleton::runMethodVoid(_object*, char const*) from ././/lib/freecad/lib/libFreeCADBase.so+0x29
#34  0x7fd26adb8fbe in Gui::PythonCommand::activated(int) from ././/lib/freecad/lib/libFreeCADGui.so+0x3e
#35  0x7fd26adbc33c in Gui::Command::invoke(int) from ././/lib/freecad/lib/libFreeCADGui.so+0x4c
#36  0x7fd268ca187a in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) from /tmp/.mount_FreeCA8zNfHb/usr/lib/x86_64-linux-gnu/libQtCore.so.4+0x2da
#37  0x7fd2691b8a62 in QAction::triggered(bool) from /tmp/.mount_FreeCA8zNfHb/usr/lib/x86_64-linux-gnu/libQtGui.so.4+0x32
#38  0x7fd2691ba433 in QAction::activate(QAction::ActionEvent) from /tmp/.mount_FreeCA8zNfHb/usr/lib/x86_64-linux-gnu/libQtGui.so.4+0x63
#39  /tmp/.mount_FreeCA8zNfHb/usr/lib/x86_64-linux-gnu/libQtGui.so.4(+0x57cb02) [0x7fd269571b02]
#40  0x7fd269571c2c in QAbstractButton::mouseReleaseEvent(QMouseEvent*) from /tmp/.mount_FreeCA8zNfHb/usr/lib/x86_64-linux-gnu/libQtGui.so.4+0x6c
#41  0x7fd269628a4a in QToolButton::mouseReleaseEvent(QMouseEvent*) from /tmp/.mount_FreeCA8zNfHb/usr/lib/x86_64-linux-gnu/libQtGui.so.4+0xa
#42  0x7fd26920e50a in QWidget::event(QEvent*) from /tmp/.mount_FreeCA8zNfHb/usr/lib/x86_64-linux-gnu/libQtGui.so.4+0xaca
#43  0x7fd2691bee2c in QApplicationPrivate::notify_helper(QObject*, QEvent*) from /tmp/.mount_FreeCA8zNfHb/usr/lib/x86_64-linux-gnu/libQtGui.so.4+0x8c
#44  0x7fd2691c55dd in QApplication::notify(QObject*, QEvent*) from /tmp/.mount_FreeCA8zNfHb/usr/lib/x86_64-linux-gnu/libQtGui.so.4+0x3ad
#45  0x7fd26ad9a9f1 in Gui::GUIApplication::notify(QObject*, QEvent*) from ././/lib/freecad/lib/libFreeCADGui.so+0x41
#46  0x7fd268c8d4dd in QCoreApplication::notifyInternal(QObject*, QEvent*) from /tmp/.mount_FreeCA8zNfHb/usr/lib/x86_64-linux-gnu/libQtCore.so.4+0x6d
#47  0x7fd2691c4d93 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) from /tmp/.mount_FreeCA8zNfHb/usr/lib/x86_64-linux-gnu/libQtGui.so.4+0x153
#48  /tmp/.mount_FreeCA8zNfHb/usr/lib/x86_64-linux-gnu/libQtGui.so.4(+0x2449cb) [0x7fd2692399cb]
#49  0x7fd269239269 in QApplication::x11ProcessEvent(_XEvent*) from /tmp/.mount_FreeCA8zNfHb/usr/lib/x86_64-linux-gnu/libQtGui.so.4+0x1559
#50  /tmp/.mount_FreeCA8zNfHb/usr/lib/x86_64-linux-gnu/libQtGui.so.4(+0x26bb02) [0x7fd269260b02]
#51  /usr/lib64/libglib-2.0.so.0(g_main_context_dispatch+0x2e7) [0x7fd261966e27]
#52  /usr/lib64/libglib-2.0.so.0(+0x4c060) [0x7fd261967060]
#53  /usr/lib64/libglib-2.0.so.0(g_main_context_iteration+0x2c) [0x7fd2619670ec]
#54  0x7fd268cba7a1 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) from /tmp/.mount_FreeCA8zNfHb/usr/lib/x86_64-linux-gnu/libQtCore.so.4+0x71
#55  /tmp/.mount_FreeCA8zNfHb/usr/lib/x86_64-linux-gnu/libQtGui.so.4(+0x26bbb6) [0x7fd269260bb6]
#56  0x7fd268c8c0af in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) from /tmp/.mount_FreeCA8zNfHb/usr/lib/x86_64-linux-gnu/libQtCore.so.4+0x2f
#57  0x7fd268c8c3a5 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) from /tmp/.mount_FreeCA8zNfHb/usr/lib/x86_64-linux-gnu/libQtCore.so.4+0x175
#58  0x7fd268c91b79 in QCoreApplication::exec() from /tmp/.mount_FreeCA8zNfHb/usr/lib/x86_64-linux-gnu/libQtCore.so.4+0x89
#59  0x7fd26ad5ade7 in Gui::Application::runApplication() from ././/lib/freecad/lib/libFreeCADGui.so+0x1327
#60  /tmp/.mount_FreeCA8zNfHb/usr/bin/freecad(main+0x74b) [0x40355b]
#61  /lib64/libc.so.6(__libc_start_main+0xe7) [0x7fd268150ae7]
#62  /tmp/.mount_FreeCA8zNfHb/usr/bin/freecad() [0x4044c7]


So, I'm wondering if there is a gentoo-sanctioned option for installing pyside (though I doubt it), and failing that, what is the best way to install it? I don't really have any experience with pyside, so I'm at a loss, and I don't want to contaminate my system by installing something that cannot be (at the very least) cleanly uninstalled. Any advice here?

I'm using freecad 0.17.

Thanks.

G
_________________
To look without without looking within is like looking without without looking at all.
Back to top
View user's profile Send private message
Perfect Gentleman
Veteran
Veteran


Joined: 18 May 2014
Posts: 1248

PostPosted: Thu Jan 03, 2019 4:18 pm    Post subject: Reply with quote

Code:
eix pyside
* dev-python/pyside [1]
     Available versions:  (2) **9999
       {charts concurrent datavis declarative designer gui help multimedia network opengl printsupport script scripttools sql svg test testlib webchannel webengine webkit websockets widgets x11extras xmlpatterns PYTHON_TARGETS="python2_7 python3_4 python3_5 python3_6"}
     Homepage:            https://wiki.qt.io/PySide2
     Description:         Python bindings for the Qt framework

* dev-python/pyside-tools [1]
     Available versions:  (2) **9999
       {test PYTHON_TARGETS="python2_7 python3_4 python3_5 python3_6"}
     Homepage:            https://wiki.qt.io/PySide2
     Description:         PySide development tools (lupdate, rcc, uic)

[1] "qt" /usr/portage/proj/qt
Back to top
View user's profile Send private message
grooveman
Veteran
Veteran


Joined: 24 Feb 2003
Posts: 1217

PostPosted: Thu Jan 03, 2019 4:42 pm    Post subject: Reply with quote

Code:
eix pyside
No matches found



Code:
emerge -s pyside
 
[ Results for search key : pyside ]
Searching...

*  sys-fs/pysize
      Latest version available: 0.2-r1
      Latest version installed: [ Not Installed ]
      Size of files: 488 KiB
      Homepage:      http://guichaz.free.fr/pysize/
      Description:   A graphical and console tool for exploring the size of directories
      License:       GPL-2

[ Applications found : 1 ]

_________________
To look without without looking within is like looking without without looking at all.
Back to top
View user's profile Send private message
Syl20
l33t
l33t


Joined: 04 Aug 2005
Posts: 619
Location: France

PostPosted: Thu Jan 03, 2019 6:09 pm    Post subject: Reply with quote

pip, perhaps ?
https://pypi.org/project/PySide/
Back to top
View user's profile Send private message
Naib
Watchman
Watchman


Joined: 21 May 2004
Posts: 6051
Location: Removed by Neddy

PostPosted: Thu Jan 03, 2019 6:28 pm    Post subject: Reply with quote

pyside is qt4 and since qt4 was depreciated it has gone.

Also python got a promotion within the Qt project and as such it is no longer a 2nd class citizen https://wiki.qt.io/Qt_for_Python

Quote:
Q: PySide? Qt for Python? what is the name?
A: The name of the project is Qt for Python and the name of the module is PySide2.

_________________
Quote:
Removed by Chiitoo
Back to top
View user's profile Send private message
Chiitoo
Administrator
Administrator


Joined: 28 Feb 2010
Posts: 2571
Location: Here and Away Again

PostPosted: Thu Jan 03, 2019 7:44 pm    Post subject: ><)))°€ Reply with quote

grooveman wrote:
Code:
eix pyside
No matches found

Notice the '[1] "qt" /usr/portage/proj/qt':

Perfect Gentleman wrote:
Code:
eix pyside
* dev-python/pyside [1]
     Available versions:  (2) **9999
       {charts concurrent datavis declarative designer gui help multimedia network opengl printsupport script scripttools sql svg test testlib webchannel webengine webkit websockets widgets x11extras xmlpatterns PYTHON_TARGETS="python2_7 python3_4 python3_5 python3_6"}
     Homepage:            https://wiki.qt.io/PySide2
     Description:         Python bindings for the Qt framework

* dev-python/pyside-tools [1]
     Available versions:  (2) **9999
       {test PYTHON_TARGETS="python2_7 python3_4 python3_5 python3_6"}
     Homepage:            https://wiki.qt.io/PySide2
     Description:         PySide development tools (lupdate, rcc, uic)

[1] "qt" /usr/portage/proj/qt

That looks like the Qt overlay, which would explain why you don't see it if you don't have said overlay set up. :]
_________________
Kindest of regardses.
Back to top
View user's profile Send private message
grooveman
Veteran
Veteran


Joined: 24 Feb 2003
Posts: 1217

PostPosted: Fri Jan 04, 2019 1:36 am    Post subject: Reply with quote

Naib wrote:
pyside is qt4 and since qt4 was depreciated it has gone.

Also python got a promotion within the Qt project and as such it is no longer a 2nd class citizen https://wiki.qt.io/Qt_for_Python

Quote:
Q: PySide? Qt for Python? what is the name?
A: The name of the project is Qt for Python and the name of the module is PySide2.


Yes, that was why they dropped FreeCAD from portage... the QT4 thing...

But I do have QT for Python installed... but either it won't cut it, or it cannot find it.

I appreciate what you are saying Chitoo, but I did not want to get into overlays... it just creates headaches at upgrade time. I try to keep my system as pure as possible. I rely on my system too much and just don't have the time to to get into a dependency nightmare these days. Besides, if I did that, I might as well just do the whole FreeCAD overlay (since I'd be in the neighborhood).

I know they are working on a native assembly workbench in FreeCAD... maybe I'll give it a little more time. If I get impatient... I'll try the overlay.

Thanks.
_________________
To look without without looking within is like looking without without looking at all.
Back to top
View user's profile Send private message
clytle374
Apprentice
Apprentice


Joined: 01 Aug 2006
Posts: 221

PostPosted: Sat Jan 04, 2020 5:05 am    Post subject: Reply with quote

I've been building freecad from git for some years now. But I can't say anything about the assembly module.

I've been using the waebbl overlay for pyside, pivy, pyside-tools, shiboken, opencascade, SoQt, coin, and simage. Waebbl also has freecad packages for stable and development. I've just stuck with building from git source. Freecad will run from its build directroy just fine, but I'd definitely use separate source and build directories. And I haven't had any conflicts come from it.

Unfortunately, both the shiboken and pyside packages are failing to build at the moment, which is what lead me to this thread.

Freecad builds and runs just fine now with QT5.

But you'll need several things from overlays, or install them yourself to get freecad built and running. And you really will want a modern version.

Cory
_________________
NooB since RedHat 6.1
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum