google / gdata-python-client

443 stars 227 forks source link

Error under python3.4 #29

Open atorkhov opened 9 years ago

atorkhov commented 9 years ago

Error in python3.4:

>>> import atom.http_core
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/alex/dev/other/django_env3/lib/python3.4/site-packages/atom/__init__.py", line 133, in <module>
    CreateClassFromXMLString)
  File "/home/alex/dev/other/django_env3/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'
joelfrederico commented 9 years ago

I second this issue.

linguinee commented 9 years ago

I'm seeing this as well. Any updates?

nicolasmouazan commented 8 years ago

getting this one too. Any workaround?

linguinee commented 8 years ago

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.

Savier commented 8 years ago

Just run script 2to3 from Python/Tools/scripts something like

2to3 -w atom gdata (in site-packages).

absudabsu commented 8 years ago

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'

journeytosilius commented 8 years ago

Any solution to this ? I ran 2to3 -w atom gdata and now I can't import the libs.

absudabsu commented 8 years ago

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

journeytosilius commented 8 years ago

yeah, me too. Using google-api-client-python.

NerdHerd91 commented 8 years ago

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'
WinterIsComming commented 8 years ago

Hi Any Solution ?

Charlie37 commented 7 years ago

Hello, I second this issue :-)

FrancoJim commented 7 years ago

Has this been fixed yet? What other options are there to edit Google contacts without this library?

k-funk commented 7 years ago

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

dvska commented 7 years ago

fixed in pip install -e git+https://github.com/dvska/gdata-python3#egg=gdata

people-can-fly commented 6 years ago

Use f.__name__ instead of f.func_name in the codebitmoji

ghost commented 5 years ago

Still not resolved.. can ordinary folk create a pull request?

benjaminwhtan commented 4 years ago

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.

Tahirhan commented 4 years ago

solved with pip3 install -e git+https://github.com/dvska/gdata-python3#egg=gdata