My favorites | Sign in
Project Logo
                
Search
for
Updated Jan 21, 2009 by pub...@kered.org
Installation  

Note: These are installation instructions for Linux. For Windows, click here.

I've developed this program on Ubuntu 7.10 (Gutsy Gibbon), and have done little testing outside this release. But I can tell you that you'll need something fairly recent. Specifically, if your distro is using pygtk < v2.12, not everything will work.

No prebuilt packages yet, sorry. You'll need the following libraries:

  • Ubuntu: sudo apt-get install python python-glade2 python-gnome2 python-sqlite3 graphviz
  • Debian: sudo apt-get install python python-glade2 python-gnome2 python-sqlite3 graphviz
  • Redhat: sudo yum install pygtk2 pygtk2-libglade python-sqlite3 graphviz

Note: If your distro doesn't have python-sqlite3, you can instead use pysqlite2. Read how to install pysqlite2.

Now run (from wherever you want to install to):

  1. svn checkout http://gpapers.googlecode.com/svn/trunk/ gpapers
  2. cd gpapers
  3. tar -zvxf ext/Django-1.0.2-final.tar.gz Django-1.0.2-final/django
  4. mv Django-1.0.2-final/django .
  5. rmdir Django-1.0.2-final/django

You will also need to install python-poppler. This is an extremely new library which allows embedding PDF files into pygtk apps. You can install this by running (from the ext directory):

  1. sudo apt-get install build-essential libpoppler-dev libpoppler-glib-dev python-cairo-dev bzr gnome-common python-dev python-gnome2-dev python-gtk2-dev python-gobject-dev python-pyorbit-dev
  2. tar -zxvf pypoppler-0.8.1.tar.gz
  3. cd pypoppler-0.8.1
  4. ./configure
  5. make
  6. sudo make install


Comment by zooemhh, Mar 23, 2008

help me please ImportError?: "no module named BeautifulSoup?" at run python gPapers.py

Comment by wdjoyner, May 01, 2008

As of May 1 2008, the svn instructions don't work:

