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

can't install ludwig due to fastapi #510

Closed
Kantshun opened this issue Sep 2, 2019 · 8 comments
Closed

can't install ludwig due to fastapi #510

Kantshun opened this issue Sep 2, 2019 · 8 comments
Labels
waiting for answer Further information is requested

Comments

@Kantshun
Copy link

Kantshun commented Sep 2, 2019

I encounter error below while installing ludwig through terminal.
error: pydantic 0.30 is installed but pydantic<=0.32.2,>=0.32.2 is required by {'fastapi'}

can I use pydantic 0.32 instead of 0.30?

os: win10 64x86
cpu: i7

@simonefrancia
Copy link

same to me!
os: macOS
cpu: i7

@w4nderlust
Copy link
Collaborator

Can't really understand the error, it looks like <=0.32.2 should batch with 0.30.
Try to install fastapi==0.33.0 beforehand, in my venv it works with that and pydantic 0.30.

@w4nderlust w4nderlust added the waiting for answer Further information is requested label Sep 3, 2019
@simonefrancia
Copy link

This resolved problem for pydantic but an other error occurred.
error: setuptools 39.0.1 is installed but setuptools>=41.0.0 is required by {'tensorboard'}
but I installed setuptools>=41.0.0 before installing ludwig.

@simonefrancia
Copy link

simonefrancia commented Sep 3, 2019

Ok, this command python3.6 -m pip install setuptools>=41.0.0 fastapi==0.33.0 tensorboard beforehand, worked for me.

@Kantshun
Copy link
Author

Kantshun commented Sep 3, 2019

Can't really understand the error, it looks like <=0.32.2 should batch with 0.30.
Try to install fastapi==0.33.0 beforehand, in my venv it works with that and pydantic 0.30.

fastapi require pydantic 0.32.2, but in ludwig's setup.py file, it said "pydantic==0.30".
I simply modify the setup.py manually, change "pydantic==0.30" to "pydantic==0.32.2", then I can install ludwig through terminal successfully. hopefully there wouldn't has any error occur in my later usage.

@w4nderlust
Copy link
Collaborator

I will try to remove the ==0.30.0 requirement, it was there because that version was required by another dependency.

@ajaypr55
Copy link

ajaypr55 commented Sep 3, 2019

change requirement.txt,
change version to pydantic==0.32.2
and change version setup.py file too,
'pydantic==0.32.2',

then works fine.

@w4nderlust
Copy link
Collaborator

Fixed the issue, installing from master with pip install git+http://github.com/uber/ludwig.git will not require pydantic==0.30.0 anymore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
waiting for answer Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants