Skip to content
This repository has been 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

Open
mcdonc opened this issue Jun 21, 2018 · 10 comments

Comments

@mcdonc
Copy link

mcdonc commented Jun 21, 2018

From @idesignedme on July 27, 2016 2:11

I am trying to use the google client api for python 3.5 but only 3.4 is supported I keep getting the error messag

optional_warn_function.func_name = f.func_name
AttributeError: 'function' object has no attribute 'func_name'

is there a work around or will the version compatible with 3.5 be coming out soon ?

Copied from original issue: googleapis/google-api-python-client#254

@mcdonc
Copy link
Author

mcdonc commented 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
Copy link
Author

mcdonc commented 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
Copy link
Author

mcdonc commented 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
Copy link
Author

mcdonc commented 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
Copy link
Author

mcdonc commented 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
Copy link
Author

mcdonc commented Jun 21, 2018

From @WinterIsComming on September 12, 2016 18:19

Hi Any solution for this error

@mcdonc
Copy link
Author

mcdonc commented 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
Copy link
Author

mcdonc commented 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
Copy link

jloehel commented Aug 16, 2019

It should be <function>.__name__ not <function>.func_name in python3, right?

https://docs.python.org/3/whatsnew/3.0.html#miscellaneous-other-changes

@eldhoshaji
Copy link

Try installing gdata with the following command,
pip install gdata-python3

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants