Questions about submitting #65
Answered
by
ramber1836
ForestsKing
asked this question in
BaiduKDDCup2022
Replies: 3 comments 3 replies
|
The real error is that "No module named 'pytorch' "
Your predict.py is mainly based on the developed utilities in the folder,
namely pytorch.
However, the predict.py is located in the folder where no folder named
'pytorch' was found, so your predict.py cannot find the module of pytorch.
I guess your files in the submitted zip file (e.g. pytorch.zip) should
follow the directory structure like this
pytorch/
| --- pytorch/
| --- checkpoints/
| --- ...
| --- predict.py
| --- prepare.py
| --- ...
…On Sun, May 15, 2022 at 9:28 PM ForestsKing ***@***.***> wrote:
When I submit my code, I get the error:'NoneType' object has no attribute
'forecast'.
My local folder structure:
pytorch
- checkpoints
- predict.py
- prepare.py
- ...
Then I packaged the pytorch folder into a zip and uploaded it, where
is the error?
—
Reply to this email directly, view it on GitHub
<#65>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEVHY3Z5ZCR7DZI2IGWCBX3VKD3ZRANCNFSM5V7DDZ7A>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
3 replies
Answer selected by
zhoujingbo
|
This is a common issue when programming in Python, please refer to this
thread
https://stackoverflow.com/questions/16981921/relative-imports-in-python-3
…On Mon, May 16, 2022 at 11:23 AM ForestsKing ***@***.***> wrote:
Then why can't I use relative import .exp import EXP ? Thank you very much
—
Reply to this email directly, view it on GitHub
<#65 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEVHY35IJWDHEDHUBORFJTDVKG5TDANCNFSM5V7DDZ7A>
.
You are receiving this because you commented.Message ID:
***@***.***
com>
|
0 replies
|
NoneType' object has no attribute 'forecast'. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
When I submit my code, I get the error:'NoneType' object has no attribute 'forecast'.
My local folder structure:
pytorch
|- checkpoints
|- predict.py
|- prepare.py
|- ...
Then I packaged the pytorch folder into a zip and uploaded it, where is the error?
All reactions