Skip to content
This repository has been archived by the owner on Dec 29, 2022. It is now read-only.

Error under python3.4 #29

Open
atorkhov opened this issue Jun 29, 2015 · 19 comments
Open

Error under python3.4 #29

atorkhov opened this issue Jun 29, 2015 · 19 comments

Comments

@atorkhov
Copy link

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

I second this issue.

@linguinee
Copy link

I'm seeing this as well. Any updates?

@nicolasmouazan
Copy link

getting this one too. Any workaround?

@linguinee
Copy link

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.

carlosfunk pushed a commit to carlosfunk/gdata-python-client that referenced this issue Sep 24, 2015
@Savier
Copy link

Savier commented Oct 27, 2015

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

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

@absudabsu
Copy link

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

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

@absudabsu
Copy link

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

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

@NerdHerd91
Copy link

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

Hi Any Solution ?

@Charlie37
Copy link

Hello, I second this issue :-)

@FrancoJim
Copy link

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

@k-funk
Copy link

k-funk commented Feb 15, 2017

@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
Copy link

dvska commented Jun 9, 2017

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

Ncalverley added a commit to Ncalverley/lime that referenced this issue Aug 5, 2018
…' was renamed in python 3+ to '__name__'. I found one potential solution to an identical problem in this thread: google/gdata-python-client#29.

Trying it here.
@people-can-fly
Copy link

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

@ghost
Copy link

ghost commented Aug 27, 2019

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

@benjaminwhtan
Copy link

benjaminwhtan commented Oct 16, 2019

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

There's been one since 2016, but no one with write permission has merged: #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
Copy link

Tahirhan commented Oct 18, 2019

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

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