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

zerorpc 0.6.3 AttributeError: 'module' object has no attribute 'Server' #220

Open
Paradise2010 opened this issue Jul 8, 2019 · 1 comment

Comments

@Paradise2010
Copy link

I can import zerorpc, and confirm Server class was in zerorpc.core module. but the interpreter always report "AttributeError: 'module' object has no attribute 'Server'"

  • Test platform:

windows 10,python 2.7.15
Traceback (most recent call last):
File "e:/Tool_development/python_resource/py27virenv/testAutomation/zerorpcproject/zerorpc.py", line 7, in
import zerorpc
File "e:\Tool_development\python_resource\py27virenv\testAutomation\zerorpcproject\zerorpc.py", line 8, in
s = zerorpc. Server()
AttributeError: 'module' object has no attribute 'Server'

  • Test Script:
    class HelloRPC(object):
    def hello(self, name):
    return "Hello, %s" % name

import zerorpc
test = zerorpc.Server(HelloRPC())
s = zerorpc.Server()
s.bind("tcp://0.0.0.0:4242")
s.run()

  • pip list:
    DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
    Package Version

cffi 1.12.3
future 0.17.1
gevent 1.4.0
greenlet 0.4.15
msgpack 0.6.1
pip 19.1.1
pycparser 2.19
pyzmq 18.0.2
setuptools 41.0.1
wheel 0.33.4
zerorpc 0.6.3

@bombela
Copy link
Member

bombela commented Apr 6, 2020 via email

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