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

Error message optional_warn_function.func_name = f.func_name AttributeError: 'function' object has no attribute 'func_name' #254

Closed
idesignedme opened this issue Jul 27, 2016 · 9 comments
Assignees
Labels
priority: p1 Important issue which blocks shipping the next release. Will be fixed prior to next release. 🚨 This issue needs some love. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.

Comments

@idesignedme
Copy link

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 ?

@theacodes
Copy link
Contributor

Can we get a full stacktrace here so we know where this occurred?

Additionally, I'm happy to review any PRs to fix this.

@theacodes theacodes added the type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns. label Jul 27, 2016
@idesignedme
Copy link
Author

idesignedme commented Aug 5, 2016

@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

@theacodes
Copy link
Contributor

theacodes commented Aug 8, 2016

Gotcha. Seems like func_name is gone in 3.5. Should be an easy fix. Happy to review any PRs to fix it.

@idesignedme
Copy link
Author

@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?

@theacodes
Copy link
Contributor

@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. :)

@WinterIsComming
Copy link

Hi Any solution for this error

@JustinBeckwith JustinBeckwith added 🚨 This issue needs some love. triage me I really want to be triaged. labels Jun 8, 2018
@JustinBeckwith JustinBeckwith added the priority: p1 Important issue which blocks shipping the next release. Will be fixed prior to next release. label Jun 19, 2018
@JustinBeckwith JustinBeckwith removed the triage me I really want to be triaged. label Jun 19, 2018
@mcdonc
Copy link
Contributor

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
Contributor

mcdonc commented Jun 21, 2018

This issue was moved to google/gdata-python-client#65

@mcdonc mcdonc closed this as completed Jun 21, 2018
@mcdonc
Copy link
Contributor

mcdonc commented Jun 21, 2018

I used https://github-issue-mover.appspot.com/ to move the issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: p1 Important issue which blocks shipping the next release. Will be fixed prior to next release. 🚨 This issue needs some love. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Projects
None yet
Development

No branches or pull requests

5 participants