ovh / prescience-client

Desktop python client for using OVH Prescience service
Other
13 stars 1 forks source link

Conflict between jupyterLab and prescience_client #7

Closed cbataille closed 5 years ago

cbataille commented 5 years ago

It seems prescience_client and jupyter lab isn't compatible at the moment.

Jupyter Lab must work with prompt_toolkit-2.0.9 prescience_client work actually with prompt-toolkit-1.0.14

the stackTrace is next :

---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-1-7c585a73c0ff> in <module>
----> 1 import prescience_client

/mnt/c/Users/cbataill/Documents/GIT/prescience-client/prescience_client/__init__.py in <module>
      6 
      7 from prescience_client.client.prescience_client import PrescienceClient
----> 8 from prescience_client.commands.root_command import RootCommand
      9 from prescience_client.config.prescience_config import PrescienceConfig
     10 from prescience_client.exception.prescience_client_exception import PrescienceException

/mnt/c/Users/cbataill/Documents/GIT/prescience-client/prescience_client/commands/__init__.py in <module>
      1 from typing import Callable
----> 2 from PyInquirer import prompt
      3 
      4 
      5 def get_args_or_prompt_list(

/usr/local/lib/python3.6/dist-packages/PyInquirer/__init__.py in <module>
      4 import os
      5 
----> 6 from prompt_toolkit.token import Token
      7 from prompt_toolkit.styles import style_from_dict
      8 from prompt_toolkit.validation import Validator, ValidationError

ImportError: cannot import name 'Token'
mael-le-gal commented 5 years ago

I just pushed a new PR that should solve this issue. Just let me now if you have any problems.