Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.maint.python > #14536 > unrolled thread

ctype and dh_python3 extension rename

Started byPICCA Frederic-Emmanuel <frederic-emmanuel.picca@synchrotron-soleil.fr>
First post2022-10-17 18:10 +0200
Last post2022-10-17 18:10 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.debian.maint.python


Contents

  ctype and dh_python3 extension rename PICCA Frederic-Emmanuel <frederic-emmanuel.picca@synchrotron-soleil.fr> - 2022-10-17 18:10 +0200

#14536 — ctype and dh_python3 extension rename

FromPICCA Frederic-Emmanuel <frederic-emmanuel.picca@synchrotron-soleil.fr>
Date2022-10-17 18:10 +0200
Subjectctype and dh_python3 extension rename
Message-ID<FhAQG-eSR1-19@gated-at.bofh.it>

[Multipart message — attachments visible in raw view] — view raw

Hello, I am packaging the latest tomopy package.this software use ctype to open some extensions during the import, but I have this error message.
>>> import tomopy
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python3/dist-packages/tomopy/__init__.py", line 63, in <module>
from tomopy.misc.corr import *
File "/usr/lib/python3/dist-packages/tomopy/misc/corr.py", line 60, in <module>
import tomopy.util.extern as extern
File "/usr/lib/python3/dist-packages/tomopy/util/extern/__init__.py", line 86, in <module>
from tomopy.util.extern.prep import *
File "/usr/lib/python3/dist-packages/tomopy/util/extern/prep.py", line 65, in <module>
LIB_TOMOPY_PREP = c_shared_lib("libtomopy-prep")
File "/usr/lib/python3/dist-packages/tomopy/util/extern/__init__.py", line 69, in c_shared_lib
raise ModuleNotFoundError(
ModuleNotFoundError: The following shared library is missing:
/usr/lib/python3/dist-packages/tomopy/util/extern/libtomopy-prep.soIndeed during the build process this module was renamed into libtomopy-prep.cpython-310-x86_64-linux-gnu.soSo my question is... how can I solve this issue.  - do not rename the extension  - change the logic in order to find the renamed extension. (I like it but where can I find the debian modules helper which allows to do this).Thanks for your helpFrederic

[toc] | [standalone]


Back to top | Article view | linux.debian.maint.python


csiph-web