-
Notifications
You must be signed in to change notification settings - Fork 75
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
Comments
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). |
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 : 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 |
@zilongzhong any updates? |
The mentioned files are already in the following folder:
https://github.com/zilongzhong/SSRN/tree/master/Utils
This bug can be solved by adding the root directory of this repository to
your IDE's environment path such that the corresponding files can be
importable.
…On Sun, 29 Dec 2019 at 15:35, Sayantan Das ***@***.***> wrote:
@zilongzhong <https://github.com/zilongzhong> any updates?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#6?email_source=notifications&email_token=AD2DHTXKCGENSISFYIEJXT3Q3BHLHA5CNFSM4E74BPJ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEHYZZ6I#issuecomment-569482489>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AD2DHTR6VRYN7K3ZCYAFJHTQ3BHLHANCNFSM4E74BPJQ>
.
|
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
The text was updated successfully, but these errors were encountered: