Menu

#2 Error on Python 3.7.3: No module named 'oitnb._oitnb_lib2to3'

closed
None
2020-09-06
2020-09-06
Anthony
No

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.

Discussion

  • Anthony

    Anthony - 2020-09-06

    Just to add, I love the package and use it in all my projects -- keep up the good work!

     
    👍
    1
  • Anthon van der Neut

    • status: new --> resolved
     
  • Anthon van der Neut

    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?

     
  • Anthony

    Anthony - 2020-09-06

    This appears to be working now - thank-you for your work on this project!

     
  • Anthon van der Neut

    • status: resolved --> closed
     

Log in to post a comment.