Module paths in data/scrape/lib/codes.py
kylebgorman opened this issue · 3 comments
From wikipron/data/scrape, with an editable installation, I am running ./scrape.py
. The following error is raised:
ModuleNotFoundError: No module named 'data.scrape.lib'
I understand why this is broken (data
will not be a package at this location) but I also don't understand why this was ever supposed to work, so I am not ready to fix it yet.
(Another small blocker for #485.)
I wasn't able to reproduce the ModuleNotFoundError
. After having cd
-ed down to data/scrape/
, I ran ./scrape.py
like you did, and I saw the scraping process got kicked off with logs like config.py INFO: 10-Mar-23 21:24:12 - Language: 'Afar'
starting to show up in the terminal as expected. My Python environment happens to be running 3.10, and also has WikiPron installed as an editable package. What did we miss?
I replicated this on a second computer. Then I completed ripped out my Python installation and started from a fresh 3.10 install and it went away. No clue what's going on, going to close this though. Sorry to waste your time.