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

Missing symbol when loading ion: __ion_writer_add_annotation_sid_helper #260

Open
mathstream opened this issue Apr 7, 2023 · 3 comments
Labels

Comments

@mathstream
Copy link

Using Python 3.9.10 on MacOS (ARM), and wanting to write a client program for QLDB.

  1. Installed ion, using pip install, got version 0.10.0

  2. Started python and tried importing ion:

import amazon.ion.simpleion as ion
Traceback (most recent call last):
File "", line 1, in
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/amazon/ion/simpleion.py", line 38, in
import amazon.ion.ionc as ionc
ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/amazon/ion/ionc.cpython-39-darwin.so, 0x0002): symbol not found in flat namespace '__ion_writer_add_annotation_sid_helper'

  1. I tried this with version 0.9.3 and got the same error. When I backed up to version 0.8.0, this problem didn't occur and I was able to access QLDB, using Python, from my laptop.

Thanks,
Alan

@mathstream mathstream added the bug label Apr 7, 2023
@rmarrowstone
Copy link
Contributor

Can you clarify that you are or are not using some form of virtual environment? If you had the commands that you used to install and run that would be helpful as well, including using which and/or --version information.

Thanks!!!

@mathstream
Copy link
Author

Not using a virtual environment, installation was "pip3 install amazon.ion" I'm currently running 0.8.0, as 0.10.0 and 0.9.3 didn't work. Running macOS 13.0 on an M1 Pro laptop (ARM architecture), python 3.9 installed at /Library/Frameworks/Python.framework/Versions/3.9/bin/python3

Running it:

  • typed "python3" at the command line, I have version 3.9.10
  • typed "import amazon.ion" at the command line, the error messages are in my original post.

@rmarrowstone
Copy link
Contributor

We have seen issues with M1 macs and "emulation mode" specifically:

if somehow pip gets run as arm, but python gets run as x86_64, you get module not found..
Beyond that, it's difficult for me to help as I don't have an M1 Mac.

I do think that a more flexible fallback to using the pure python implementation is needed for this case, will get out a PR for that shortly.

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

No branches or pull requests

2 participants