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

Import problem in Google Colab #1169

Closed
konstantinklemmer opened this issue Apr 14, 2020 · 7 comments
Closed

Import problem in Google Colab #1169

konstantinklemmer opened this issue Apr 14, 2020 · 7 comments
Assignees
Projects

Comments

@konstantinklemmer
Copy link

Currently, there is an issue with importing pysal into a Google Colab notebook.

Since pysal is not one of the standard packages for Colab, it needs to be installed using !pip install pysal in the notebook. The installation works fine, but once import pysal is called, the following error comes up

ContextualVersionConflict: (python-dateutil 2.8.1 (/usr/local/lib/python3.6/dist-packages), Requirement.parse('python-dateutil<=2.8.0'), {'quilt3'})

So apparently, the python-dateutil package needs to be downgraded to version 2.8.0, which can be done calling !pip install -U python-dateutil==2.8.0 at the very beginning of the notebook, however this is still an annoying issue that I wanted to make you aware of!

@ljwolf
Copy link
Member

ljwolf commented Apr 14, 2020

@knaaptime this looks like an issue with tobler/quilt dependency?

@knaaptime
Copy link
Member

Yeah we can remove that dep. on my to do list for this week

@konstantinklemmer
Copy link
Author

Thanks for the quick replies, awesome guys!

@knaaptime
Copy link
Member

tobler 0.3.0 removes the dateutil dependency and is live on pip

@knaaptime
Copy link
Member

unfortunately, we still have that hardcoded in this pysal release, but we'll make sure it's removed for the next

@sjsrey sjsrey added this to In progress in pysal 2.3.0 Jul 3, 2020
@sjsrey sjsrey added this to To do in pysal 2.4.0 via automation Aug 2, 2020
@sjsrey sjsrey removed this from In progress in pysal 2.3.0 Aug 2, 2020
@sjsrey
Copy link
Member

sjsrey commented Aug 2, 2020

@knaaptime i missed this in the 2.3.0 release. I'm assuming we can remove the pinning now?

@knaaptime
Copy link
Member

yeah we can remove it

@sjsrey sjsrey closed this as completed Jan 20, 2021
pysal 2.4.0 automation moved this from To do to Done Jan 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
pysal 2.4.0
  
Done
Development

No branches or pull requests

4 participants