more details about HOW TO USE #6

Closed
ppKrauss opened this Issue Oct 17, 2012 · 13 comments

Comments

Projects
None yet
4 participants

What the URL? http://localhost/docvert
? no. port 81? no...

Hou to do a "plug-and-play instalation?", like http://packages.ubuntu.com/lucid/web/docvert
but or NEW VERSION?

Owner

holloway commented Oct 17, 2012

Hi, once you run ./docvert-web.py it will be available at http://localhost:8080 . There are also some command line parameters that will make it available on other ports.

Unfortunately the Debian/Ubuntu maintainer no longer packages Docvert, and those packages use the out-of-date PHP version.

holloway closed this Oct 17, 2012

Jamn42 commented Oct 17, 2012

Sorry to ask again, but is there any distro (linux or unix) that i can use with docvert ? Do u recommend one ?
PLease... I am setting up the env, i can use any, even windows server. But what do u suggest ?

Ty a lot

Owner

holloway commented Oct 18, 2012

No problem, I'll get you a recommendation tonight (in about 12 hours)

Owner

holloway commented Oct 18, 2012

I imagine that it will work on any modern Ubuntu or Debian however as I'm using Mint (which is very similar to Ubuntu) then I'll recommend that. I'm using Mint 12.04.

However if you do have another Debian/Ubuntu-based Linux around then please just try that. It's fairly easy to install.

After installing that I just do this to get it going,

sudo apt-get install libreoffice python-uno python-lxml python-imaging pdf2svg librsvg2-2
/usr/bin/soffice -headless -norestore -nologo -norestore -nofirststartwizard -accept="socket,port=2002;urp;"

then in another terminal

cd ~
git clone git://github.com/holloway/docvert.git
cd docvert
python ./docvert-web.py

and browse to http://localhost:8080

Jamn42 commented Oct 19, 2012

I managed to work on Deb 6.06. But when i load the sample file given and converted to simple web page, it didn't create all the file. Just the part after the first 2 pages. how can i do all document ?

ty

Jamn42 commented Oct 19, 2012

BTW, thwe version is 4.07 and asked one long page, if i ask for break up over Heading 1, nothing happens on the preview page. Zip file created is the same.

Owner

holloway commented Oct 20, 2012

Which exact version of Python, lxml, and LibreOffice/OpenOffice are you running?

Are you using Ubuntu 6.06? If so, that means you're using a linux distro from June 2006... a 6 year old distro that builds upon a 6 year old version of OpenOffice won't be able to handle most conversions.

When you say that the version is 4.07 what do you mean? Which version... Docvert? If so, please use the latest version.

Jamn42 commented Oct 22, 2012

It worked! Cool. Using iceweasel (firefox fork for Debian) Ty for yr help!

erelsgl commented Jan 24, 2013

I tried the above on Ubuntu 12.04, and got:

erelsgl@erel-biu:/host/lxml$ python /host/docvert/docvert-web.py
Traceback (most recent call last):
File "/host/docvert/docvert-web.py", line 30, in
import core.docvert
File "/host/docvert/core/docvert.py", line 7, in
import docvert_pipeline
File "/host/docvert/core/docvert_pipeline.py", line 3, in
import lxml.etree
ImportError: No module named lxml.etree

So I tried to install lxml.tree, but got errors during build...

Any idea?

Owner

holloway commented Jan 24, 2013

So if you're saying that if you type,

apt-get install python-lxml

You get install errors? That sounds like a distribution problem, but can
you post the error?

On Thu, Jan 24, 2013 at 8:17 PM, erelsgl notifications@github.com wrote:

I tried the above on Ubuntu 12.04, and got:

erelsgl@erel-biu:/host/lxml$ python /host/docvert/docvert-web.py
Traceback (most recent call last):
File "/host/docvert/docvert-web.py", line 30, in
import core.docvert
File "/host/docvert/core/docvert.py", line 7, in
import docvert_pipeline
File "/host/docvert/core/docvert_pipeline.py", line 3, in
import lxml.etree
ImportError: No module named lxml.etree

