Quantipy / quantipy

Python for people data
MIT License
66 stars 14 forks source link

'NoneType' object has no attribute 'charmap_decode' #1242

Closed ruch0 closed 5 years ago

ruch0 commented 5 years ago

I have tried installing Quanitpy multiple times creating a fresh environment and every time I get the error 'NoneType' object has no attribute 'charmap_decode' . I am simply trying to execute one of the examples codes -

`import quantipy as qp from quantipy.core.tools.dp.prep import frange

path_csv = 'quantipy\tests\Example Data (A).csv' dataset = qp. dataset('Example Data (A)') dataset.read_quantipy(path_csv)

dataset.crosstab('q2', text = True)`

alextanski commented 5 years ago

Heya, are you running on the staging-develop branch? If not, please try!

Thanks Alex

alextanski commented 5 years ago

Did not want to close, sorry!

ruch0 commented 5 years ago

I installed the develop branch. However, I still keep getting this -

**File "C:\Users\~\Python\Python27\site-packages\ftfy\bad_codecs\sloppy.py", line 127, in decode return codecs.charmap_decode(input, errors, decoding_table)

AttributeError: 'NoneType' object has no attribute 'charmap_decode'**

If it helps, I am trying to run this using Spyder in the environment that was created on a Windows 10 machine.

alextanski commented 5 years ago

Can you please check what

ftfy.__version__

shows? Should be '4.4.3'

ruch0 commented 5 years ago

ftfy version is 4.4.3. I am not sure if it was implied or not, but prefixing the dataset.crosstab('q2', text = True) with print i.e. print dataset.crosstab('q2', text = True) gave the desired output without generating any errors.