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

module 'jsonrpc' has no attribute 'JsonRpc20' #7

Open
slobLX opened this issue Aug 13, 2019 · 2 comments
Open

module 'jsonrpc' has no attribute 'JsonRpc20' #7

slobLX opened this issue Aug 13, 2019 · 2 comments

Comments

@slobLX
Copy link

slobLX commented Aug 13, 2019

When I run 'python3 sr11_onmtgcn_input.py -i ../data/srtask11/SR_release1.0/ -t deep -p test', the error occurs:
Traceback (most recent call last):
File "sr11_onmtgcn_input.py", line 19, in
parseService = CoreNLPService()
File "../utils/CoreNLPService.py", line 15, in init
self.server = self.get_server()
File "../utils/CoreNLPService.py", line 18, in get_server
version = jsonrpc.JsonRpc20()
AttributeError: module 'jsonrpc' has no attribute 'JsonRpc20'

I am using python3.6

@Celeste-cj
Copy link

You could modify utils/init.py like this:

from utils.jsonrpc import * __all__ = ["JsonRpc20"]

@HZQ950419
Copy link

Have you fixed it? I have the same problem and I think this is because jsonrpc.py is python2 version.

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