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

tensorflow-text loading error #4

Closed
mheimschild opened this issue Jul 7, 2022 · 2 comments
Closed

tensorflow-text loading error #4

mheimschild opened this issue Jul 7, 2022 · 2 comments
Assignees

Comments

@mheimschild
Copy link

Hello @sun1638650145 !
thank you for you great guide how to build lib on M1 Apple machines!

Following your instructions I was able to build the lib but when I try to load it in my notebook it fails with error

dlopen(/Users/xxxxxxx/conda/tf/lib/python3.9/site-packages/tensorflow_text/python/ops/_regex_split_ops.dylib, 0x0006): re-export ordinal -2 in /Users/xxxxxxx/conda/tf/lib/python3.9/site-packages/tensorflow_text/python/ops/_regex_split_ops.dylib out of range for __ZN10tensorflow14kernel_factory17OpKernelRegistrar12InitInternalEPKNS_9KernelDefENSt3__117basic_string_viewIcNS5_11char_traitsIcEEEENS5_10unique_ptrINS0_15OpKernelFactoryENS5_14default_deleteISB_EEEEsymbol not found in flat namespace '__ZN10tensorflow14kernel_factory17OpKernelRegistrar12InitInternalEPKNS_9KernelDefENSt3__117basic_string_viewIcNS5_11char_traitsIcEEEENS5_10unique_ptrINS0_15OpKernelFactoryENS5_14default_deleteISB_EEEE'

python --version
Python 3.9.13

conda list | grep tensorflow
tensorflow-addons 0.17.1 pypi_0 pypi
tensorflow-deps 2.9.0 0 apple
tensorflow-estimator 2.9.0 pypi_0 pypi
tensorflow-hub 0.12.0 pypi_0 pypi
tensorflow-macos 2.9.0 pypi_0 pypi
tensorflow-metal 0.5.0 pypi_0 pypi
tensorflow-text 2.9.0 pypi_0 pypi

nm /Users/xxxxxxx/conda/tf/lib/python3.9/site-packages/tensorflow_text/python/ops/_regex_split_ops.dylib | grep "__ZN10tensorflow14kernel_factory17OpKernelRegistrar12InitInternalEPKNS_9KernelDefENSt3__117basic_string_viewIcNS5_11char_traitsIcEEEENS5_10unique_ptrINS0_15OpKernelFactoryENS5_14default_deleteISB_EEEE"
U __ZN10tensorflow14kernel_factory17OpKernelRegistrar12InitInternalEPKNS_9KernelDefENSt3__117basic_string_viewIcNS5_11char_traitsIcEEEENS5_10unique_ptrINS0_15OpKernelFactoryENS5_14default_deleteISB_EEEE
I __ZN10tensorflow14kernel_factory17OpKernelRegistrar12InitInternalEPKNS_9KernelDefENSt3__117basic_string_viewIcNS5_11char_traitsIcEEEENS5_10unique_ptrINS0_15OpKernelFactoryENS5_14default_deleteISB_EEEE (indirect for __ZN10tensorflow14kernel_factory17OpKernelRegistrar12InitInternalEPKNS_9KernelDefENSt3__117basic_string_viewIcNS5_11char_traitsIcEEEENS5_10unique_ptrINS0_15OpKernelFactoryENS5_14default_deleteISB_EEEE)

Any help would be much appreciated

@sun1638650145 sun1638650145 self-assigned this Jul 8, 2022
@sun1638650145
Copy link
Owner

sun1638650145 commented Jul 8, 2022

Hello, I did find this bug. But now seeing that this issue is widely appearing on tensorflow_text 2.9, the issues of tensorflow_text have submitted multiple similar issues. The cause of this problem does not appear to be a problem with the build step.

@sun1638650145
Copy link
Owner

sun1638650145 commented Jul 8, 2022

Now there are about 3 methods you can try:

  1. You can directly download my pre-compiled whl file.
  2. Update tensorflow_macos to 2.9.2 and recompile.
  3. Change to a version of Python, currently Python 3.8 is the most stable.

Hope these methods are of some help to you.

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