crowsonkb / style_transfer

Data-parallel image stylization using Caffe.
MIT License
113 stars 14 forks source link

ImportError: cannot import name 'CommandLineInterface' #21

Closed Infinality closed 5 years ago

Infinality commented 5 years ago

Any ideas? Thanks.

$ ./style_transfer.py Traceback (most recent call last): File "./style_transfer.py", line 35, in import prompt File "/mnt/D/Work/style_transfer/prompt.py", line 7, in from prompt_toolkit import CommandLineInterface ImportError: cannot import name 'CommandLineInterface'

crowsonkb commented 5 years ago

Are you using prompt_toolkit 1.x? style_transfer doesn't work with 2.x yet.

Infinality commented 5 years ago

I was able to work around it by commenting out the reference to prompt.py.