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

Error when attempting to label new data after install on python 3.12 #361

Open
sunnyisle1 opened this issue Jan 10, 2024 · 0 comments
Open

Comments

@sunnyisle1
Copy link

sunnyisle1 commented Jan 10, 2024

Logging issue in this repo instead of parserator since labeling and training are documented here.

Installed a development version of usaddress on python 3.12.
An error is thrown when running the "parserator label ..." command, (No problems labeling & training with prior versions of python)

File "...\Lib\site-packages\parserator\training.py", line 11, in
from imp import reload
ModuleNotFoundError: No module named 'imp'

According to python docs, version 3.12 has replaced the 'imp' module with 'importlib'.
But looking at the training.py file here: https://github.com/datamade/parserator/blob/master/parserator/training.py
it's clear the 'reload' function isn't used anywhere in that code.
I commented out the line in my local copy of training.py and was able to label and train successfully.

Been using this library for a couple years now and love it.

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

1 participant