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

ImportError: No module named lib2to3.pgen2.parse #4087

Closed
Sevyx opened this issue Apr 23, 2018 · 7 comments
Closed

ImportError: No module named lib2to3.pgen2.parse #4087

Sevyx opened this issue Apr 23, 2018 · 7 comments
Labels

Comments

@Sevyx
Copy link

Sevyx commented Apr 23, 2018

Branch/Commit: Master
OS: armv5tel - python 2.7.14
What you did: First had a different error then decided to update it with the following command:

git remote set-url origin https://github.com/SickRage/SickRage.git
git fetch origin
git checkout master
git branch -u origin/master
git reset --hard origin/master
git pull

Even tried python 3.5 but didnt fix it either so switch back to python 2.7.14

What happened: Cant start up pymedusa after the update 2 days ago. Tried trouble shooting myself but gave up since my knowledge of python is limited.

What you expected: a working pymedusa

[/share/MD0_DATA/.qpkg/SickBeard-TVRage] # sh sickbeard-tvrage.sh start
armv5tel
SickBeard-TVRage prestartup checks...
 Checking for git...  Found!
Looking for /usr/bin/python2.7
Looking for /usr/local/bin/python2.7
Looking for /opt/bin/python2.7
Looking for /Apps/opt/bin/python2.7
Looking for /opt/QPython2/bin/python2.7
Found Python Version 2.7.14 at /opt/bin/python2.7
Updating SickBeard-TVRage
HEAD is now at a760263 Update translations (build 9390) [skip ci]
Already up-to-date.
Starting SickBeard-TVRage
Traceback (most recent call last):
  File "SickBeard.py", line 548, in <module>
    SickRage().start()
  File "SickBeard.py", line 250, in start
    sickbeard.initialize(consoleLogging=self.console_logging)
  File "/share/MD0_DATA/.qpkg/SickBeard-TVRage/SickBeard-TVRage/sickbeard/__init__.py", line 1316, in initialize
    if x]
ValueError: invalid literal for int() with base 10: '[]'
@sharkykh
Copy link
Contributor

You changed your repo to SickRage.
Do this: https://github.com/pymedusa/Medusa/wiki/FAQ's-and-Fixes#update-problems-try-this

@Sevyx
Copy link
Author

Sevyx commented Apr 23, 2018

[/share/MD0_DATA/.qpkg/SickBeard-TVRage] # sh sickbeard-tvrage.sh start
armv5tel
SickBeard-TVRage prestartup checks...
 Checking for git...  Found!
Looking for /usr/bin/python2.7
Looking for /usr/local/bin/python2.7
Looking for /opt/bin/python2.7
Looking for /Apps/opt/bin/python2.7
Looking for /opt/QPython2/bin/python2.7
Found Python Version 2.7.14 at /opt/bin/python2.7
Updating SickBeard-TVRage
HEAD is now at 77b2091 Merge pull request #4064 from pymedusa/develop
Already up-to-date.
Starting SickBeard-TVRage
Traceback (most recent call last):
  File "SickBeard.py", line 6, in <module>
    from medusa.__main__ import main
  File "/share/MD0_DATA/.qpkg/SickBeard-TVRage/SickBeard-TVRage/medusa/__main__.py", line 88, in <module>
    from medusa.server.core import AppWebServer
  File "/share/MD0_DATA/.qpkg/SickBeard-TVRage/SickBeard-TVRage/medusa/server/core.py", line 17, in <module>
    from medusa.server.api.v1.core import ApiHandler
  File "/share/MD0_DATA/.qpkg/SickBeard-TVRage/SickBeard-TVRage/medusa/server/api/v1/core.py", line 59, in <module>
    from medusa.show.coming_episodes import ComingEpisodes
  File "/share/MD0_DATA/.qpkg/SickBeard-TVRage/SickBeard-TVRage/medusa/show/coming_episodes.py", line 39, in <module>
    from past.builtins import cmp
  File "/share/MD0_DATA/.qpkg/SickBeard-TVRage/SickBeard-TVRage/ext/past/__init__.py", line 88, in <module>
    from past.translation import install_hooks as autotranslate
  File "/share/MD0_DATA/.qpkg/SickBeard-TVRage/SickBeard-TVRage/ext/past/translation/__init__.py", line 41, in <module>
    from lib2to3.pgen2.parse import ParseError
ImportError: No module named lib2to3.pgen2.parse

The error i had before i did wrong git with the sickrage.git

@Sevyx Sevyx changed the title ValueError: invalid literal for int() with base 10: '[]' ImportError: No module named lib2to3.pgen2.parse Apr 23, 2018
@medariox
Copy link
Contributor

Related: PythonCharmers/python-future#209

@sharkykh
Copy link
Contributor

@medariox Why do we need past.builtins.cmp? Isn't cmp available for both Python 2 and 3?

@medariox
Copy link
Contributor

Gone in Python 3 https://docs.python.org/3.0/whatsnew/3.0.html#ordering-comparisons

@simonc56
Copy link
Contributor

Same happened on Libreelec distro.
Python 2.7 on Libreelec is missing the lib2to3 module.
So, last Medusa update can't start anymore on this system.

@medariox medariox added the Fixed label Apr 25, 2018
@medariox
Copy link
Contributor

Fixed with: #4089

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

No branches or pull requests

4 participants