Your message dated Tue, 24 Dec 2024 15:35:56 +0000
with message-id <[email protected]>
and subject line Bug#1049933: fixed in freecad 1.0.0+dfsg-2
has caused the Debian Bug report #1049933,
regarding freecad-python3: Can't `import FreeCAD` (python3 PATH)
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
1049933: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1049933
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: freecad-python3
Version: 0.19.1+dfsg1-2+deb11u1
Severity: normal
X-Debbugs-Cc: [email protected]
Dear Maintainer,
Can you please either:
1. Add '/usr/lib/freecad-python3/lib' to the default python sys.path or
2. Change the path of the files in '/usr/lib/freecad-python3/lib' to
some-path that's already in the default sys.path?
Currently, if a user installs freecad, runs the python3 console, and
tries to `import FreeCAD`, the get an error:
user@disp7637:~$ python3
Python 3.9.2 (default, Feb 28 2021, 17:03:44)
[GCC 10.2.1 20210110] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import FreeCAD
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'FreeCAD'
>>>
This occurs because the sys.path does not include
'/usr/lib/freecad-python3/lib/'
user@disp7637:~$ python3
Python 3.9.2 (default, Feb 28 2021, 17:03:44)
[GCC 10.2.1 20210110] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> print( sys.path )
['', '/usr/lib/python39.zip', '/usr/lib/python3.9',
'/usr/lib/python3.9/lib-dynload', '/usr/local/lib/python3.9/dist-packages',
'/usr/lib/python3/dist-packages', '/usr/lib/python3.9/dist-packages']
>>>
If a user simply adds '/usr/lib/freecad-python3/lib/' to their python
sys.path, then the `import FreeCAD` works as expected
>>> sys.path.append( '/usr/lib/freecad-python3/lib' )
>>> import FreeCAD
>>>
One solution is to update python so that the default sys.path includes
this directory.
Another solution is to change this directory to be inside one of the
default sys.path directories.
Finally, a symlink may be added to fix this issue.
For more information, please see:
* https://forum.freecad.org/viewtopic.php?p=700032#p700032
*
https://unix.stackexchange.com/questions/754182/how-to-import-freecad-in-cli-python
Thank you,
Michael Altfield
https://www.michaelaltfield.net
PGP Fingerprint: 0465 E42F 7120 6785 E972 644C FE1B 8449 4E64 0D41
-- System Information:
Debian Release: 11.7
APT prefers oldstable-security
APT policy: (500, 'oldstable-security'), (500, 'oldstable')
Architecture: amd64 (x86_64)
Kernel: Linux 6.1.35-1.qubes.fc32.x86_64 (SMP w/2 CPU threads; PREEMPT)
Kernel taint flags: TAINT_BAD_PAGE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages freecad-python3 depends on:
ii freecad-common 0.19.1+dfsg1-2+deb11u1
ii libc6 2.31-13+deb11u6
ii libfreecad-python3-0.19 0.19.1+dfsg1-2+deb11u1
ii libgcc-s1 10.2.1-6
ii libpython3.9 3.9.2-1
ii libqt5core5a 5.15.2+dfsg-9
ii libqt5gui5 5.15.2+dfsg-9
ii libqt5widgets5 5.15.2+dfsg-9
ii libstdc++6 10.2.1-6
ii python3-matplotlib 3.3.4-1
ii python3-pivy 0.6.5-1+b3
ii python3-ply 3.11-4
ii python3-pyside2.qtcore 5.15.2-1
ii python3-pyside2.qtgui 5.15.2-1
ii python3-pyside2.qtsvg 5.15.2-1
ii python3-pyside2.qtuitools 5.15.2-1
ii python3-pyside2.qtwidgets 5.15.2-1
ii python3-pyside2.qtxml 5.15.2-1
ii python3-yaml 5.3.1-5
freecad-python3 recommends no packages.
freecad-python3 suggests no packages.
-- no debconf information
--- End Message ---
--- Begin Message ---
Source: freecad
Source-Version: 1.0.0+dfsg-2
Done: Tobias Frost <[email protected]>
We believe that the bug you reported is fixed in the latest version of
freecad, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Tobias Frost <[email protected]> (supplier of updated freecad package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Format: 1.8
Date: Tue, 24 Dec 2024 14:07:00 +0100
Source: freecad
Architecture: source
Version: 1.0.0+dfsg-2
Distribution: unstable
Urgency: medium
Maintainer: Debian Science Maintainers
<[email protected]>
Changed-By: Tobias Frost <[email protected]>
Closes: 1049933 1087876 1090833
Changes:
freecad (1.0.0+dfsg-2) unstable; urgency=medium
.
* Upload to unstable.
* New patch to fix FTBFS on armel/armhf, where GL_MULTIPATH seems not to be
defined.
* Split some patches for easier upstreaming, update meta data.
* d/clean: remove files which are in FilesExluded.
.
freecad (1.0.0+dfsg-1~exp1) experimental; urgency=medium
.
* Upload to experimental to clear NEW (binary package rename)
* New upstream release. (Closes: #1087876)
- remove patches applied upstream.
- refresh patches.
- new patch to use packaged version of nlohmann-json3.
- disable Assembly workbench, as it needs a yet unpackaged library.
- python modules are now installed to site-packages. (Closes: #1049933)
* d/watch: not to use dfsg not dfsg1 as suffix.
complains about the missing KuKa files and the Y14.5 font.
* d/rules: general cleanup.
* d/control:
- drop version from the libfreecad-python3 package name.
- add several B-Ds now required, to unbundle embedded libraries:
- cmake-extras for FindGMock and FindGTest
- libgtest-dev and libgmock-dev for the gtest and gmock.
- use libyaml-cpp-dev instead of embedded code copy.
- libgl-dev to use Debian's glext.h
- libmsgsl-dev to use the Debian package.
- add version constraint on fixed zipios++ version.
- use fonts-osifont package for osifont-italic.
- remove obsolete Breaks/Replaces constraints, fulfilled since at
least oldstable.
- bump S-V to 4.7.0 - no changes required.
* d/copyright: rewrite and complete review. (WIP)
- Seveal additional files are now removed, due to a non-free
license (Closes: #1090833)
* New patch to fix FTBFS when linking the test suite.
* New patch to fix FTBFS due to the DFSG repacking, as the Robot Workbench
* Install python modules in site path.
* Install example files shipped by upstream.
Checksums-Sha1:
fc774415ea5c4a504977e4d4ee0acec07d44c017 3540 freecad_1.0.0+dfsg-2.dsc
8849705ab4191159e3cc75a83372a70f9a13b4ff 61688
freecad_1.0.0+dfsg-2.debian.tar.xz
c644efe6a76b1bd8e699eb3c5f98918ee790a1d6 36980
freecad_1.0.0+dfsg-2_amd64.buildinfo
Checksums-Sha256:
9d9e64cc904cad94af83e3b8be3b5f7c677fe8137948ca92295f6467af50e645 3540
freecad_1.0.0+dfsg-2.dsc
103f338031499daea4f9954309068b45a8689f1a62ddd4a5ef718aa5fa5c2040 61688
freecad_1.0.0+dfsg-2.debian.tar.xz
fd6354af83ac186f45bf18d54105da4b0203ffbaaf329731feee948d22f6dc47 36980
freecad_1.0.0+dfsg-2_amd64.buildinfo
Files:
979a770c448f7b4b6c49c6988fc85444 3540 science optional freecad_1.0.0+dfsg-2.dsc
1ed8ccb466db150a0717d56c4c66ad10 61688 science optional
freecad_1.0.0+dfsg-2.debian.tar.xz
0c43e3e238dd43e2d76935619c063d99 36980 science optional
freecad_1.0.0+dfsg-2_amd64.buildinfo
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCgAdFiEE/d0M/zhkJ3YwohhskWT6HRe9XTYFAmdq0KUACgkQkWT6HRe9
XTYDnQ//WlkUU6Ci/sqWRwzuIMUHAVwdVazVrbW2FgvA9zEywt5kwfSDtBHKoDne
S0vpNap9EOMIUW9TEipCK+jSC2aSbpFaWzxbUSrKKm5liLLGyqKQx9HgLq0wRuiG
jqQ0fgi3s5RP7coo0K671UeStR+9QiEpVpJjUz+WFCuoceAYpyfxBCEGDMx+x71l
7vfBLfVR8o4RheDE6AclDPvUJe063VVGqTMIw2pBHBLL1jliT6WuRtqrME6Vnmad
Cvr51+Hy9vem++w8MdVVlfX1Tk7jWZCoXC2dYyELmm1QQAln5/NMhZTqE1hNxPv2
fGNkO6WMkUHBt4+eYrZz1oxwM/sGhGHNBpDHyXhGbt325leczkVZOv8c2Lj4eDH/
4nUiln93LRDfttVXHiCXTcLdkhVUrD9CE9noitQdTd/ogkodqJyrl4DvBZ05IR9M
jOIh5p7esZJOnrIAfch+9JwzwE+c6vKwv7DmXZnp6+EedbZrVy6fCg5p5cApL9Oq
6yL6uaC6dpjOg/xLNDMzTOV9Yc9PE0RVphy+bCtzkMH20LR7MO4NtaFCqqQckWYF
6wF8vS6AhKKqdCkEA5561IyJKdwlAwCiW8C6fK3a7/wpE/Q0nu863Gp1tXlRmL1Q
Ak7WCmuvWxTKE4yJeiMXiDSh1cw0icN/XzoiplC4w0xic//dgRM=
=MrBp
-----END PGP SIGNATURE-----
pgpeRHWi_sAaJ.pgp
Description: PGP signature
--- End Message ---
--
debian-science-maintainers mailing list
[email protected]
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/debian-science-maintainers