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

Problem makefile() #163

Closed
entuccio opened this issue Feb 4, 2021 · 5 comments
Closed

Problem makefile() #163

entuccio opened this issue Feb 4, 2021 · 5 comments

Comments

@entuccio
Copy link

entuccio commented Feb 4, 2021

I got this error:

makefile() got an unexpected keyword argument 'newline'

What is my mistake?
Can I use this library in Python 2.7?

Thanks

@entuccio
Copy link
Author

entuccio commented Feb 4, 2021

2243 ERROR makefile() got an unexpected keyword argument 'newline'
Traceback (most recent call last):
File "/Users/daniele/MyGoogleDrive/Alfred.alfredpreferences/workflows/user.workflow.1A3A1E44-FE8F-4F25-8EEE-E281EE9BCA96/lib/workflow/workflow.py", line 2236, in run
func(self)
File "./test.py", line 28, in main
client.connect("localhost", 6600) # connect to localhost:6600
File "/Users/daniele/MyGoogleDrive/Alfred.alfredpreferences/workflows/user.workflow.1A3A1E44-FE8F-4F25-8EEE-E281EE9BCA96/mpd/base.py", line 797, in connect
self._rbfile = self._sock.makefile("rb", newline="\n")
TypeError: makefile() got an unexpected keyword argument 'newline'

@Mic92
Copy link
Owner

Mic92 commented Feb 4, 2021

python 2 support was dropped in https://github.com/Mic92/python-mpd2/releases/tag/v2.0.0

Please upgrade your python version, we don't provide support for older versions anymore.

@Mic92 Mic92 closed this as completed Feb 4, 2021
@entuccio
Copy link
Author

entuccio commented Feb 4, 2021

Thank you. What if I use a previous version? (like 1.0) ?

@Mic92
Copy link
Owner

Mic92 commented Feb 4, 2021

yes. That would work, but we won't add new features or bug fixes to previous versions so you are on your own.

@entuccio
Copy link
Author

entuccio commented Feb 4, 2021

Thank you dear. Great work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants