You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 29, 2022. It is now read-only.
Repository navigation
This repository was archived by the owner on Dec 29, 2022. It is now read-only.
Error message optional_warn_function.func_name = f.func_name AttributeError: 'function' object has no attribute 'func_name' #65
@jonparrott heres what I get if I use python shell and try to import it. I get this error message
Traceback (most recent call last):
File "", line 1, in
File "/Users/ray/Desktop/myheroku/practice/lib/python3.5/site-packages/gdata/init.py", line 27, in
import atom
File "/Users/ray/Desktop/myheroku/practice/lib/python3.5/site-packages/atom/init.py", line 133, in
CreateClassFromXMLString)
File "/Users/ray/Desktop/myheroku/practice/lib/python3.5/site-packages/atom/init.py", line 97, in mark_deprecated
optional_warn_function.func_name = f.func_name
AttributeError: 'function' object has no attribute 'func_name'
This bug is filed against the wrong repository, I believe. It should be in https://github.com/google/gdata-python-client . I think there may be an official way to move it there, but it's not immediately obvious how to do that.
This issue was moved from google-api-python-client using https://github-issue-mover.appspot.com/ so its original commenter identities have been lost, converted to @ mentions
Activity
mcdonc commentedon Jun 21, 2018
From @theacodes on July 27, 2016 16:48
Can we get a full stacktrace here so we know where this occurred?
Additionally, I'm happy to review any PRs to fix this.
mcdonc commentedon Jun 21, 2018
From @idesignedme on August 5, 2016 20:54
@jonparrott heres what I get if I use python shell and try to import it. I get this error message
Traceback (most recent call last):
File "", line 1, in
File "/Users/ray/Desktop/myheroku/practice/lib/python3.5/site-packages/gdata/init.py", line 27, in
import atom
File "/Users/ray/Desktop/myheroku/practice/lib/python3.5/site-packages/atom/init.py", line 133, in
CreateClassFromXMLString)
File "/Users/ray/Desktop/myheroku/practice/lib/python3.5/site-packages/atom/init.py", line 97, in mark_deprecated
optional_warn_function.func_name = f.func_name
AttributeError: 'function' object has no attribute 'func_name'
EDIT I just read this on git
The client library is only designed for Python 2.4 - 2.6. See Issue 229:
http://code.google.com/p/gdata-python-client/issues/detail?
id=229&q=label:Type-Defect
It also support 2.6+ but not 3.* as yet. For 3.0 support please track
http://code.google.com/p/gdata-python-client/issues/detail?id=229
So this may be my issue. This is from may 25, 2015
The documentation says up to 3.4 I'm using 3.5 so I guess it won't work
mcdonc commentedon Jun 21, 2018
From @theacodes on August 8, 2016 17:59
Gotcha. Seems like func_name is gone in 3.5. Should be an easy fix. Happy to review any PRs to fix it.
mcdonc commentedon Jun 21, 2018
From @idesignedme on August 12, 2016 12:17
@jonparrott how do I go about this I'm new to programming even newer to using git hub. How do I make a pull request?
mcdonc commentedon Jun 21, 2018
From @theacodes on August 12, 2016 16:10
@idesignedme welcome to open-source. I can try to point you in the right direction, but there's a lot of stuff to cover!
I'd recommend starting with github's guide on collaborating. :)
mcdonc commentedon Jun 21, 2018
From @WinterIsComming on September 12, 2016 18:19
Hi Any solution for this error
mcdonc commentedon Jun 21, 2018
This bug is filed against the wrong repository, I believe. It should be in https://github.com/google/gdata-python-client . I think there may be an official way to move it there, but it's not immediately obvious how to do that.
mcdonc commentedon Jun 21, 2018
This issue was moved from google-api-python-client using https://github-issue-mover.appspot.com/ so its original commenter identities have been lost, converted to @ mentions
jloehel commentedon Aug 16, 2019
It should be
<function>.__name__not<function>.func_namein python3, right?https://docs.python.org/3/whatsnew/3.0.html#miscellaneous-other-changes
eldhoshaji commentedon Oct 22, 2019
Try installing gdata with the following command,
pip install gdata-python3