Could not find module chardet_py3 on Python 3.5

Asked by Jan Vorwerk

Hi,

I am just trying to ladonize a service and it seems to work fine on Python 2.7.2 but not on Python 3.5

First of all, it seems that the dependency on 'chardet' is missing in the installation... Nevermind, I pip installed chardet and then ladon yells:

  File "C:\Python35\lib\site-packages\ladon\ladonizer\collection.py", line 18, in <module>
    from chardet_py3 import detect
ImportError: No module named 'chardet_py3'

Since the chardet_py3 folder does not exist under C:\Python35\Lib\site-packages (while chardet exists)
I just went to C:\Python35\lib\site-packages\ladon\ladonizer\collection.py and removed the "_py3"

This worked like a charm.

Obviously, it is not the cleanest solution I can think of. Any idea?

Question information

Language:
English Edit question
Status:
Answered
For:
ladon Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
jsgaarde (jakob-simon-gaarde) said :
#1

Hi Jan.

chardet bundled with ladon. For some reason the python 3 version of chardet (chardet_py3) was not included in version 0.9.33. I ticked ladon to version 0.9.34 which now includes chardet_py3.

Thanks for notifying me.

/ Jakob

Revision history for this message
Alexandr Novel (normalex) said :
#2

ladon-0.9.37 is also missing chardet_py3 only /src/chardet_py2 is bundled.

Revision history for this message
jsgaarde (jakob-simon-gaarde) said :
#3

I have changed the bundeling script to always include both versions of chardet in the source distribution, so the problem should be fixed - 0.9.38 is uploaded to PyPi

/ Jakob

Can you help with this problem?

Provide an answer of your own, or ask Jan Vorwerk for more information if necessary.

To post a message you must log in.