wdj@wooster:~/wdj/papers$ svn checkout http://gpapers.googlecode.com/svn/trunk/ gpapers
svn: PROPFIND request failed on '/svn/trunk'
svn: PROPFIND of '/svn/trunk': 502 Bad Gateway (http://gpapers.googlecode.com)
Comment by pub...@kered.org, May 01, 2008

google's svn servers have been flaky lately, falsely flagging legit traffic as bots. see: http://groups.google.com/group/google-code-hosting/browse_thread/thread/d02f5a8da6a4887b/9090fcc221f065ad

but it is working for me right now. try again.

Comment by pub...@kered.org, May 01, 2008

zooemhh,

do you have "BeautifulSoup?.py" in your gpapers directory still?

Comment by nucleic81, May 01, 2008

hi the following error...;( wat to do....

svn: PROPFIND request failed on '/svn/trunk' svn: PROPFIND of '/svn/trunk': could not connect to server (http://gpapers.googlecode.com)

Comment by wdjoyner, May 01, 2008

Work now. Thanks Derek Anderson !

Comment by aendruk, May 01, 2008

Works beautifully on Ubuntu 8.04, with python-sqlite instead of python-sqlite3. Thanks!

Comment by oleg.yordanov, May 03, 2008

Can you please post installation instructions for Slackware 12.0? Thank you.

Comment by rodolfo....@gmail.com, May 06, 2008

Great project!! I installed it last night in my laptop and no problem, but now that I try to install it at work, subversion asks me for a password... so I can't do the checkout :(

Comment by rodolfo....@gmail.com, May 06, 2008

I just find out why I was having trouble checking out. I'm behind a proxy, so you have to configure subversion properly.

Just in case you need to know how, go to http://subversion.tigris.org/faq.html#proxy

Greetings from Chile!

Comment by cesaram33, May 07, 2008

I am using mandriva, please, help me, how do I do for installing gpapers?, theres is other insted svn that I could use? also, I think there is not deseb for mandriva

Thank you!! Cesar Alvarez

Comment by mikas.remeika, May 08, 2008

http://bazaar.launchpad.net/~poppler-python/poppler-python/poppler-0.6-experimental is a dead link now... is python-poppler located somewhere else now?

Comment by aohara1986, May 08, 2008

python-poppler is now located at: http://bazaar.launchpad.net/~poppler-python/poppler-python/trunk

The problem is that it now requires several newer versions of the prereq packages which are not yet available via synaptic in Ubuntu 8.04...

I'm going to see what I can do about finding either the older version of poppler-python, or these other packages will have to updated manually. Kind of an annoying situation.

Comment by aohara1986, May 09, 2008

So, the prereq that needs updating is the actual poppler package. Went ahead and installed from the lasted tar ball. Now the ./autogen.sh and ./configure work, except the make on python-poppler spits back errors. I'm still waiting to here back from the main author on python-poppler. Anyone else have any suggestions? I'm just really excited to get gPapers going.

Comment by drjswalker, May 13, 2008

to fix the problem with python poppler, use an earlier version that still uses the 0.6 version of poppler. This prevents newer versions of the library confusing other applications that rely on it. ie. use the following command to checkout the previous version

bzr branch http://bazaar.launchpad.net/~poppler-python/poppler-python/trunk --revision 40

then cd trunk and run the autoconfig,configure, make and make install commands as previously described above.

Comment by mrmiller83, May 20, 2008

I Installed it on 05/18 in Ubuntu 8.04, with the following modifications:

1) python-sqlite instead of python-sqlite3 2) 'bzr branch http://bazaar.launchpad.net/~poppler-python/poppler-python/trunk --revision 40' instead of 'bzr branch http://bazaar.launchpad.net/~poppler-python/poppler-python/poppler-0.6-experimental'

It seems to be working well except IEEE, PubMed?, and CiteSeer? searches don't work. Only ACM and Google Scholar work.

Here's what it says in the terminal when I try a PubMed? search:

Traceback (most recent call last):

File "gPapers.py", line 2066, in refresh_middle_pane_from_pubmed
paired_nodes.append( (nodesi?, nodes2i?) )
IndexError?: list index out of range

Any help would be appreciated.

Other than that, great app. Thanks Derek Anderson!

Comment by dcos73, Jun 16, 2008

I'm in a similar situation as mrmiller83 (same OS and modified install). can't get PubMed?? search to work :/

I also get the same error on the terminal.

most of the searches I do are through PubMed?? and the app is just what I've been looking for... Anybody has a clue on how to solve this issue?

thanks in advance

Comment by andrew.d.king, Jun 21, 2008

Curses. I don't have my Ubuntu disk with me and I can't install all the prereqs right now. This program seems like exactly what I've been looking for -- hopefully I can install it in the next couple of days but I'd love to see and apt-get package. Thanks for the hard work!

Comment by sushobhanb, Jun 23, 2008

Could any body please tell me how to install this gpapers in fedora based system... I have been trying to install this since a month still no luck... Every time it goes up to the poppler step and i am not able to get any packages by apt-get on the other hand I already have poppler installed.

rpm -qa | grep poppler poppler-0.6.2-1.fc8

so that should not be a problem but then when I tried running gpapers.py it gives the following error

Traceback (most recent call last):

File "gPapers.py", line 105, in <module>
import poppler
ImportError?: No module named poppler could not import python-poppler

Can any one please help me with this.

Comment by gforgx, Aug 09, 2008

Hmm... Why desktop application depends on Django?!

Comment by petit.lepton, Aug 14, 2008

Dear all, I have installed gPapers on Ubuntu 8.04 but, each time I try to import a PDF file, I got the following message : -1265583216 importing paper = /home/flavien/Documents/Documentation/charte-elements.pdf Traceback (most recent call last):

File "./gPapers.py", line 332, in import_document
paper.save_full_text_file( defaultfilters.slugify(os.path.split(filename)1?.replace('.pdf',''))+'.pdf', data )
AttributeError?: 'Paper' object has no attribute 'save_full_text_file'

Comment by dolopich...@ukr.net, Sep 22, 2008

hi all! sorry for my pure English ;) I want that you know: poppler is now here : (http://bazaar.launchpad.net/~poppler-python/poppler-python/trunk/files/30) download all it files in directory named as (poppler-0.6-experimental) then open terminal in this directory and type in it ./autogen.sh ./configure make sudo make install

That`s work!!!!!

if you have any problem with svn and bzr - only download all files from http://gpapers.googlecode.com/svn/trunk/ (in trunk directory of your gPapers directory on your PC) http://code.djangoproject.com/svn/django/trunk/django http://deseb.googlecode.com/svn/trunk/src/deseb and poppler (see upper) ... django and deserb directory place in trunk directory of gPapers directory on your desktop and open terminal here, and run "python gPapers" its work

Thank`s Dereck Anderson

Comment by dolopich...@ukr.net, Sep 23, 2008

Hi! If you have any problems with svn and bzr comand then try after comands: 1) sudo apt-get install python python-glade2 python-gnome2 python-sqlite3 graphviz 2) sudo apt-get install build-essential libpoppler2 libpoppler-dev libpoppler-glib2 libpoppler-glib-dev python-cairo-dev bzr gnome-common python-dev python-gnome2-dev python-gtk2-dev python-gobject-dev python-pyorbit-dev

