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

Type error: LoardLibrary() argument 1 must be strign not unicode #11593

Closed
milo123milo opened this issue Jan 3, 2017 · 3 comments
Closed

Type error: LoardLibrary() argument 1 must be strign not unicode #11593

milo123milo opened this issue Jan 3, 2017 · 3 comments

Comments

@milo123milo
Copy link

@milo123milo milo123milo commented Jan 3, 2017

Every time i run any command or just type youtube-dl i get this error:

Traceback (most recent call last): File "c:\python27\lib\runpy.py", line 174, in _run_module_as_m "__main__", fname, loader, pkg_name) File "c:\python27\lib\runpy.py", line 72, in _run_code exec code in run_globals File "C:\Python27\Scripts\youtube-dl.exe\__main__.py", line 9, File "c:\python27\lib\site-packages\youtube_dl\__init__.py", l _real_main(argv) File "c:\python27\lib\site-packages\youtube_dl\__init__.py", l setproctitle('youtube-dl') File "c:\python27\lib\site-packages\youtube_dl\utils.py", line libc = ctypes.cdll.LoadLibrary('libc.so.6') File "c:\python27\lib\ctypes\__init__.py", line 440, in LoadLi return self._dlltype(name) File "c:\python27\lib\ctypes\__init__.py", line 362, in __init self._handle = _dlopen(self._name, mode) TypeError: LoadLibrary() argument 1 must be string, not unicode

did i make mistake? Or is your?

@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented Jan 3, 2017

Duplicate of #11540

did i make mistake? Or is your?

Neither you nor we (youtube-dl maintainers) made the mistake. Instead, Python should be blamed: http://bugs.python.org/issue29082.

Conclusion: Python 2.7.13 is broken. Downgrade to 2.7.12 or use 3.x

@yan12125 yan12125 closed this Jan 3, 2017
@milo123milo
Copy link
Author

@milo123milo milo123milo commented Jan 3, 2017

How can i install youtube-dl on python 3 i have both on pc? @yan12125

@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented Jan 3, 2017

Python 2 and Python 3 can co-exist. Just install it like how you've installed Python 2.

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

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.