Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Watson doesn't start on Win10 + Python 3.9 x64 #413

Closed
julhe opened this issue Mar 18, 2021 · 2 comments
Closed

Watson doesn't start on Win10 + Python 3.9 x64 #413

julhe opened this issue Mar 18, 2021 · 2 comments

Comments

@julhe
Copy link

julhe commented Mar 18, 2021

I installed watson via pip3 install td-watson
However, uppon start with watson start TestProject I get this:

Traceback (most recent call last):
  File "c:\users\julian\appdata\local\programs\python\python39\lib\runpy.py", line 197, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "c:\users\julian\appdata\local\programs\python\python39\lib\runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "C:\Users\Julian\AppData\Local\Programs\Python\Python39\Scripts\watson.exe\__main__.py", line 4, in <module>
  File "c:\users\julian\appdata\local\programs\python\python39\lib\site-packages\watson\__main__.py", line 2, in <module>
    from watson import cli
  File "c:\users\julian\appdata\local\programs\python\python39\lib\site-packages\watson\cli.py", line 441, in <module>
    _SHORTCUT_OPTIONS_VALUES = {
  File "c:\users\julian\appdata\local\programs\python\python39\lib\site-packages\watson\cli.py", line 442, in <dictcomp>
    k: get_start_time_for_period(k) for k in _SHORTCUT_OPTIONS
  File "c:\users\julian\appdata\local\programs\python\python39\lib\site-packages\watson\utils.py", line 193, in get_start_time_for_period
    start_time = get_last_full_moon(now)
  File "c:\users\julian\appdata\local\programs\python\python39\lib\site-packages\watson\fullmoon.py", line 226, in get_last_full_moon
    idx = bisect.bisect_right(fullmoons, now)
TypeError: '<' not supported between instances of 'method' and 'int' 

Happens with both Powershell and Git Bash.
Note that this also happens if I just do watson, so it seems not related to any argument. I did a reinstall of Python + restart, but that didnt help.

Any Ideas? Feels like I'm missing something important...

@jmaupetit
Copy link
Contributor

This is an issue due to the latest arrow release. It has been fixed in #408 but not released yet!

Closing as duplicate of #410

@jmaupetit
Copy link
Contributor

📢 The new 2.0.0 release including this fix is out! https://pypi.org/project/td-watson/2.0.0/ 🔥

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants