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

TypeError: function takes exactly 0 arguments (1 given) #81

Open
RFHzhj opened this issue Jul 6, 2020 · 0 comments
Open

TypeError: function takes exactly 0 arguments (1 given) #81

RFHzhj opened this issue Jul 6, 2020 · 0 comments

Comments

@RFHzhj
Copy link

RFHzhj commented Jul 6, 2020

在Windows本机(python3.6)上运行么得问题,在Ubuntu服务器(python3.7)上报如下错误:
Traceback (most recent call last): File "lan_det.py", line 9, in <module> print(lan_det(text)) File "lan_det.py", line 6, in lan_det return langid.classify(text) File "/home/env/rfh_01/lib/python3.7/site-packages/langid-1.1.6-py3.7.egg/langid/langid.py", line 105, in classify load_model() File "/home/env/rfh_01/lib/python3.7/site-packages/langid-1.1.6-py3.7.egg/langid/langid.py", line 164, in load_model identifier = LanguageIdentifier.from_modelstring(model) File "/home/env/rfh_01/lib/python3.7/site-packages/langid-1.1.6-py3.7.egg/langid/langid.py", line 176, in from_modelstring z = bz2.decompress(b) File "/usr/local/lib/python3.7/bz2.py", line 346, in decompress res = decomp.decompress(data) TypeError: function takes exactly 0 arguments (1 given)
求大佬们指点

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

1 participant