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

pyrfa only works if Python was built with --enable-shared #56

Open
f4t opened this issue Feb 27, 2021 · 1 comment
Open

pyrfa only works if Python was built with --enable-shared #56

f4t opened this issue Feb 27, 2021 · 1 comment

Comments

@f4t
Copy link

f4t commented Feb 27, 2021

Hi,

Our Python package is built without --enable-shared flag and therefore doesn't produce the libpython3.6m.so.1.0 shared library.

Importing PyRFA gives:

(venv) [vagrant@centos7-builder ~]$ python
Python 3.6.13 (default, Feb 27 2021, 09:33:34)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-44)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import pyrfa
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/vagrant/venv/lib/python3.6/site-packages/pyrfa/__init__.py", line 7, in <module>
    from pyrfa.pyrfa import *
ImportError: libpython3.6m.so.1.0: cannot open shared object file: No such file or directory
>>>

Can anyone suggest a way around this ?

@wiwat-tharateeraparb
Copy link
Contributor

Try this:

$ scl enable rh-python36 bash

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants