Discussion:
Can not import referencer python module
Michele Mattioni
2008-08-03 09:40:41 UTC
Permalink
Hello list,
I'm trying to develop a plugin for referencer to attach automatically
the bibtex that I've pasted in referencer with the files already
available in a directory when the title and the authors match.

The problem is the module I cannot import the module in python:

Traceback (most recent call last):
File "./ads.py", line 6, in <module>
import referencer
ImportError: No module named referencer

I'm running referencer from mercurial and I have compiled with
./autogen.sh --enable-python

Any suggestions?

Cheers,
Michele.
John Spray
2008-08-03 10:50:16 UTC
Permalink
Post by Michele Mattioni
Hello list,
I'm trying to develop a plugin for referencer to attach automatically
the bibtex that I've pasted in referencer with the files already
available in a directory when the title and the authors match.
File "./ads.py", line 6, in <module>
import referencer
ImportError: No module named referencer
Do you mean you're trying to import the module in a standalone python
session? The 'referencer' module is implemented in C++ and provided
only when running python embedded in referencer.

John
Michele Mattioni
2008-08-18 09:08:36 UTC
Permalink
Hi list, hi sean,

unfortunaly the development of this plugin has stopped. The main
problem is how to access title and author information on a PDF not
indexed by referencer.

The only idea that I have in mind is to parse all the text of the PDF
and tried to pair the title and author on referencer with the one
provided byt th PDF.

If you have any other idea, just shoot. (Thinking to use maybe Xesam
but no time to digg into it yet...)

Cheers,
Michele.
Hi Michele,
If you're happy to provide it, I'd be very keen to get a copy of your
plugin.
I want to do something similar myself (match up my imported bibtex with the
locally stored pdf documents, although they're in subdirectories by journal
name).
Cheers
Sean
Post by Michele Mattioni
Hello list,
I'm trying to develop a plugin for referencer to attach automatically
the bibtex that I've pasted in referencer with the files already
available in a directory when the title and the authors match.
File "./ads.py", line 6, in <module>
import referencer
ImportError: No module named referencer
I'm running referencer from mercurial and I have compiled with
./autogen.sh --enable-python
Any suggestions?
Cheers,
Michele.
---
To unsubscribe, send a blank email to referencer-unsubscribe at icculus.org
Mailing list archives: http://icculus.org/cgi-bin/ezmlm/ezmlm-cgi?60
Loading...