FYI: Debian Testing build broken (due to debian packaging)

Having trouble installing or compiling FreeCAD? Get help here.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
wmayer
Founder
Posts: 20243
Joined: Thu Feb 19, 2009 10:32 am
Contact:

Re: FYI: Debian Testing build broken (due to debian packaging)

Post by wmayer »

A way would be to build the Debian packages for Py3.9 on your own. Therefore download the files

Code: Select all

wget http://archive.ubuntu.com/ubuntu/pool/universe/p/pyside2/pyside2_5.14.0-1~exp1ubuntu5.dsc
wget http://archive.ubuntu.com/ubuntu/pool/universe/p/pyside2/pyside2_5.14.0.orig.tar.xz and
wget http://archive.ubuntu.com/ubuntu/pool/universe/p/pyside2/pyside2_5.14.0-1~exp1ubuntu5.debian.tar.xz
Afterwards run this command

Code: Select all

dpkg-source -x pyside2_5.14.0-1~exp1ubuntu5.dsc
that extracts the source files and applies all the patches.

Before continuing with the next step make sure that the symlink python3 points to your python3.9. After that cd into the directory pyside2-5.14.0 and run debuild.

In case you get an error you have to install all listed packages.

Hint: You may have to do the same for shiboken2
Hint: In case you succeed to build the packages open the .deb files and make sure that files have 3.9 in their file names
User avatar
HarryvL
Veteran
Posts: 1285
Joined: Sat Jan 06, 2018 7:38 pm
Location: Netherlands

Re: FYI: Debian Testing build broken (due to debian packaging)

Post by HarryvL »

Thanks. I will give it a try
vm4dim
Posts: 129
Joined: Tue Nov 23, 2021 1:05 am

Re: FYI: Debian Testing build broken (due to debian packaging)

Post by vm4dim »

HarryvL wrote: Fri Jun 10, 2022 3:11 pm Hi I am on Ubuntu 20.04. Would you know how I can get my hands on a libshiboken2-dev package with libshiboken2.cpython-39-x86_64-linux-gnu.so ?

Maybe from Ubuntu Impish 21.10

https://packages.ubuntu.com/impish/amd6 ... v/filelist
https://packages.ubuntu.com/impish/amd6 ... 5/filelist
User avatar
HarryvL
Veteran
Posts: 1285
Joined: Sat Jan 06, 2018 7:38 pm
Location: Netherlands

Re: FYI: Debian Testing build broken (due to debian packaging)

Post by HarryvL »

vm4dim wrote: Fri Jun 10, 2022 5:55 pm
HarryvL wrote: Fri Jun 10, 2022 3:11 pm Hi I am on Ubuntu 20.04. Would you know how I can get my hands on a libshiboken2-dev package with libshiboken2.cpython-39-x86_64-linux-gnu.so ?

Maybe from Ubuntu Impish 21.10

https://packages.ubuntu.com/impish/amd6 ... v/filelist
https://packages.ubuntu.com/impish/amd6 ... 5/filelist
I tried with

Code: Select all

sudo apt-get install libshiboken2-dev/focal-backports
but unfortunately

Code: Select all

Release 'focal-backports' for 'libshiboken2-dev' was not found
User avatar
HarryvL
Veteran
Posts: 1285
Joined: Sat Jan 06, 2018 7:38 pm
Location: Netherlands

Re: FYI: Debian Testing build broken (due to debian packaging)

Post by HarryvL »

wmayer wrote: Fri Jun 10, 2022 3:54 pm A way would be to build the Debian packages for Py3.9 on your own. Therefore download the files

Code: Select all

wget http://archive.ubuntu.com/ubuntu/pool/universe/p/pyside2/pyside2_5.14.0-1~exp1ubuntu5.dsc
wget http://archive.ubuntu.com/ubuntu/pool/universe/p/pyside2/pyside2_5.14.0.orig.tar.xz and
wget http://archive.ubuntu.com/ubuntu/pool/universe/p/pyside2/pyside2_5.14.0-1~exp1ubuntu5.debian.tar.xz
Afterwards run this command

Code: Select all

dpkg-source -x pyside2_5.14.0-1~exp1ubuntu5.dsc
I failed. References are made to Python 3.8 throughout.

A bit of background ... I want to use Intel Distribution for Python to speed up my macro, which is math heavy. I successfully installed this, but can't make FreeCAD to use it.

I successfully created a venv and python --version, python3 -V and python -V all point to the correct Python version. I then followed the advice to set DPYTHON_EXECUTABLE and PYTHON3_EXECUTABLE both to the Intel distribution path, i.e.: /home/harryvl/intel/oneapi/intelpython/python3.9/bin/python3.9. However the Cmake summary for FC keeps giving me:

Code: Select all

==============
Summary report
==============

Build type:          
Compiler:            /usr/bin/c++ (9.4.0)
Flags:               -Wall -Wextra -Wno-write-strings 
Standard:            Requires C++17
Python:              3.8.10 [/usr/bin/python3.8] [.cpython-38-x86_64-linux-gnu] 
How can I force the FC build process to refer to the Intel Distribution for Python (3.9)?

Thanks, Harry
User avatar
mfro
Posts: 663
Joined: Sat Sep 23, 2017 8:15 am

Re: FYI: Debian Testing build broken (due to debian packaging)

Post by mfro »

Not sure if this post fits into this thread, but anyone else except me affected by Debian Testing's apparent complete removal of all pyside2 packages?

Does anybody by chance know why this happened and when it is supposed to be fixed?
Cheers,
Markus
jeno
Veteran
Posts: 1820
Joined: Sun Jun 29, 2014 10:41 am

Re: FYI: Debian Testing build broken (due to debian packaging)

Post by jeno »

mfro wrote: Mon Aug 01, 2022 5:22 am Not sure if this post fits into this thread, but anyone else except me affected by Debian Testing's apparent complete removal of all pyside2 packages?
Does anybody by chance know why this happened and when it is supposed to be fixed?
See devel tracker page especially excuses.
It could last a bit longer because the package is involved in an transition (see collisions)

cheers
User avatar
mfro
Posts: 663
Joined: Sat Sep 23, 2017 8:15 am

Re: FYI: Debian Testing build broken (due to debian packaging)

Post by mfro »

Thank you. Didn't know that page and sure, testing has its quirks, but I never before had a situation where a complete set of packages just vanished.

Helped myself meanwhile with installing the respective packages from unstable (which I originally wanted to avoid at all circumstances and which might expose its own set of nightmares soon :D ).
Cheers,
Markus
User avatar
yorik
Founder
Posts: 13640
Joined: Tue Feb 17, 2009 9:16 pm
Location: Brussels
Contact:

Re: FYI: Debian Testing build broken (due to debian packaging)

Post by yorik »

Just got back from holidays, got my fresh new computer, tried compiling, and fell on the same infamous issue :D
The latest shiboken2 package in Testing (august 23rd) compiles fine with python 3.10 (everything detected, no additional cmake config necessary), but it crashes as soon as a pyside operation is involved (for ex. running a Draft command).
Investigating further...
Post Reply