[Python] Where can I get the Python 2to3 library on Buildroot

Discussão em 'Python' iniciado por Stack, Abril 22, 2025.

  1. Stack

    Stack Membro Participativo

    I get the following error when importing gmusicapi in Python 2.7 on a Buildroot Linux system:

    >>> import gmusicapi
    Traceback (most recent call last):
    File "<stdin>", line 1, in <module>
    File "gmusicapi/__init__.py", line 4, in <module>
    from gmusicapi.clients import Webclient, Musicmanager, Mobileclient
    File "gmusicapi/clients/__init__.py", line 4, in <module>
    from gmusicapi.clients.webclient import Webclient
    File "gmusicapi/clients/webclient.py", line 5, in <module>
    from past.builtins import basestring
    File "past/__init__.py", line 88, in <module>
    from past.translation import install_hooks as autotranslate
    File "past/translation/__init__.py", line 41, in <module>
    from lib2to3.pgen2.parse import ParseError
    ImportError: No module named lib2to3.pgen2.parse


    Python can't find lib2to3. Neither can I ;-). Is there anywhere I can download this library? I'm using Buildroot, so I can't simply do pip installs.

    This is not a duplicate of: How to use/install python 2to3?

    Continue reading...

Compartilhe esta Página