Ticket #4057 - Nightly builds not working on Fedora 30

Having trouble installing or compiling FreeCAD? Get help here.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
rpress
Posts: 8
Joined: Mon Jul 01, 2019 10:40 pm

Ticket #4057 - Nightly builds not working on Fedora 30

Post by rpress »

I am trying to install freecad-0.19_pre-17320.x86_64 from here: https://copr.fedorainfracloud.org/coprs ... e/freecad/

The first error I see is with DNF:

Code: Select all

 Problem: cannot install the best candidate for the job
  - nothing provides python-pivy needed by freecad-1:0.19_pre-17320.x86_64
I can edit the RPM to remove that dependency, and it installs fine. I saw this commit but I guess it didn't work? https://github.com/FreeCAD/FreeCAD/comm ... ed5cb77fcd

When I try to run it I receive this error:

Code: Select all

FreeCAD 0.19, Libs: 0.19R17320 (Git)
© Juergen Riegel, Werner Mayer, Yorik van Havre 2001-2019
  #####                 ####  ###   ####  
  #                    #      # #   #   # 
  #     ##  #### ####  #     #   #  #   # 
  ####  # # #  # #  #  #     #####  #   # 
  #     #   #### ####  #    #     # #   # 
  #     #   #    #     #    #     # #   #  ##  ##  ##
  #     #   #### ####   ### #     # ####   ##  ##  ##

Error in InitApplications type '_io._IOBase' participates in gc and is a base type but has inappropriate 
tp_free slot
--------------------------------------------------------------------------------
Traceback (most recent call last):
  File "<string>", line 241, in <module>
  File "<string>", line 54, in InitApplications
  File "/usr/lib64/python2.7/io.py", line 51, in <module>
    import _io
TypeError: type '_io._IOBase' participates in gc and is a base type but has inappropriate tp_free slot

--------------------------------------------------------------------------------
Program received signal SIGSEGV, Segmentation fault.
#0  /lib64/libc.so.6(+0x37f00) [0x7f9548fc3f00]
#1  /lib64/libpython2.7.so.1.0(PyObject_GetAttrString+0x16) [0x7f954a356296]
0000002  /lib64/libpython2.7.so.1.0(PyObject_HasAttrString+0xd) [0x7f954a35623d]
0000003  /lib64/libpython2.7.so.1.0(PyImport_ImportModuleLevel+0x262) [0x7f954a3af592]
0000004  /lib64/libpython2.7.so.1.0(+0x11a5dc) [0x7f954a3965dc]
0000005  /lib64/libpython2.7.so.1.0(PyObject_Call+0x47) [0x7f954a317197]
0000006  /lib64/libpython2.7.so.1.0(PyEval_CallObjectWithKeywords+0x4c) [0x7f954a402b5c]
0000007  /lib64/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x2961) [0x7f954a405a21]
0000008  /lib64/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x7f8) [0x7f954a40c938]
0000009  /lib64/libpython2.7.so.1.0(PyEval_EvalCode+0x1d) [0x7f954a40cafd]
0000010  /lib64/libpython2.7.so.1.0(PyImport_ExecCodeModuleEx+0xc1) [0x7f954a3b17b1]
0000011  /lib64/libpython2.7.so.1.0(+0x13523e) [0x7f954a3b123e]
0000012  /lib64/libpython2.7.so.1.0(PyImport_ImportModuleLevel+0x7e1) [0x7f954a3afb11]
0000013  /lib64/libpython2.7.so.1.0(+0x11a5dc) [0x7f954a3965dc]
0000014  /lib64/libpython2.7.so.1.0(PyObject_Call+0x47) [0x7f954a317197]
0000015  /lib64/libpython2.7.so.1.0(PyEval_CallObjectWithKeywords+0x4c) [0x7f954a402b5c]
0000016  /lib64/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x2961) [0x7f954a405a21]
0000017  /lib64/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x7f8) [0x7f954a40c938]
0000018  /lib64/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x6b3e) [0x7f954a409bfe]
0000019  /lib64/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x7f8) [0x7f954a40c938]
0000020  /lib64/libpython2.7.so.1.0(PyEval_EvalCode+0x1d) [0x7f954a40cafd]
0000021  /lib64/libpython2.7.so.1.0(PyRun_StringFlags+0x78) [0x7f954a3ba3f8]
0000022  0x7f954a606fda in Base::InterpreterSingleton::runString[abi:cxx11](char const*) from /usr/lib64/freecad/lib/libFreeCADBase.so+0x6a

0000023  0x7f954af145b3 in Gui::Application::runInitGuiScript() from /usr/lib64/freecad/lib/libFreeCADGui.so+0x43

0000024  0x7f954af1d039 in Gui::Application::runApplication() from /usr/lib64/freecad/lib/libFreeCADGui.so+0x13f9

