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

Fix installation on macOS. #34

Merged
merged 2 commits into from Jun 10, 2022
Merged

Fix installation on macOS. #34

merged 2 commits into from Jun 10, 2022

Conversation

csukuangfj
Copy link
Owner

To fix the following error when running

python3 -c "import optimized_transducer; print(optimized_transducer.__version__)"

on macOS:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/Users/fangjun/py38/lib/python3.8/site-packages/optimized_transducer/__init__.py", line 1, in <module>
    from .transducer_loss import TransducerLoss, transducer_loss  # noqa
  File "/Users/fangjun/py38/lib/python3.8/site-packages/optimized_transducer/transducer_loss.py", line 3, in <module>
    import _optimized_transducer
ImportError: dlopen(/Users/fangjun/py38/lib/python3.8/site-packages/_optimized_transducer.cpython-38-darwin.so, 2): Symbol not found: _THPVariableClass
  Referenced from: /Users/fangjun/py38/lib/python3.8/site-packages/_optimized_transducer.cpython-38-darwin.so
  Expected in: flat namespace
 in /Users/fangjun/py38/lib/python3.8/site-packages/_optimized_transducer.cpython-38-darwin.so

@csukuangfj csukuangfj merged commit c3b29a7 into master Jun 10, 2022
@csukuangfj csukuangfj deleted the fix-build-on-macOS branch June 10, 2022 03:23
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

Successfully merging this pull request may close these issues.

None yet

1 participant