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

Ch 10, Video 7 - Inserting the real Pypi data - where's the load_data.py file? #17

Closed
exfrog opened this issue Sep 13, 2020 · 3 comments

Comments

@exfrog
Copy link

exfrog commented Sep 13, 2020

the video starts saying we aren't going to write the load_data.py file, but it does not mention where to find it to bring it in to the project
Copying the load_data.py file from the final folder and trying to run it along with this video gives the error:

Traceback (most recent call last):
File "C:/PyWorkspace/data-driven-web-apps-with-flask/app/ch10_using_sqlachemy/starter/pypi_org/bin/load_data.py", line 16, in
from pypi_org.infrastructure.num_convert import try_int
ModuleNotFoundError: No module named 'pypi_org.infrastructure.num_convert'

is there a different load_data.py file we should use here?

@jfcorreas
Copy link

Hi, you must add the file num_convert.py to your project. You can find the file here:
https://github.com/talkpython/data-driven-web-apps-with-flask/tree/master/app/ch10_using_sqlachemy/final/pypi_org/infrastructure

@mikeckennedy
Copy link
Member

Hi @exfrog sorry for the confusion. I think I copied it in during the video but I don't recall 100% so I just added it to the starter project here. @jfcorreas Thank you for helping in the meantime!

@mikeckennedy
Copy link
Member

See commit: 5346e7c

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