Skip to content

ModuleNotFoundError: No module named 'imp' #3

@ndarilek

Description

@ndarilek

Not a huge Python user, so maybe this isn't the correct way to launch this, but I'm getting the below error:

~\src\launchtype> python src/main.py                        02/27/24 11:01:17 AM
Traceback (most recent call last):                                              
  File "C:\Users\nolan\src\launchtype\src\main.py", line 3, in <module>         
    from managers.ui_manager import UIManager                                   
  File "C:\Users\nolan\src\launchtype\src\managers\ui_manager.py", line 6, in <module>                                                                          
    from services.speech_service import SpeechService                           
  File "C:\Users\nolan\src\launchtype\src\services\speech_service.py", line 1, in <module>                                                                      
    import accessible_output2.outputs.auto                                      
  File "C:\Users\nolan\AppData\Local\Programs\Python\Python312\Lib\site-packages\accessible_output2\__init__.py", line 5, in <module>                           
    from platform_utils import paths                                            
  File "C:\Users\nolan\AppData\Local\Programs\Python\Python312\Lib\site-packages\platform_utils\paths.py", line 20, in <module>                                 
    is_pyinstaller = is_frozen() and getattr(sys, '_MEIPASS', False)            
                     ^^^^^^^^^^^                                                
  File "C:\Users\nolan\AppData\Local\Programs\Python\Python312\Lib\site-packages\platform_utils\paths.py", line 11, in is_frozen                                
    import imp                                                                  
ModuleNotFoundError: No module named 'imp'                                      

Ran pip install -r requirements.txt before running that and it seemed to complete successfully. Is there another step I'm missing?

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions