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

streamlink fails to run #2244

Closed
1 task done
omen23 opened this issue Jan 12, 2019 · 6 comments
Closed
1 task done

streamlink fails to run #2244

omen23 opened this issue Jan 12, 2019 · 6 comments
Labels
duplicate This issue or pull request already exists solved

Comments

@omen23
Copy link

omen23 commented Jan 12, 2019

Bug Report

  • This is a bug report and I have read the contribution guidelines.

Description

after installing the development version i cant either use pip or apt to install and run streamlink

Expected / Actual behavior

streamlink will run

Traceback (most recent call last):
  File "/usr/local/bin/streamlink", line 7, in <module>
    from streamlink_cli.main import main
  File "/usr/local/lib/python2.7/dist-packages/streamlink_cli/main.py", line 21, in <module>
    from streamlink import __version__ as streamlink_version
  File "/usr/local/lib/python2.7/dist-packages/streamlink/__init__.py", line 86, in <module>
    from .api import streams
  File "/usr/local/lib/python2.7/dist-packages/streamlink/api.py", line 1, in <module>
    from .session import Streamlink
  File "/usr/local/lib/python2.7/dist-packages/streamlink/session.py", line 9, in <module>
    from streamlink.logger import StreamlinkLogger, Logger
  File "/usr/local/lib/python2.7/dist-packages/streamlink/logger.py", line 7, in <module>
    from streamlink.compat import is_py2
  File "/usr/local/lib/python2.7/dist-packages/streamlink/compat.py", line 48, in <module>
    from backports.shutil_which import which
ImportError: No module named shutil_which

Reproduction steps / Explicit stream URLs to test

  1. ...
  2. ...
  3. ...

Log output

Love Streamlink? Please consider supporting our collective. Thanks!

@gravyboat
Copy link
Member

Take a look at #1358 (comment), it has some options for what you can do to resolve this.

@gravyboat gravyboat added duplicate This issue or pull request already exists solved labels Jan 12, 2019
@omen23
Copy link
Author

omen23 commented Jan 12, 2019

fixed it with reinstalling python setup.py install --record files.txt
cat files.txt | xargs sudo rm -rf
and reinstalling sudo apt install --reinstall python2.7 and python3

@omen23
Copy link
Author

omen23 commented Jan 12, 2019

lol now i did what was suggested and now if i run pipthis happens

Traceback (most recent call last):
  File "/usr/bin/pip", line 9, in <module>
    from pip import main
ImportError: cannot import name main

@omen23
Copy link
Author

omen23 commented Jan 12, 2019

nothing fixes the error ...

@gravyboat
Copy link
Member

That's a pip issue that was caused by the pip maintainers a while back, check out this stack overflow post for details and solutions: https://stackoverflow.com/questions/49836676/error-after-upgrading-pip-cannot-import-name-main

@omen23
Copy link
Author

omen23 commented Jan 13, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists solved
Projects
None yet
Development

No branches or pull requests

2 participants