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

mpsyt crashes after update to 0.2.7 #503

Closed
vnckppl opened this issue Jun 27, 2016 · 4 comments
Closed

mpsyt crashes after update to 0.2.7 #503

vnckppl opened this issue Jun 27, 2016 · 4 comments

Comments

@vnckppl
Copy link

vnckppl commented Jun 27, 2016

I just updated mpsyt and youtube-dl on OSX 10.10.5:

16:02:35 ~ ► sudo -H pip3 install mps-youtube -U
Password:
Collecting mps-youtube
Downloading mps_youtube-0.2.7-py3-none-any.whl (93kB)
100% |████████████████████████████████| 102kB 2.7MB/s
Requirement already up-to-date: pafy!=0.4.0,!=0.4.1,!=0.4.2,>=0.3.82 in /usr/local/lib/python3.5/site-packages (from mps-youtube)
Installing collected packages: mps-youtube
Found existing installation: mps-youtube 0.2.6
Uninstalling mps-youtube-0.2.6:
Successfully uninstalled mps-youtube-0.2.6
Successfully installed mps-youtube-0.2.7
16:03:01 ~ ► sudo -H pip3 install youtube-dl -U
Collecting youtube-dl
Downloading youtube_dl-2016.6.27-py2.py3-none-any.whl (1.3MB)
100% |████████████████████████████████| 1.3MB 738kB/s
Installing collected packages: youtube-dl
Found existing installation: youtube-dl 2016.6.23.1
Uninstalling youtube-dl-2016.6.23.1:
Successfully uninstalled youtube-dl-2016.6.23.1
Successfully installed youtube-dl-2016.6.27

Now when I start mpsyt, it crashes with the following error:

Enter /search-term to search or [h]elp
Traceback (most recent call last):
File "/usr/local/lib/python3.5/site-packages/mps_youtube/playlists.py", line 23, in load
g.userpl = pickle.load(plf)
AttributeError: Can't get attribute 'Playlist' on <module 'mps_youtube.main' from '/usr/local/lib/python3.5/site-packages/mps_youtube/main.py'>

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/bin/mpsyt", line 11, in
sys.exit(main.main())
File "/usr/local/lib/python3.5/site-packages/mps_youtube/main.py", line 116, in main
playlists.load()
File "/usr/local/lib/python3.5/site-packages/mps_youtube/playlists.py", line 39, in load
g.userpl = pickle.load(plf)
AttributeError: Can't get attribute 'Playlist' on <module 'mps_youtube.main' from '/usr/local/lib/python3.5/site-packages/mps_youtube/main.py'>

Any suggestions?

@ids1024
Copy link
Contributor

ids1024 commented Jun 27, 2016

AttributeError: Can't get attribute 'Playlist' on

It looks like some words are missing. Are you sure this is the complete error message?

@vnckppl
Copy link
Author

vnckppl commented Jun 27, 2016

You are right, part of the message was not in my post (because of the auto formatting). Here is the full error message:

Traceback (most recent call last):
  File "/usr/local/lib/python3.5/site-packages/mps_youtube/playlists.py", line 23, in load
    g.userpl = pickle.load(plf)
AttributeError: Can't get attribute 'Playlist' on <module 'mps_youtube.main' from '/usr/local/lib/python3.5/site-packages/mps_youtube/main.py'>

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/bin/mpsyt", line 11, in <module>
    sys.exit(main.main())
  File "/usr/local/lib/python3.5/site-packages/mps_youtube/main.py", line 116, in main
    playlists.load()
  File "/usr/local/lib/python3.5/site-packages/mps_youtube/playlists.py", line 39, in load
    g.userpl = pickle.load(plf)
AttributeError: Can't get attribute 'Playlist' on <module 'mps_youtube.main' from '/usr/local/lib/python3.5/site-packages/mps_youtube/main.py'>

@ids1024
Copy link
Contributor

ids1024 commented Jun 27, 2016

Commit 401539e should fix this.

Try installing from the develop branch with sudo pip3 install -U https://github.com/mps-youtube/mps-youtube/archive/develop.zip to test if it fixes the problem for you.

@vnckppl
Copy link
Author

vnckppl commented Jun 27, 2016

Yes, that did work. Thank you!

@vnckppl vnckppl closed this as completed Jun 27, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants