-
Notifications
You must be signed in to change notification settings - Fork 197
Fix pytz module not found error #166
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
Conversation
|
Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please submit the signed CLA to cla@trino.io. For more information, see https://github.com/trinodb/cla. |
|
Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please submit the signed CLA to cla@trino.io. For more information, see https://github.com/trinodb/cla. |
hashhar
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd have expected that the setup.py would have ensured that pytz gets installed as a dependency?
I thought the intention of #160 is to depend on |
|
Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please submit the signed CLA to cla@trino.io. For more information, see https://github.com/trinodb/cla. |
I created an alternative PR #167 |
I sent the signed CLA. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems like the better solution to me.
However you'd still want to add an entry to "extras_require" to setup.py for experimental types support so that pytz gets installed automatically.
The reason why pytz doesn't get installed by default is because install_requires in setup.py only lists requests.
|
On second thought, the API allows people to switch between normal and python types on the fly. So ideally pytz must be a required dependency otherwise the code may fail at runtime depending on how the cursor is created. I've implemented that in #168 |
|
Alternative solution implemented in #168. |
Fixing #165 issue.