NaomiProject / Naomi

The Naomi Project is an open source, technology agnostic platform for developing always-on, voice-controlled applications!
https://projectnaomi.com/
MIT License
242 stars 47 forks source link

Error "'FrozenImporter' has no attribute 'get_filename'" when running unit tests #395

Closed aaronchantrill closed 4 months ago

aaronchantrill commented 5 months ago

Description

When running unit tests via $ python -m unittest discover I get the error message 'FrozenImporter' has no attribute 'get_filename'. This is because pkgutil.get_loader() can return different types of loaders.

Expected Behavior

The unit test should pass.

Actual Behavior

I get the error message 'FrozenImporter' has no attribute 'get_filename'.