create "gPapers" folder whenewer you want on your desktop and then download all file and folder from http://gpapers.googlecode.com/svn/trunk/ in it. Then create in "gPapers" folders which called "deserb", "poppler-0.6-experimental" and "django" and copy in it files downloaded from (http://deseb.googlecode.com/svn/trunk/src/deseb), ((http://bazaar.launchpad.net/~poppler-python/poppler-python/trunk/files/30) and (http://code.djangoproject.com/svn/django/trunk/django) respectively. In "poppler-0.6-experimental" folder run terminal and type: 1) ./autogen.sh 2) ./configure 3) make 4) sudo make install Then open terminal in "gPapers" and run comand: python gPaper.py It work! I using Kubuntu 8.04. This is cooooool scientific software!!! I being advertise it everywhere when I can!

Comment by Serkan.Ates, Oct 02, 2008

Hi, I have followed all the instructions given above, but when I type ./autogen.sh I have an error "command not found" . I am new in Linux and don't know how to proceed. Any help would be appreciated. Regards,

Comment by andreaguarnera, Oct 21, 2008

You have to change the permissions of the file autogen.sh

sudo chmod a+x autogen.sh

Comment by trentyarwood, Nov 05, 2008

+1 for a deb for this program... it looks great!

Comment by jscnbach, Nov 06, 2008

I am using Ubuntu8.04. By following the instruction, I had trouble compiling pysqlite2. The system complains something like: src/connection.h:33:21: error: sqlite3.h: no such file So it didn't succeed. However, I had python-pysqlite2 installed on the system -- I wonder if that is OK? Anyhow, when I ran gpapers, it seems that it can not import local files or directories. It went through the process but nothing really happened. Can anyone please help?

Comment by trentyarwood, Nov 07, 2008

I've just been trying to install, and got this from the autogen script:

checking for PYPOPPLER... configure: error: Package requirements ( pygtk-2.0 >= 2.10.0,

atk >= 1.6.0, poppler-glib >= 0.10, pycairo >= 1.2.0 ) were not met:

Requested 'poppler-glib >= 0.10' but version of poppler-glib is 0.8.7

--- What gives? Is 0.8 no longer >0.1

Comment by trentyarwood, Nov 07, 2008

If you're having trouble (as I did) with the poppler install, a cheat work-around is to download this deb:

pool/main/p/python-poppler/python-poppler-dbg_0.8.1-1_i386.deb

from your favourite debian mirror. Works like a charm!

Comment by freephys, Nov 08, 2008

i have tries to install it on 2.6.25-14.fc9.i686 but failed. I found following things: 1. yum install poppler on fc9 gives version 0.8.14,so you got to http://poppler.freedesktop.org/ to download the source code and install it. this went smooth with me. I also manage to find poppler-glib-0.10.0.tgz and unzip lib folder under /usr/lib , unzip include to /usr/local/include/poppler/ . 2. it is ok to yum install pygtk2-libglade python-sqlite3 graphviz. 3. as mentioned above, ithttp://bazaar.launchpad.net/~poppler-python/poppler-python/trunk

After finishing the above 3 steps . i am able to run the follwoing setps as shown in the instrcutions : # ./autogen.sh # ./configure # make # sudo make install This generates two files : poppler.so and poppler.la under /usr/local/lib/python2.5/site-packages/

