question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Import redis.exceptions.DataError

See original GitHub issue

Hi, While simply trying to install modin and importing it, I get the following error from Redis: redis.exceptions.DataError: Invalid input of type: 'NoneType'. Convert to a byte, string or number first.

Full trace: image

Is this a known issue or dependency missing?

Thank you for your help!

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

4reactions
devin-petersohncommented, Nov 15, 2018

The problem is with the redis dependency in Ray. I was able to reproduce the error by upgrading my redis install.

Here is the fix:

pip install redis==2.10.6

Then you should be able to run Modin and Ray without the redis error.

0reactions
arjuns2020commented, Oct 21, 2020

I am trying to load url as keys to redis and getting this error

this is how my URL looks like: https://d2i6pukzef2l69.cloudfront.net/nrm/images/STTM_VE;MEAS_CD_SEM/1A1JA/RUN01/1A1JA_STTM_VE_MEAS_CD_SEM_{S9_STTM_TEST_S9_STTM_TEST_M1}_DX6DY11SDX2SDY10_2020-10-20_04-25-17.JPG https://d2i6pukzef2l69.cloudfront.net/nrm/images/STTM_VE;MEAS_CD_SEM/1A1JA/RUN01/1A1JA_STTM_VE_MEAS_CD_SEM_{S9_STTM_TEST_S9_STTM_TEST_M1}_DX6DY11SDX13SDY41_2020-10-20_04-25-17.JPG https://d2i6pukzef2l69.cloudfront.net/stst/images/STTM_VE;MEAS_CD_SEM/A7HXM/RUN01/A7HXM_STTM_VE_MEAS_CD_SEM_{S9_STTM_KLA_TEST_2_S9_STTM_TEST_M1}_DX6DY9SDX7SDY23_2020-10-20_08-02-12.JPG https://d2i6pukzef2l69.cloudfront.net/stst/images/STTM_VE;MEAS_CD_SEM/A7HXM/RUN01/A7HXM_STTM_VE_MEAS_CD_SEM_{S9_STTM_KLA_TEST_2_S9_STTM_TEST_M1}_DX6DY9SDX10SDY33_2020-10-20_08-02-12.JPG https://d2i6pukzef2l69.cloudfront.net/nrm/images/STTM_VE;MEAS_CD_SEM/V92KI/RUN01/V92KI_STTM_VE_MEAS_CD_SEM_{S9_STTM_TEST_3_S9_STTM_TEST_M1}_DX11DY14SDX11SDY14_2020-10-20_02-24-06.JPG https://d2i6pukzef2l69.cloudfront.net/nrm/images/STTM_VE;MEAS_CD_SEM/V92KI/RUN01/V92KI_STTM_VE_MEAS_CD_SEM_{S9_STTM_TEST_3_S9_STTM_TEST_M1}_DX11DY14SDX6SDY35_2020-10-20_02-24-06.JPG https://d2i6pukzef2l69.cloudfront.net/nrm/images/STTM_VE;MEAS_CD_SEM/V92KI/RUN01/V92KI_STTM_VE_MEAS_CD_SEM_{S9_STTM_TEST_2_S9_STTM_TEST_M1}_DX5DY9SDX10SDY33_2020-10-20_02-24-06.JPG https://d2i6pukzef2l69.cloudfront.net/nrm/images/STTM_VE;MEAS_CD_SEM/V92KI/RUN01/V92KI_STTM_VE_MEAS_CD_SEM_{S9_STTM_TEST_2_S9_STTM_TEST_M1}_DX5DY9SDX7SDY23_2020-10-20_02-24-06.JPG https://d2i6pukzef2l69.cloudfront.net/nrm/images/STTM_VE;MEAS_CD_SEM/V92KI/RUN01/V92KI_STTM_VE_MEAS_CD_SEM_{S9_STTM_TEST_2_S9_STTM_TEST_M1}_DX4DY6SDX10SDY33_2020-10-20_02-24-06.JPG https://d2i6pukzef2l69.cloudfront.net/nrm/images/STTM_VE;MEAS_CD_SEM/V92KI/RUN01/V92KI_STTM_VE_MEAS_CD_SEM_{S9_STTM_TEST_2_S9_STTM_TEST_M1}_DX4DY6SDX7SDY23_2020-10-20_02-24-06.JPG https://d2i6pukzef2l69.cloudfront.net/nrm/images/STTM_VE;MEAS_CD_SEM/V92KI/RUN01/V92KI_STTM_VE_MEAS_CD_SEM_{S9_STTM_TEST_2_S9_STTM_TEST_M1}_DX16DY5SDX10SDY33_2020-10-20_02-24-06.JPG https://d2i6pukzef2l69.cloudfront.net/nrm/images/STTM_VE;MEAS_CD_SEM/V92KI/RUN01/V92KI_STTM_VE_MEAS_CD_SEM_{S9_STTM_TEST_2_S9_STTM_TEST_M1}_DX16DY5SDX7SDY23_2020-10-20_02-24-06.JPG https://d2i6pukzef2l69.cloudfront.net/nrm/images/STTM_VE;MEAS_CD_SEM/V92KI/RUN01/V92KI_STTM_VE_MEAS_CD_SEM_{S9_STTM_TEST_2_S9_STTM_TEST_M1}_DX14DY10SDX10SDY33_2020-10-20_02-24-06.JPG https://d2i6pukzef2l69.cloudfront.net/nrm/images/STTM_VE;MEAS_CD_SEM/V92KI/RUN01/V92KI_STTM_VE_MEAS_CD_SEM_{S9_STTM_TEST_2_S9_STTM_TEST_M1}_DX14DY10SDX7SDY23_2020-10-20_02-24-06.JPG https://d2i6pukzef2l69.cloudfront.net/nrm/images/STTM_VE;MEAS_CD_SEM/1P3FM/RUN01/1P3FM_STTM_VE_MEAS_CD_SEM_{S9_STTM_TEST_2_S9_STTM_TEST_M1}_DX4DY6SDX7SDY23_2020-10-20_02-24-06.JPG

ERROR: Invalid input of type: ‘NoneType’. Convert to a bytes, string, int or float first.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Exceptions — redis-py dev documentation
Core exceptions raised by the Redis client. exception redis.exceptions.AskError(resp)[source]¶ ... dst node: IMPORTING from src node.
Read more >
redis.exceptions.DataError: Invalid input of type: 'NoneType ...
redis.exceptions.DataError: Invalid input of type: 'NoneType'. Convert to a byte, string or number first. In my requirements.txt and virtual ...
Read more >
Redis and Python3? - Google Groups
redis.exceptions.DataError: Invalid input of type: 'bool'. Convert to a byte, string or number first.
Read more >
How to Use Redis With Python
redis.exceptions.DataError: Invalid input of type: 'date'. Convert to a byte, string or number first.
Read more >
33361 (Redis cache backend doesn't allow storing bool values)
The following code raises an exception: redis.exceptions.DataError: Invalid input of type: ... from django.core.cache import cache cache.set("foo", True).
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found