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

error while import pyDataverse.api #7

Closed
muisawe opened this issue May 25, 2019 · 4 comments
Closed

error while import pyDataverse.api #7

muisawe opened this issue May 25, 2019 · 4 comments

Comments

@muisawe
Copy link

muisawe commented May 25, 2019

hello,
when i try to import API using this line of code
from pyDataverse.api import Api
there is some error occurred

Traceback (most recent call last): File "C:/Users/MIsawe/PycharmProjects/untitled/main.py", line 1, in <module> from pyDataverse.api import Api File "C:\Users\MIsawe\PycharmProjects\untitled\venv\lib\site-packages\pyDataverse\__init__.py", line 6, in <module> from requests.packages import urllib3 ModuleNotFoundError: No module named 'requests'

@TomMiksa
Copy link

This has nothing to do with the pyDataverse.api. You're missig modules. Add them to your environment.
https://urllib3.readthedocs.io/en/latest/

'pip install urllib3'

@skasberger
Copy link
Member

skasberger commented May 27, 2019

@moumenuisawe Thanks for your issue.

A question: How did you install pyDataverse (via pip install pyDataverse or from the GitHub repo)??

@muisawe
Copy link
Author

muisawe commented May 27, 2019

using pip

@muisawe muisawe closed this as completed May 28, 2019
@skasberger
Copy link
Member

fixed this in release 0.1.1.

djbrooke pushed a commit to djbrooke/pyDataverse that referenced this issue Feb 9, 2021
skasberger added a commit that referenced this issue Apr 7, 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

3 participants