google-code-export / django-syncr

Automatically exported from code.google.com/p/django-syncr
0 stars 0 forks source link

Flickr: User not Found #57

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hi, I've this test code: 

from django.conf import settings
from syncr.app.flickr import FlickrSyncr

f = FlickrSyncr(settings.API_KEY, settings.API_SECRET)

f.syncPublicFavorites('38867769@N04')

seems ok, but it doesn't work. I get this error:

/usr/local/lib/python2.6/dist-packages/flickrapi-1.2-py2.6.egg/flickrapi/__init_
_.py:45:
DeprecationWarning: the md5 module is deprecated; use hashlib instead
Traceback (most recent call last):
  File "bisaccia/test.py", line 7, in <module>
    f.syncPublicFavorites('38867769@N04')
  File "/home/patrick/Library/python/syncr/app/flickr.py", line 368, in
syncPublicFavorites
    nsid = self.user2nsid(username)
  File "/home/patrick/Library/python/syncr/app/flickr.py", line 40, in
user2nsid
    return self.flickr.people_findByUsername(username=username).user[0]['nsid']
  File "build/bdist.linux-i686/egg/flickrapi/__init__.py", line 337, in handler

  File "build/bdist.linux-i686/egg/flickrapi/__init__.py", line 423, in
__wrap_in_parser

  File "build/bdist.linux-i686/egg/flickrapi/__init__.py", line 242, in
parse_xmlnode

flickrapi.exceptions.FlickrError: Error: 1: User not found

How to resolve?

Thanks ;)
Patrick Guido Arminio

Original issue reported on code.google.com by patrick....@gmail.com on 29 May 2009 at 8:36

GoogleCodeExporter commented 9 years ago
Hey patrick... I think in this case you need to pass in the actual username, 
not the
NSID number. We should add a parameter to the sync functions that let you pass 
in an
NSID too...

Original comment by jesse.l...@gmail.com on 9 Jun 2009 at 1:34

GoogleCodeExporter commented 9 years ago
thanks for the reply, now it seems to work but I get a new error:
Warning: Incorrect string value: '\xCB\xA3...' for column 'comment' at row 1

here is the trackback: http://dpaste.com/53387/

Original comment by patrick....@gmail.com on 9 Jun 2009 at 6:59

GoogleCodeExporter commented 9 years ago
Hey Patrick, sorry for my delayed response. This is almost definitely a 
character set
/ collation thing with your database. Wondering if you figured that out already,
though. HTH.

Original comment by jesse.l...@gmail.com on 19 Jun 2009 at 1:38