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

TypeError: __init__() got an unexpected keyword argument 'charset' #56

Open
TheKruspe opened this issue Jan 3, 2022 · 0 comments
Open

Comments

@TheKruspe
Copy link

TheKruspe commented Jan 3, 2022

When installing flask-redis via pip, redis-py gets automatically installed as a dependency of flask-redis. However, the correct version of redis-py is not defined. This package (flask-redis==0.4.0) works fine with redis==3.5.3, but saving values via hmset throws an error using the newer version redis==4.0.2, which pip currently chooses to install.

File "/home/me/myProject/test.py", line 17, in saveToRedis
	flask_redis_client.hmset(myID, myDictionary)
  File ""/home/me/.venv/lib/python3.9/site-packages/redis/commands/core.py", line 3414, in hmset
	return self.execute_command('HMSET', name, *items)
  File "/home/me/.venv/lib/python3.9/site-packages/redis/client.py", line 1068, in execute_command
	conn = self.connection or pool.get_connection(command_name, **options)
  File "/home/me/.venv/lib/python3.9/site-packages/redis/connection.py", line 1168, in get_connection
	connection = self.make_connection()
  File "/home/me/.venv/lib/python3.9/site-packages/redis/connection.py", line 1208, in make_connection
	return self.connection_class(**self.connection_kwargs)
TypeError: __init__() got an unexpected keyword argument 'charset'
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

1 participant