when I issue gPapers.py , the system complain about : File "./gPapers.py", line 105, in <module>

import poppler
can not properly load python-poppler. I tried to use following to add path to python loading path ; >>> import sys >>> sys.path.append("/usr/lib/python2.5/site-packages/poppler") >>> sys.path.append("/usr/local/lib") >>> sys.path.append("/usr/lib") but still no good.

The gPaper looks interesting, however the installation is a pain

Comment by harris.gl, Jan 07, 2009

gPapers could be incredibly useful. Thanks for your work and I hope development can continue.

On Mandriva Cooker, the python-poppler modules installed in /usr/local/lib64/python2.6/site-packages. To get past the line 105 import failure, I used the following:

export PYTHONPATH="$PYTHONPATH:/usr/local/lib64/python2.6/site-packages"

After that the program loads successfully.

The first thing I tried was to import a locally stored pdf file. This failed with the same error reported by petit.lepton above:

trying to fetch: '/home/greg/Documents/enforcementmanual.pdf'? 1115003216 importing paper = /home/greg/Documents/enforcementmanual.pdf Traceback (most recent call last):

File "gPapers.py", line 332, in import_document
paper.save_full_text_file( defaultfilters.slugify(os.path.split(filename)1?.replace('.pdf',''))+'.pdf', data )
AttributeError?: 'Paper' object has no attribute 'save_full_text_file'

My assumption is that this is an issue with this particular file (available at http://www.sec.gov/divisions/enforce/enforcementmanual.pdf). It would be nice if there were some feedback within gPapers about what, if anything, could be done.

In a test search on Google Scholars ("dark matter"), the title and year were not parsed correctly from the metadata. Importing one article at random did not give very useful results. Two co-authors and a source were available, although the My Library count did not increment (it did eventually after some clicking around), but there was no further data. The Google Scholar search results were cleared. There's a lot of output in the terminal, but I forgot to look at this for each action in the program window. A lot of it is repeated as:

Traceback (most recent call last):

File "gPapers.py", line 1864, in refresh_middle_pane_from_my_library
if os.path.isfile( paper.get_full_text_filename() ):
AttributeError?: 'Paper' object has no attribute 'get_full_text_filename'

My wife works in medical research and would be thrilled with something like this to deal with her collection of papers. Thanks for a brilliant start.

Comment by shouri, Jan 18, 2009

Your instruction about downloading the python-poppler from the 0.6-experimental branch is no longer valid. The branch no longer exists.

One can download python-poppler, but the code doesn't configure (forget compile) on Ubuntu Intrepid. The dependency that is missing is poppler-glib. I believe it is looking for poppler-glib2 >= 0.10, whereas Intrepid comes with poppler-glib3 0.8.7.

Comment by mikejde, Apr 05, 2009

I get the same error as shouri (Jan. 18, 2009 comment) on Ubuntu 8.10 Intrepid. However, I do have glib2 installed and still get the error. Someone build a .deb for this!

Comment by apgolshan, Apr 18, 2009

i installed it on juanty ( ubunutu 9.04 ) but dont know how to run it?!! can someone help meeee?

Comment by dblips, Apr 30, 2009
  1. svn checkout http://gpapers.googlecode.com/svn/trunk/ gpapers
  2. sudo apt-get install python-poppler
  3. python gpapers/gPapers.py

worked for me on ubuntu 9.04 -- so far, with some crashes

Comment by barmpoutis, Jun 01, 2009

This software is indeed a godsend for people in academia. Thank you so much for writing it, let us know if you are planning to maintain it, we would be happy to test it and report any bugs.

Comment by dolopichtis, Jul 16, 2009

Hi! I run it in Windows XP SP2 under andLinux (http://www.andlinux.org) :). It's works...not bad ;) and try cb2bib or JabRef??? or Zotero... Becouse we haven't right article\PhD writing software until now. and more thing... try cb2bib, JabRef???, Zotero, BibTex4Word???, LyX (beamer), PDF-X-Change reader.

I found www.mendeley.com it`s interesting and free for Windows\Linux\Mac


Sign in to add a comment
Hosted by Google Code