0000025  FreeCAD(main+0x716) [0x55c56aad9046]
0000026  /lib64/libc.so.6(__libc_start_main+0xf3) [0x7f9548faff33]
0000027  FreeCAD(_start+0x2e) [0x55c56aad93be]
It seems similar to here: https://forum.freecadweb.org/viewtopic.php?t=33810
Last edited by Kunda1 on Mon Aug 19, 2019 10:54 pm, edited 1 time in total.
Reason: Added ticket number to thread title
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: Nightly builds not working on Fedora 30

Post by Kunda1 »

PrzemoF wrote:
@PrzemoF, you mess with copr right?

Edit: issue #4057
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
User avatar
PrzemoF
Veteran
Posts: 3520
Joined: Fri Jul 25, 2014 4:52 pm
Contact:

Re: Ticket #4057 - Nightly builds not working on Fedora 30

Post by PrzemoF »

I do and I'm aware of the problem. i tried to get Qt5 and python3, but I had some problems. Please assign the ticket to me if you haven't done so yet.
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: Ticket #4057 - Nightly builds not working on Fedora 30

Post by Kunda1 »

PrzemoF wrote: Tue Aug 20, 2019 7:23 am I do and I'm aware of the problem. i tried to get Qt5 and python3, but I had some problems. Please assign the ticket to me if you haven't done so yet.
Do you have a Bugtracker account ? Can't seem to find it
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
User avatar
PrzemoF
Veteran
Posts: 3520
Joined: Fri Jul 25, 2014 4:52 pm
Contact:

Re: Ticket #4057 - Nightly builds not working on Fedora 30

Post by PrzemoF »

pfirszt: https://freecadweb.org/tracker/view_use ... hp?id=2020

I ca't reset the password, so maybe the account is inactive/damaged?
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: Ticket #4057 - Nightly builds not working on Fedora 30

Post by Kunda1 »

PrzemoF wrote: Tue Aug 20, 2019 7:23 am I do and I'm aware of the problem. i tried to get Qt5 and python3, but I had some problems.
Any progress on this ?
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
User avatar
PrzemoF
Veteran
Posts: 3520
Joined: Fri Jul 25, 2014 4:52 pm
Contact:

Re: Ticket #4057 - Nightly builds not working on Fedora 30

Post by PrzemoF »

Not really. I tried, but fedora is weird or I don't have enough knowledge/time. I won't have time to do anything about it for the next ~ 2 weeks. :oops:

If anyone managed to compile & run tests on fedora 30, please share how you did it.

P.S. Reference thread: https://forum.freecadweb.org/viewtopic.php?f=10&t=38996

P.S.S Current pyside search in fedora 30:

Code: Select all

$ dnf search pyside
====================================================== Dopasowano Nazwa i Podsumowanie: pyside =======================================================
pyside-tools.x86_64 : Development tools for PySide
pyside-tools.x86_64 : Development tools for PySide
python-pyside-devel.x86_64 : Development files for python-pyside
python-pyside-devel.i686 : Development files for python-pyside
python-pyside-devel.x86_64 : Development files for python-pyside
============================================================== Dopasowano Nazwa: pyside ==============================================================
python2-pyside.x86_64 : Python bindings for Qt4
python3-pyside.x86_64 : Python bindings for Qt4
python2-pyside.i686 : Python bindings for Qt4
python2-pyside.x86_64 : Python bindings for Qt4
python3-pyside.i686 : Python bindings for Qt4
python3-pyside.x86_64 : Python bindings for Qt4
========================================================== Dopasowano Podsumowanie: pyside ===========================================================
python3-QtAwesome.noarch : FontAwesome icons in PyQt and PySide applications
User avatar
hobbes1069
Posts: 291
Joined: Wed Nov 09, 2011 3:49 pm
Location: Southaven, MS

Re: Ticket #4057 - Nightly builds not working on Fedora 30

Post by hobbes1069 »

FYI Pyside2 is now packaged for Fedora on release 30 and up.

Thanks,
Richard
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: Ticket #4057 - Nightly builds not working on Fedora 30

Post by Kunda1 »

hobbes1069 wrote: Tue Sep 03, 2019 2:27 pm FYI Pyside2 is now packaged for Fedora on release 30 and up.
Thank you for all you efforts!

What's the verdict on issue #4057 based on this ?
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
User avatar
hobbes1069
Posts: 291
Joined: Wed Nov 09, 2011 3:49 pm
Location: Southaven, MS

Re: Ticket #4057 - Nightly builds not working on Fedora 30

Post by hobbes1069 »

Kunda1 wrote: Thu Sep 05, 2019 8:31 pm
hobbes1069 wrote: Tue Sep 03, 2019 2:27 pm FYI Pyside2 is now packaged for Fedora on release 30 and up.
Thank you for all you efforts!

What's the verdict on issue #4057 based on this ?
Just looked at it, sorry didn't see it sooner. I commented there but for posterity I moved the Fedora based build to Python 3 so the correct requirement is now "python3-pivy"

Thanks,
Richard
Post Reply