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 Mordecai.GeoParser() run on google colab #108

Open
saydeh1 opened this issue Apr 29, 2022 · 11 comments
Open

Can Mordecai.GeoParser() run on google colab #108

saydeh1 opened this issue Apr 29, 2022 · 11 comments

Comments

@saydeh1
Copy link

saydeh1 commented Apr 29, 2022

Hi,
I am having issues with running Mordecai Geoparser() on my windows machine and am wondering if it could run in google colab environment?
Thanks,
Saydeh

@rjadr
Copy link

rjadr commented Dec 10, 2022

I got it running on Google Colab, check this notebook!

@saydeh1
Copy link
Author

saydeh1 commented Dec 15, 2022

Thank you

@nafis-saad
Copy link

I am facing problem to in the Geoparser section. While running the geo = Geoparser() in collab, I am having an attribute Error: module 'collections' has no attribute 'Mapping'. Can anyone please solve the issue?

@rjadr
Copy link

rjadr commented Jun 13, 2023

@nafis-saad I fixed the issue in the notebook

@nafis-saad
Copy link

@rjadr Thanks a lot! Its Working now. However, I didn't understand why you used os.getpid() to terminate the process forcefully. I got runtime error on the getpid method and consequently I had to avoid it to execute the code.

@rjadr
Copy link

rjadr commented Jun 14, 2023

@nafis-saad that was just to force the runtime to restart, but I'll remove it.

@nafis-saad
Copy link

The collab notebook is not again working, I think this part is not working (!wget https://andrewhalterman.com/files/geonames_index.tar.gz --output-file=wget_log.txt
!tar -xzf geonames_index.tar.gz). Can you solve this? Thanks in advance

@rjadr
Copy link

rjadr commented Oct 27, 2023

Looks like the download link is broken, try replacing it with https://s3.amazonaws.com/ahalterman-geo/geonames_index.tar.gz

@nafis-saad
Copy link

nafis-saad commented Oct 27, 2023 via email

@nafis-saad
Copy link

Looks like the download link is broken, try replacing it with https://s3.amazonaws.com/ahalterman-geo/geonames_index.tar.gz

Its not working, when i run the the geoparse it shows (tuple index out of range)... Can you fix the error and share the updated collab notebook.

@rjadr
Copy link

rjadr commented Oct 29, 2023

@nafis-saad I updated the original notebook, and made one for mordecai3 as well.

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