Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import error at Utils #6

Open
radhesyam opened this issue May 15, 2018 · 4 comments
Open

Import error at Utils #6

radhesyam opened this issue May 15, 2018 · 4 comments

Comments

@radhesyam
Copy link

in Running SSRN_IN.py the following error encountered
from Utils import zeroPadding, normalization, doPCA, modelStatsRecord, averageAccuracy, ssrn_SS_IN
since Utils is folder i am getting import error

@zilongzhong
Copy link
Owner

The solution is adding the directory of the Utils folder to the PYTHONPATH environment variable, you can also configure through IDE setting (e.g. Pycharm Setting).
Here is a link may help you:
https://askubuntu.com/questions/58814/how-do-i-add-environment-variables

@mobassir94
Copy link

mobassir94 commented Oct 29, 2018

Hello dear @zilongzhong please re check and solve this issue, your init.py from Utils directory is empty and for this reason when using this LOC : "from Utils import zeroPadding, normalization, doPCA, modelStatsRecord, averageAccuracy, ssrn_SS_UP" spyder throws this error :
"
File "", line 1, in
from Utils import zeroPadding, normalization, doPCA, modelStatsRecord, averageAccuracy, ssrn_SS_UP

ModuleNotFoundError: No module named 'Utils'"

your file is empty and no objects are defined in the module or the package’s init.py file this is why "zeroPadding, normalization, doPCA, modelStatsRecord, averageAccuracy, ssrn_SS_UP" these files are not available to imputer,please re check and help us,your .init.py file is empty (0 kb in size) please help us by providing the right file,thanks in advance

@ucalyptus
Copy link

@zilongzhong any updates?

@zilongzhong
Copy link
Owner

zilongzhong commented Dec 29, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants