AttributeError: 'Column' object has no attribute `deferred_dtype`
See original GitHub issue🐛 Bug
The introduction of deferred_dtype
in PR #3890 seems to be causing issues when loading a graph file saved with an older version of DGL. Do you have any ideas on fixing the compatibility? We might also want to add a unit test for loading a graph data file saved with an older version of DGL.
Expected behavior
Environment
- DGL Version (e.g., 1.0): 0.8.2
- Backend Library & Version (e.g., PyTorch 0.4.1, MXNet/Gluon 1.3):
- OS (e.g., Linux):
- How you installed DGL (
conda
,pip
, source): - Build command you used (if compiling from source):
- Python version:
- CUDA/cuDNN version (if applicable):
- GPU models and configuration (e.g. V100):
- Any other relevant information:
Issue Analytics
- State:
- Created a year ago
- Comments:10 (4 by maintainers)
Top Results From Across the Web
Dataloader error: AttributeError: 'Column' object has no ...
I was using DGL, and all seem well until I encounter the error : AttributeError: 'Column' object has no attribute 'deferred_dtype'
Read more >AttributeError: 'DataFrame' object has no attribute 'dtype ...
You seem to somehow get back a DataFrame and not a Series by calling X[col] . Not sure why, because you did not...
Read more >AttributeError: 'DataFrame' object has no attribute 'dtype' ...
Hi Guys, I received the following error when implementing extension of imputer. I wanted to implement extension to Imputation to replace missing value...
Read more >AttributeError: 'function' object has no attribute
Using protected keywords from the DataFrame API as column names results in a function object has no attribute error message.
Read more >AttributeError: 'function' object has no attribute
Problem You are selecting columns from a DataFrame and you get an error message. ERROR: AttributeError: 'function' object has no attribute ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@natalie-0430 That will depend on how you installed it. If you used pip for example:
@mufeili What’s your preferred fix for this? Should we add
hasattr
to check if the unpickled object has the new attribute, or should we override__setstate__
(https://docs.python.org/3/library/pickle.html#object.__setstate__) to explicitly populate missing attributes from old versions?I vote for overriding
__setstate__
and__getstate__
. Two other related questions:DGLGraph
andFrame
.