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

sgqlc prevents usage of python 'requests' library #154

Closed
catalyst17 opened this issue Jun 2, 2021 · 3 comments
Closed

sgqlc prevents usage of python 'requests' library #154

catalyst17 opened this issue Jun 2, 2021 · 3 comments
Assignees

Comments

@catalyst17
Copy link

catalyst17 commented Jun 2, 2021

Feeling already sorry for dumping this really useful project with issues for the third day in a row, but I've confronted another problem while trying to use sgqlc along with python requests library.
The module sgqlc.endpoint.requests seems to be used instead. It's a common problem and people suggest renaming one of the modules, cause bare aliases won't help.
Have not found any discussions about that here, therefore am opening a new issue, probably some other solution can be suggested or the module renamed. Thanks!

UPD. Tried to use urllib3 instead, also not possible, so the problem might be bigger than just module name collision:
image

@barbieri
Copy link
Member

barbieri commented Jun 2, 2021

no problem to send issues, but I need more context. This screenshot doesn't tell me much :-)

As for requests module, I'm not an user, but the guys that contributed it said it worked well, they were using requests elsewhere.

Where are you placing this file? What are you importing?

@barbieri barbieri self-assigned this Jun 2, 2021
@catalyst17
Copy link
Author

catalyst17 commented Jun 3, 2021

Sorry for the long wait, I was able to fix the problem by uninstalling urllib3 and installing it back. Cannot say for sure now, if it's a problem of your library or my own setup, but somehow a few libraries that are being used by sgqlc had empty __init__.py files before reinstallation. So the thing is actually narrowing to disability of using these libraries without manual reinstallation. I will try to reproduce it with basic example now.

@catalyst17
Copy link
Author

Seems to be my own setup problem. Closing the issue :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants