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

Cannot import name 'py_client' from 'courier.python' (unknown location) #38

Open
ChufanSuki opened this issue Apr 4, 2023 · 2 comments

Comments

@ChufanSuki
Copy link

When I tried to build launchpad following this. I got:

./run_python_tests.sh 
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/tmp/launchpad/launchpad/__init__.py", line 36, in <module>
    from launchpad.nodes.courier.node import CourierHandle
  File "/tmp/launchpad/launchpad/nodes/courier/node.py", line 21, in <module>
    import courier
  File "/tmp/launchpad/courier/__init__.py", line 26, in <module>
    from courier.python.client import Client  # pytype: disable=import-error
  File "/tmp/launchpad/courier/python/client.py", line 31, in <module>
    from courier.python import py_client
ImportError: cannot import name 'py_client' from 'courier.python' (unknown location)
@eugeneteoh
Copy link

See #30 (comment)

@youliangtan
Copy link

I faced the error of:

  File "/home/youliang/miniconda3/envs/jaxrl/lib/python3.10/site-packages/courier/python/client.py", line 30, in <module>
    from courier.python import py_client
ImportError: /home/youliang/miniconda3/envs/jaxrl/lib/python3.10/site-packages/courier/python/libserialization_cc_proto.so: undefined symbol: _ZN6google8protobuf7Message19CopyWithSourceCheckERS1_RKS1_

Uninstall the dm-launchpad[tensorflow] and pip3 install dp launchpad without tensorflow and dep checks kinda fix it for now.

pip install dm-launchpad

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

3 participants