-
Notifications
You must be signed in to change notification settings - Fork 631
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
Error when running TFT tutorial: AttributeError: 'functools.partial' object has no attribute '__name__' #610
Comments
+1 having the same issue, |
It seems like a version issue with pyyaml. I got the same error as you, upgraded pyyaml from 5.3.1 to 5.4.1 and it is working fine. pytorch lightning 1.3.8, pytorch-forecasting 0.9.0, torch 1.9.0+cu111. Got it work in both python 3.7.11 and 3.8.10. Hope this helps. |
Thank you, but the default pyyaml using |
Having the same issue, |
I'm also having this issue: |
hmm, that's odd. Maybe I did something else fixed it other than the upgrade of pyyaml. I had a very hacky solution before, modifying pytorch_lightning's code directly. Then I reinstalled a new virtual env, upgraded pyyaml and it works. But you can try this hacky way if needed. Just add another except block to catch the error. Maybe you lose some logging by this, but it gets me pass the block. Looks like it has something to do with pyyaml's use of partial function? Added a line for your_venv_folder/lib/python38/site_packages/pytorch_lightning/core/savings.py, line 400: before:
after
|
Found the problem (although I don't know why). The problem lies in pandas version. I tested and found that |
Can we reopen this issue? I'm having the exact same problem and downgrading pandas causes another issue. |
What is the new issue? Is it related to pandas? Maybe it would be better to create a new issue. |
I was getting an issue related to memory blocks because of conflicting versions, the downgrade did indeed work after I fixed the file I was using. But shouldn't this stay open anyways as it is not fixed? |
I am experiencing this issue with the following versions:
|
Expected behavior
I created a new virtual env and use
pip install pytorch-forecasting
andpip install pyarrow
to run the tutorial code of TFT model.Actual behavior
I got the following error:
This is really strange, I thought it might be caused by version compatibility of pytorch-lightning and pytorch-forecasting (or tensorboard and PyYAML). I tried to use different version of pytorch-forecating, pytorch-lightning, but no progress.
Code to reproduce the problem
Just install the pytorch-forecasting and follow the turorial.
Thank you!
Solution
Found the problem (although I don't know why). The problem lies in pandas version. I tested and found that pandas==1.2.x works fine but pandas==1.3.x will raise the error.
Now pip install pytorch-forecasting and pip install --upgrade pandas==1.2.5 is OK to run.
The text was updated successfully, but these errors were encountered: