Skip to content

ModuleNotFoundError: No module named 'prompt_toolkit.interface' #31

@HankTwZhong

Description

@HankTwZhong

I got this error when I want to use this library to debug my script.

[ ERROR ] Error in file 'C:\Users\XXX\Desktop\XXX\test_automation\'Search.robot': Importing test library 'DebugLibrary' failed: ModuleNotFoundError: No module named 'prompt_toolkit.interface'
Traceback (most recent call last):
  File "C:\Users\XXX\AppData\Local\Programs\Python\Python36-32\lib\site-packages\DebugLibrary.py", line 22, in <module>
    from prompt_toolkit.interface import AbortAction
PYTHONPATH:
  C:\Users\XXX\Desktop\XXX\test_automation
  C:\Users\XXX\AppData\Local\Programs\Python\Python36-32\python36.zip
  C:\Users\XXX\AppData\Local\Programs\Python\Python36-32\DLLs
  C:\Users\XXX\AppData\Local\Programs\Python\Python36-32\lib
  C:\Users\XXX\AppData\Local\Programs\Python\Python36-32
  C:\Users\XXX\AppData\Roaming\Python\Python36\site-packages
  C:\Users\XXX\AppData\Local\Programs\Python\Python36-32\lib\site-packages

After searching a while, I found out this error occurred because the version of prompt_toolkit is too new (2.0.3).
So I think it should specifiy the version at 1.0.15, or refine something against the new version. :-)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions