crasher in SVN - Facebook module



Hi,

I'm having a trouble getting conduit to work from SVN due to a crasher
in the facebook module.

(Aside) I was playing around with conduit to sync my f-spot photos to
facebook, when I noticed that conduit doesn't rotate photos
automatically (according to EXIF data) when they are uploaded, so I have
started work on a small patch to do this (based on the patch for bug
#549861 [EXIF headers are lost when syncing resized pictures]
http://bugzilla.gnome.org/show_bug.cgi?id=549861 ). Unfortunately this
is getting in the way.

After closing the "login page" window, conduit crashes (every time).

Here is a traceback I get when I try to 'Refresh' the facebook sink, but
close the window instead of entering username and password:

[Web                 ][INFO   ] Logging in using browser: gtkmozembed
(thread: 1115937104) (Web.py:162)
[Web                 ][DEBUG  ] Created login window (thread:
1115937104) (Web.py:30)
[Web                 ][DEBUG  ] Wait for login (thread: 1115937104)
(Web.py:133)
[Web                 ][DEBUG  ] Create page:
http://www.facebook.com/login.php?canvas=1&api_key=6ce1868c3292471c022c771c0d4d51ed&auth_token=691be072a6cab15e29278ff4e9457a24&v=1.0 (thread: 140316873484000) (Web.py:63)
location: /usr/lib/xulrunner-1.9/libxpcom.so 
before 3
[WebBrowser          ][INFO   ] Configuring Mozilla profile dir
(WebBrowserMozilla.py:23)
[Web                 ][DEBUG  ] Delete page (thread: 140316873484000)
(Web.py:44)
[Web                 ][DEBUG  ] Finished login (thread: 1115937104)
(Web.py:146)
[modules.Facebook    ][INFO   ] Trying Login (FacebookModule.py:110)
[Syncronization      ][CRITICAL] UNKNOWN REFRESH ERROR: Wrapper:
Facebook sink (UID: FacebookSink-)
Traceback (most recent call last):
  File "/home/james/conduit/conduit/Synchronization.py", line 828, in
run
    self.dataproviderWrapper.module.refresh()
  File
"/home/james/conduit/conduit/modules/FacebookModule/FacebookModule.py",
line 177, in refresh
    self._login()
  File
"/home/james/conduit/conduit/modules/FacebookModule/FacebookModule.py",
line 102, in _login
    sleep_time=45,              #long sleep time to give time to login
if using system browser
  File "/home/james/conduit/conduit/Web.py", line 181, in __init__
    login.wait_for_login(name, url, **kwargs)
  File "/home/james/conduit/conduit/Web.py", line 150, in wait_for_login
    if testFunc != None and testFunc():
  File
"/home/james/conduit/conduit/modules/FacebookModule/FacebookModule.py",
line 111, in _try_login
    rsp = self.fapi.auth.getSession()
  File
"/home/james/conduit/conduit/modules/FacebookModule/pyfacebook/__init__.py", line 474, in getSession
    result = self._client('%s.getSession' % self._name, args)
  File
"/home/james/conduit/conduit/modules/FacebookModule/pyfacebook/__init__.py", line 803, in __call__
    return self._parse_response(response, method)
  File
"/home/james/conduit/conduit/modules/FacebookModule/pyfacebook/__init__.py", line 777, in _parse_response
    self._check_error(result)
  File
"/home/james/conduit/conduit/modules/FacebookModule/pyfacebook/__init__.py", line 732, in _check_error
    raise FacebookError(response['error_code'], response['error_msg'],
response['request_args'])
FacebookError: Error 100: Invalid parameter
 (Synchronization.py:837)
[Syncronization      ][WARNING] Sync Aborted (Synchronization.py:842)
[Syncronization      ][DEBUG  ] Deleting worker:
<RefreshDataProviderWorker(Wrapper: Facebook sink (UID: FacebookSink-),
stopped)> (Synchronization.py:86)
/usr/lib/bug-buddy/conduit.real: No such file or directory.


If I enter username + password, I don't get any errors on the command
line, but conduit still crashes. I am not sure how to debug it, since it
runs in a thread - how can I do something like a pdb.set_trace()?


Thanks in advance,

James Utter

Attachment: signature.asc
Description: This is a digitally signed message part



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]