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

'str' object has no attribute "__stored_args__" (ISSUE #7) #10

Merged
merged 2 commits into from Sep 5, 2020

Conversation

lohithmunakala
Copy link
Contributor

I opened an issue (#7) on 03/09/2020. The problem and the solution are mentioned below with the colab files as well.

On 03/09/2020, a commit was made in fastai/fastcore/uitls.py (fastai/fastcore@ea1c33f) (line 86) which made sure that we need not use "self" when we call the method store_attr. ( separate the names using commas)

I made a small change in the code ie. in the upit/train/cyclegan.py such that it follows the changed fastcore/utils.py structure.
I removed the self component for store_attr in cyclegan.py.

The error can be seen here

Screenshot from 2020-09-04 22-27-26

The colab link: https://colab.research.google.com/drive/1lbXhX-bWvTsQcLb2UUFI0UkRpvx_WK2Y?usp=sharing

After the change, the error does not occur as shown here.

Screenshot from 2020-09-04 22-50-17
The Colab link: https://colab.research.google.com/drive/13rrNLBgDulgeHclovxJNtQVbVYcGMKm0?usp=sharing

@lohithmunakala
Copy link
Contributor Author

Keep getting the error again and again. The error is as follows.
Screenshot from 2020-09-04 23-59-01

@tmabraham
Copy link
Owner

tmabraham commented Sep 4, 2020

Thank you for discovering and tracking down this error. The fastcore change was just announced here as well.

@lohithmunakala
Copy link
Contributor Author

Sure thing !

@tmabraham
Copy link
Owner

Note that the typical workflow for this project (and nbdev projects in general) is to edit the notebooks, run nbdev_build_lib (build module files) and run nbdev_test_nbs (run tests) both from the command line(optionally run nbdev_build_docs if there are documentation changes). The CI error is because you edited the module file and there is difference between the module and the notebook.

Since it's a small bug that you have fixed, you can simply run nbdev_update_lib from the command line to update the notebooks so the notebooks and library match. Please commit these changes, check that the CI passes, and then I can merge

In the future, please edit the notebooks, update the library, and test the notebooks before submitting a PI. Admittedly, it's also my fault that this wasn't very clear in the README.md or the CONTRIBUTING.md files, so I will update those docs accordingly.

@lohithmunakala
Copy link
Contributor Author

Have made the necessary changes. Thanks for the update (#10 (comment)). The checks have passed now.

@tmabraham tmabraham merged commit a50c4f1 into tmabraham:master Sep 5, 2020
@tmabraham
Copy link
Owner

@lohithmunakala Merged! Thanks again for the fix!

@lohithmunakala
Copy link
Contributor Author

Closed the issue.

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

Successfully merging this pull request may close these issues.

None yet

2 participants