question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

PyPI OSX 'Symbol not found' for jaxlib 0.1.31

See original GitHub issue

Hi,

I am installing the package (version 0.1.31) from Pypi (on OSX Yosemite) by doing:

pip install --upgrade jax jaxlib

After that, I try to import the package:

import jax.numpy as np

And get the following error message (seemingly, because of the extension ‘xla_extension.so’ that can’t be imported):

Traceback (most recent call last):

  File "<ipython-input-1-122f308a8eba>", line 1, in <module>
    import jax.numpy as np

  File "/Users/moudiki/anaconda3/lib/python3.7/site-packages/jax/__init__.py", line 19, in <module>
    from jax.api import *

  File "/Users/moudiki/anaconda3/lib/python3.7/site-packages/jax/api.py", line 45, in <module>
    from . import ad_util

  File "/Users/moudiki/anaconda3/lib/python3.7/site-packages/jax/ad_util.py", line 20, in <module>
    from .tree_util import register_pytree_node

  File "/Users/moudiki/anaconda3/lib/python3.7/site-packages/jax/tree_util.py", line 44, in <module>
    from .lib import pytree

  File "/Users/moudiki/anaconda3/lib/python3.7/site-packages/jax/lib/__init__.py", line 40, in <module>
    from jaxlib import xla_client

  File "/Users/moudiki/anaconda3/lib/python3.7/site-packages/jaxlib/xla_client.py", line 37, in <module>
    from . import xla_extension as _xla

ImportError: dlopen(/Users/moudiki/anaconda3/lib/python3.7/site-packages/jaxlib/xla_extension.so, 2): Symbol not found: __ZNSt3__118shared_timed_mutex11lock_sharedEv
  Referenced from: /Users/moudiki/anaconda3/lib/python3.7/site-packages/jaxlib/xla_extension.so
  Expected in: /usr/lib/libc++.1.dylib
 in /Users/moudiki/anaconda3/lib/python3.7/site-packages/jaxlib/xla_extension.so

Thanks

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
hawkinspcommented, Oct 15, 2019

I added a comment to the installation instructions in the README specifying that the minimum Mac OS version is 10.12.

0reactions
thierrymoudikicommented, Oct 15, 2019

Oh… Ok, I see.

Upgrading the OS might be the best solution, indeed.

Thanks for your response!

Read more comments on GitHub >

github_iconTop Results From Across the Web

jaxlib - PyPI
jaxlib is the support library for JAX. While JAX itself is a pure Python package, jaxlib contains the binary (C/C++) parts of the...
Read more >
Segmentation fault 11 and other errors when trying to use JAX ...
After conda failed, I tried manually retrieving the latest versions using python -m pip install jax==0.3.25 jaxlib==0.3.25 (in the base conda ...
Read more >
Building from source - JAX documentation
Building JAX involves two steps: Building or installing jaxlib , the C++ support library for jax . Installing the jax Python package.
Read more >
Cannot jaxlib, error in rasa-x 0.23.5 installing
I am getting the following error: ERROR: Could not find a version that satisfies the requirement jaxlib>=0.1.51 (from dopamin…
Read more >
jaxlib - Python Package Health Analysis - Snyk
No known security issues ... The PyPI package jaxlib receives a total of 131,046 downloads a week. ... Looks like jaxlib is missing...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found