J ([info]banana) wrote in [info]lj_dev,
@ 2008-07-16 23:24:00
Previous Entry  Add to memories!  Tell a Friend!  Next Entry
Fotobilder export
I'm having trouble with my Fotobilder client. I'd like to be able to export the user's pictures as a backup. I knew that the Perl client did this, so I looked at how it works. It's rather different to the rest of the Fotobilder stuff: it seems to get the export data by POSTing to http://pics.livejournal.com/manage/export, and it seems to authenticate by a challenge/response cookie. I hope I've understood this correctly.

My first problem is that when my client requests an export I get a 302 sending me to the LJ login page - presumably because the server doesn't like my cookie. To find out if it was just me getting it wrong, I tried running the Perl client. My second problem is that when I try ./fotoup.pl --backup it says
Fetching export.xml from server...
Can't locate object method "new" via package "XML::LibXML::SAX" at /usr/lib/perl5/vendor_perl/5.10/XML/SAX/ParserFactory.pm line
 43.
Now I'm stumped.
  1. Is the Perl client broken?
  2. Does the Perl client work under Cygwin?
  3. Does the server still accept this style of authentication?
  4. Is there any way to get the export data through the normal protocol?


(Post a new comment)


[info]pauamma
2008-07-17 06:49 am UTC (link)
Check the following:
- libxml2 is installed (wherever cygwin would put object code libraries)
- XML::LibXML (the perl module) is installed, accessible through perl INC, and includes the XML::LibXML::SAX package.

What is the output of the following command:

perl -e 'use XML::LibXML; print "XML::LibXML::VERSION=$XML::LibXML::VERSION\nXML::LibXML::SAX::VERSION=$XML::LibXML::SAX::VERSION\n";'

(Reply to this)(Thread)


[info]banana
2008-07-18 10:43 pm UTC (link)
Thanks. It doesn't look good:
Can't load '/usr/lib/perl5/vendor_perl/5.10/i686-cygwin/auto/XML/LibXML/Common/Common.dll' for module XML::LibXML::Common: No such file or directory at /usr/lib/perl5/5.10/i686-cygwin/DynaLoader.pm line 201.
 at /usr/lib/perl5/vendor_perl/5.10/i686-cygwin/XML/LibXML.pm line 12
Compilation failed in require at /usr/lib/perl5/vendor_perl/5.10/i686-cygwin/XML/LibXML.pm line 12.
BEGIN failed--compilation aborted at /usr/lib/perl5/vendor_perl/5.10/i686-cygwin/XML/LibXML.pm line 12.
Compilation failed in require at -e line 1.
BEGIN failed--compilation aborted at -e line 1.

(Reply to this)(Parent)(Thread)


[info]pauamma
2008-07-18 11:03 pm UTC (link)
It looks like some of the necessary modules or libraries didn't get installed or not installed properly. Try installing them by hand (or reinstalling them). If that doesn't work, check Cygwin docs or support resources.

(Reply to this)(Parent)(Thread)


[info]banana
2008-07-18 11:28 pm UTC (link)
OK, thanks.

(Reply to this)(Parent)


Create an Account
Forgot your login?
Login w/ OpenID
English • Español • Deutsch • Русский…