How to fix Python ValueError:bad marshal data?

后端 未结 7 2458
梦毁少年i
梦毁少年i 2020-12-01 06:20

Running flexget Python script in Ubuntu, I get an error:

$ flexget series forget \"Orange is the new black\" s03e01
Traceback (most recent call last):
File \         


        
7条回答
  •  心在旅途
    2020-12-01 06:50

    Just delete

    /usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/properties.pyc
    

    it is corrupt as the text indicates. You'll probably have to do so as root.

    After that start (again as root) run python (2.7):

    /usr/bin/python -c "import sqlalchemy.orm.properties"
    

    to recreate this .pyc file.

    If you don't recreate the .pyc file, your program starts slower than necessary as the .py file takes longer to load than the .pyc (and a normal user cannot write the .pyc file).

提交回复
热议问题