Error on Python 3.7.3: No module named 'oitnb._oitnb_lib2to3'
Brought to you by:
anthon
Running on debian buster with the latest updates, also on my WSL debian instance and on my windows machine:
$ oitnb
Traceback (most recent call last):
File "/usr/local/bin/oitnb", line 6, in <module>
from oitnb.oitnb import main
File "/usr/local/lib/python3.7/dist-packages/oitnb/oitnb.py", line 51, in <module>
from oitnb._oitnb_lib2to3.pytree import Node, Leaf, type_repr
ModuleNotFoundError: No module named 'oitnb._oitnb_lib2to3'
$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 10 (buster)
Release: 10
Codename: buster
$ python3 --version
Python 3.7.3
Reverting to 0.1.11 works for me in all cases (in this case the WSL instance):
$ pip3 install "oitnb<0.2"
Collecting oitnb<0.2
Using cached oitnb-0.1.11-py37-none-any.whl (80 kB)
Requirement already satisfied: appdirs in ./.virtualenvs/django-clinic/lib/python3.7/site-packages (from oitnb<0.2) (1.4.4)
Requirement already satisfied: click>=6.5 in ./.virtualenvs/django-clinic/lib/python3.7/site-packages (from oitnb<0.2) (7.1.2)
Requirement already satisfied: attrs>=17.4.0 in ./.virtualenvs/django-clinic/lib/python3.7/site-packages (from oitnb<0.2) (20.1.0)
Installing collected packages: oitnb
Attempting uninstall: oitnb
Found existing installation: oitnb 0.2.1
Uninstalling oitnb-0.2.1:
Successfully uninstalled oitnb-0.2.1
Successfully installed oitnb-0.1.11
$ oitnb
No paths given. Nothing to do.
Just to add, I love the package and use it in all my projects -- keep up the good work!
Thanks for reporting. I just pushed out a new version that should have this fixed. Can you let me know if that works for you, or close this issue if it does?
This appears to be working now - thank-you for your work on this project!