So I tried to install lxml.tree, but got errors during build...

Any idea?


Reply to this email directly or view it on GitHubhttps://github.com/holloway/docvert/issues/6#issuecomment-12640283.

.Matthew Holloway
http://holloway.co.nz/

erelsgl commented Jan 24, 2013

No, I already have python-lxml:

erelsgl@erel-biu:/host/lxml$ sudo apt-get install python-lxml
...
python-lxml is already the newest version.

But I still get the same error "No module named lxml.etree" (so I tried to
install lxml.etree directly from the source, and then got those
installation errors).

On Thu, Jan 24, 2013 at 10:29 AM, Matthew Holloway <notifications@github.com

wrote:

So if you're saying that if you type,

apt-get install python-lxml

You get install errors? That sounds like a distribution problem, but can
you post the error?

On Thu, Jan 24, 2013 at 8:17 PM, erelsgl notifications@github.com
wrote:

I tried the above on Ubuntu 12.04, and got:

erelsgl@erel-biu:/host/lxml$ python /host/docvert/docvert-web.py
Traceback (most recent call last):
File "/host/docvert/docvert-web.py", line 30, in
import core.docvert
File "/host/docvert/core/docvert.py", line 7, in
import docvert_pipeline
File "/host/docvert/core/docvert_pipeline.py", line 3, in
import lxml.etree
ImportError: No module named lxml.etree

So I tried to install lxml.tree, but got errors during build...

Any idea?


Reply to this email directly or view it on GitHub<
https://github.com/holloway/docvert/issues/6#issuecomment-12640283>.

.Matthew Holloway
http://holloway.co.nz/


Reply to this email directly or view it on GitHubhttps://github.com/holloway/docvert/issues/6#issuecomment-12641767.

Owner

holloway commented Jan 24, 2013

Hmm.. maybe it's available only under a particular version of Python. Try,

python2.6 docvert-web.py

or

python2.7 docvert-web.py

On Thu, Jan 24, 2013 at 9:48 PM, erelsgl notifications@github.com wrote:

No, I already have python-lxml:

erelsgl@erel-biu:/host/lxml$ sudo apt-get install python-lxml
...
python-lxml is already the newest version.

But I still get the same error "No module named lxml.etree" (so I tried to
install lxml.etree directly from the source, and then got those
installation errors).

On Thu, Jan 24, 2013 at 10:29 AM, Matthew Holloway <
notifications@github.com

wrote:

So if you're saying that if you type,

apt-get install python-lxml

You get install errors? That sounds like a distribution problem, but can
you post the error?

On Thu, Jan 24, 2013 at 8:17 PM, erelsgl notifications@github.com
wrote:

I tried the above on Ubuntu 12.04, and got:

erelsgl@erel-biu:/host/lxml$ python /host/docvert/docvert-web.py
Traceback (most recent call last):
File "/host/docvert/docvert-web.py", line 30, in
import core.docvert
File "/host/docvert/core/docvert.py", line 7, in
import docvert_pipeline
File "/host/docvert/core/docvert_pipeline.py", line 3, in
import lxml.etree
ImportError: No module named lxml.etree

So I tried to install lxml.tree, but got errors during build...

Any idea?


Reply to this email directly or view it on GitHub<
https://github.com/holloway/docvert/issues/6#issuecomment-12640283>.

.Matthew Holloway
http://holloway.co.nz/


Reply to this email directly or view it on GitHub<
https://github.com/holloway/docvert/issues/6#issuecomment-12641767>.


Reply to this email directly or view it on GitHubhttps://github.com/holloway/docvert/issues/6#issuecomment-12642256.

.Matthew Holloway
http://holloway.co.nz/

erelsgl commented Jan 24, 2013

I already have python2.7, and get the same error.

On Thu, Jan 24, 2013 at 10:56 AM, Matthew Holloway <notifications@github.com

wrote:

python2.7 docvert-web.py

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment