klar-EDA icon indicating copy to clipboard operation
klar-EDA copied to clipboard

Error while import

Open harshasridhar opened this issue 4 years ago • 4 comments

Indentation error on import PFA logs

 >>>from klar_eda.preprocessing import preprocess_csv
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/harsha/opt/anaconda3/envs/klar/lib/python3.7/site-packages/klar_eda/preprocessing.py", line 1, in <module>
    from .preprocess.csv_preprocess import CSVPreProcess
  File "/Users/harsha/opt/anaconda3/envs/klar/lib/python3.7/site-packages/klar_eda/preprocess/csv_preprocess.py", line 71
    if ret == True:
                  ^
IndentationError: unindent does not match any outer indentation level
>>> from klar_eda import visualization
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/harsha/opt/anaconda3/envs/klar/lib/python3.7/site-packages/klar_eda/visualization.py", line 1, in <module>
    from .visualize.csv_visualize import CSVVisualize
  File "/Users/harsha/opt/anaconda3/envs/klar/lib/python3.7/site-packages/klar_eda/visualize/csv_visualize.py", line 13, in <module>
    from ..preprocess.csv_preprocess import CSVPreProcess
  File "/Users/harshams/opt/anaconda3/envs/klar/lib/python3.7/site-packages/klar_eda/preprocess/csv_preprocess.py", line 71
    if ret == True:
                  ^
IndentationError: unindent does not match any outer indentation level

harshasridhar avatar Mar 09 '21 11:03 harshasridhar

I want to contribute to this issue. Please assign me this task as a part of GSSoC'21

srisatya12 avatar Mar 09 '21 11:03 srisatya12

@harshasridhar Closing this issue, as identified to be an IDE error on the user side. Please feel free to reopen if the issue persists.

Ask149 avatar Mar 09 '21 19:03 Ask149

Hi @Ask149 I tried to install this on a docker container with no editors as such, and I'm still facing the issue. I copy pasted the code to an online code formatter, and there as well I'm seeing the same issue Can you please try running this command on your machine python3 -m tabnanny csv_preprocess.py 'csv_preprocess.py': Indentation Error: unindent does not match any outer indentation level (, line 71)

harshasridhar avatar Mar 10 '21 14:03 harshasridhar

Please have a look at this jupyter notebook where I've replicated the issue

harshasridhar avatar Mar 11 '21 17:03 harshasridhar