Skip to content
This repository has been archived by the owner on Jun 15, 2024. It is now read-only.

ImportError (Python3.9, protobuf 21.5) #72

Open
BarnabasSzabolcs opened this issue Aug 18, 2022 · 1 comment
Open

ImportError (Python3.9, protobuf 21.5) #72

BarnabasSzabolcs opened this issue Aug 18, 2022 · 1 comment

Comments

@BarnabasSzabolcs
Copy link

BarnabasSzabolcs commented Aug 18, 2022

Installed gcld3 using pip, and it worked until protobuf got updated in homebrew.
Now, import gcld3 does not work.
Basically, gcld3's library tries to find libprotobuf.30.dylib but I have libprotobuf.32.dylib (and renaming it to libprotobuf.30.dylib does not work)
What would be a solution for this problem?

Error Message:

Traceback (most recent call last):
  File "/usr/local/Cellar/[email protected]/3.9.13_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/code.py", line 90, in runcode
    exec(code, self.locals)
  File "<input>", line 1, in <module>
  File "/Applications/PyCharm.app/Contents/plugins/python/helpers/pydev/_pydev_bundle/pydev_import_hook.py", line 21, in do_import
    module = self._system_import(name, *args, **kwargs)
  File "/Volumes/MacintoshHDD/Programming/PycharmProjects/_venvs/rhymedict-crawlers/lib/python3.9/site-packages/gcld3/__init__.py", line 1, in <module>
    from .pybind_ext import *
  File "/Applications/PyCharm.app/Contents/plugins/python/helpers/pydev/_pydev_bundle/pydev_import_hook.py", line 21, in do_import
    module = self._system_import(name, *args, **kwargs)
ImportError: dlopen(/Volumes/MacintoshHDD/Programming/PycharmProjects/_venvs/rhymedict-crawlers/lib/python3.9/site-packages/gcld3/pybind_ext.cpython-39-darwin.so, 2): Library not loaded: /usr/local/opt/protobuf/lib/libprotobuf.30.dylib
  Referenced from: /Volumes/MacintoshHDD/Programming/PycharmProjects/_venvs/rhymedict-crawlers/lib/python3.9/site-packages/gcld3/pybind_ext.cpython-39-darwin.so
  Reason: image not found
@vkmrishad
Copy link

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

No branches or pull requests

2 participants