Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[package] cpython/3.9.7: static library can't load module with dynamic library #8608

Closed
tomazos opened this issue Jan 2, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@tomazos
Copy link

tomazos commented Jan 2, 2022

Package and Environment Details (include every applicable attribute)

  • Package Name/Version: cpython/3.9.7
  • Operating System+version: Linux Ubuntu 20.04
  • Compiler+version: GCC 9.3.0

I'm having trouble getting a statically linked and embedded python interpretter (the static library produced by cpython/3.9.7, but the issue is likely version-independant) to import python modules that have a native shared library component.

I'm not sure if it's related to the recipe but might be work taking a look.

Details are posted to SO here: https://stackoverflow.com/q/70553232/1131467

@tomazos tomazos added the bug Something isn't working label Jan 2, 2022
@Ahajha Ahajha mentioned this issue Feb 4, 2024
3 tasks
@perseoGI
Copy link
Contributor

Hi there,
I was reviewing old issues and I have come across this one.
The cpython/3.9.7 version is no longer supported by Conan Center Index.

I'm closing this issue as this recipe has suffer plenty of modifications since this issue was reported.
If for some reason the problem remains nowadays, do not hesitate to reopen this issue or create a new ticket with updated information, preferably using conan v2.

Here are some logs of a successful compilation of cpython/3.9.19:

$ conan create recipes/cpython/all --version 3.9.19 --build=missing
...
Profile host:
[settings]
arch=armv8
build_type=Release
compiler=apple-clang
compiler.cppstd=gnu17
compiler.libcxx=libc++
compiler.version=15
os=Macos
...
cpython/3.9.19 (test package): Module worked as expected
cpython/3.9.19 (test package): RUN: /Users/perseo/.conan2/p/b/cpyth75a55c14cf7be/p/bin/python3.9 "/Users/perseo/sources/conan-center-index/recipes/cpython/all/test_package/test_package.py" -b "/Users/perseo/sources/conan-center-index/recipes/cpython/all/test_package/build/apple-clang-15-armv8-gnu17-release" -t ssl
testing ssl
default_context.options=2186412240

cpython/3.9.19 (test package): Module worked as expected
cpython/3.9.19 (test package): Not testing the module, because these seem not to work on apple when cpython is built as a static library
cpython/3.9.19 (test package): RUN: ./test_package
Today is Tue Sep 10 16:52:49 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants