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

a problem with Python 3 #252

Open
tongwoojun opened this issue Mar 5, 2021 · 1 comment
Open

a problem with Python 3 #252

tongwoojun opened this issue Mar 5, 2021 · 1 comment

Comments

@tongwoojun
Copy link

I'm having a problem with Python 3

`Traceback (most recent call last):
File "/usr/local/Cellar/[email protected]/3.9.2_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pydruid/client.py", line 550, in _post
req = urllib.request.Request(url, querystr, headers)
AttributeError: module 'urllib' has no attribute 'request'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/Users/a7/Company/monitor/AI-alarm/data/druid.py", line 25, in
ts = query.groupby(
File "/usr/local/Cellar/[email protected]/3.9.2_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pydruid/client.py", line 301, in groupby
return self._post(query)
File "/usr/local/Cellar/[email protected]/3.9.2_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pydruid/client.py", line 554, in _post
except urllib.error.HTTPError as e:
AttributeError: module 'urllib' has no attribute 'error'
`

in the client.py add "import urllib.request" the Issue fixed

@Varad2305
Copy link

I'm facing the same error

era added a commit to era/pydruid that referenced this issue Oct 2, 2021
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