-
Notifications
You must be signed in to change notification settings - Fork 277
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
TypeError: LoadLibrary() argument 1 must be string, not unicode #1843
Comments
i can't debug anymore with pycharm. Can't code anymore lol |
@ratoaq2 weird that his happened only now. maybe because of updated 2.7.13 python? patching mediainfo in knowit lib works: added str() to os.path.join \Medusa\lib\knowit\providers\mediainfo.py logger.debug('Loading native mediainfo library from %s', lib)
lib = windll.MediaInfo = windll.LoadLibrary(str(os.path.join(lib, 'MediaInfo.dll'))) then unrar had the same issue: \Medusa\lib\unrar2\windows.py unrar = ctypes.WinDLL(str(os.path.join(os.path.split(__file__)[0], 'UnRARDLL', dll_name))) |
Fix #1843: Medusa does not start with Python 2.7.13
Fixed in develop. |
If you are using a special version of Python [like Anaconda] and you can't fix it. |
Thank you! Installed a package on conda, it automatically updated Python to version 2.7.13 and broke everything. This bug causes the python interpreter to immediately exit without any additional output when invoked by typing "python" from within the Anaconda command prompt. And Anaconda will not let you select a previous version of Python. This manual fix did the trick for me. |
@imdatacenters I had a similar problem with another python package. I have no idea what I just did, but I followed your recommendation above and it worked. Is this a problem with Anaconda? |
Hey, thanks so much. I came across your post while trying to figure out why pytest was giving me the error in the title. But I was pleasantly surprised to discover by @mike-read 's reply that this fix also solved the problem of python interpreter exiting immediately. I had that problem for a while and not from within Anaconda but directly from within the windows command prompt. I was unable to find what caused it and how to solve it but this fix solved it swiftly. So thank you both! |
I had faced the same problem. the issue was Python version , It was python 2.7.13 , after updated this by 2.7.14 ,it is resolved. Also I had reinstalled all the libraries ( it is recommended for my project ) using "pip" in command window. |
@ratoaq2
The text was updated successfully, but these errors were encountered: