sfu-db / dataprep

Open-source low code data preparation library in python. Collect, clean and visualization your data in python with a few lines of code.
http://dataprep.ai
MIT License
2.05k stars 206 forks source link

No module named 'dataprep.eda'; 'dataprep' is not a package #767

Closed bayuaji732 closed 2 years ago

bayuaji732 commented 2 years ago

Describe the bug while I try to import dataprep.eda from python in terminal it show error. but while I running it at jupyter notebook its running fine.

To Reproduce Steps to reproduce the behavior:

  1. add from dataprep.eda import create_report
  2. running the python script from terminal
  3. See error

Expected behavior running well at terminal or python script

Screenshots image

Desktop (please complete the following information):

Additional context Any idea how to solve this error? thanks

rloredo commented 2 years ago

Same for me, but it doesn't work in JN.

OS: MacOS Monterey 12.1 - M1 chipset Platform [Jupyter Notebook, pyenv] Python version [3.9.9]

Additional context when using a script or python in the terminal I get this warning:

UserWarning: Attempting to work in a virtualenv. If you encounter problems, please install IPython inside the virtualenv.

But I have IPython installed inside and any other package works ok.

jinglinpeng commented 2 years ago

Hi @bayuaji732 , is it due to naming conflict issue? https://stackoverflow.com/questions/54333865/python-no-module-named-error-package-is-not-a-package

jinglinpeng commented 2 years ago

Hi @rloredo , is the error happened in terminal or notebook? It would be nice if you could paste the error info.

bayuaji732 commented 2 years ago

@jinglinpeng yeah, I found the problem. I installed anaconda at user but I try running the python above from root, so it can't find the python package.

so issue closed. I think.

thanks