Open atorkhov opened 9 years ago
I second this issue.
I'm seeing this as well. Any updates?
getting this one too. Any workaround?
I changed the line to call f.__name__
, which fixes the error. If someone could make a pull request for this fix, that'd be great.
Just run script 2to3 from Python/Tools/scripts something like
2to3 -w atom gdata (in site-packages).
still not working..
Python 3.4.2 (default, Jul 9 2015, 17:24:30) [GCC 5.1.1 20150618 (Red Hat 5.1.1-4)] on linux
import gdata.youtube Traceback (most recent call last): File "
", line 1, in File "/usr/lib/python3.4/site-packages/gdata/init.py", line 27, in import atom File "/usr/lib/python3.4/site-packages/atom/init.py", line 133, in CreateClassFromXMLString) File "/usr/lib/python3.4/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'
Any solution to this ? I ran 2to3 -w atom gdata and now I can't import the libs.
i ended up using the v3 api: https://developers.google.com/youtube/v3/docs/
apparently, gdata is deprecated for youtube: https://developers.google.com/gdata/docs/directory
yeah, me too. Using google-api-client-python.
Bump this is still not resolved
import gdata.apps.emailsettings.client
File "/usr/local/lib/python3.5/site-packages/gdata/__init__.py", line 27, in <module>
import atom
File "/usr/local/lib/python3.5/site-packages/atom/__init__.py", line 133, in <module>
CreateClassFromXMLString)
File "/usr/local/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'
Hi Any Solution ?
Hello, I second this issue :-)
Has this been fixed yet? What other options are there to edit Google contacts without this library?
@daklang It appears as though the gdata library isn't really maintained. Might look into using https://github.com/google/google-api-python-client. There also appears to be this API: https://developers.google.com/apis-explorer/?hl=en_US#p/people/v1/
fixed in
pip install -e git+https://github.com/dvska/gdata-python3#egg=gdata
Use f.__name__
instead of f.func_name
in the code
Still not resolved.. can ordinary folk create a pull request?
Still not resolved.. can ordinary folk create a pull request?
There's been one since 2016, but no one with write permission has merged: https://github.com/google/gdata-python-client/pull/49 As k-funk mentioned, we could consider using https://github.com/google/google-api-python-client instead. Otherwise, best bet's probably just to fork and make the update ourselves.
solved with pip3 install -e git+https://github.com/dvska/gdata-python3#egg=gdata
Error in python3.4: