Re: [OpenIndiana-discuss] Calibre doc converter to ebooks formats for OpenIndiana??

2012-08-09 Thread Jan Owoc
On Thu, Aug 9, 2012 at 7:03 AM, Milan Jurik milan.ju...@xylab.cz wrote:
 Sooner or later Python 3.2 will be provided in OI SFE but I am not sure how
 much it can coexists with 2.6

Many GNU/Linux distributions have both a Python2 and a Python3 in
their repositories. I happen to have both installed on one of my
systems.

The way it works is similar to how it's frequently done with gcc,
where there is a series of symbolic links, with the plain python
command pointing toward the version that is considered most universal:

~$ ls -l /usr/bin/pyth*
lrwxrwxrwx 1 root root   9 Apr 23 10:06 /usr/bin/python - python2.7
lrwxrwxrwx 1 root root   9 Apr 23 10:06 /usr/bin/python2 - python2.7
-rwxr-xr-x 1 root root 2989480 Jul 31 23:40 /usr/bin/python2.7
-rwxr-xr-x 1 root root1652 Jul 31 23:40 /usr/bin/python2.7-config
lrwxrwxrwx 1 root root  16 Apr 17 11:20 /usr/bin/python2-config -
python2.7-config
lrwxrwxrwx 1 root root   9 Apr 14 23:13 /usr/bin/python3 - python3.2
lrwxrwxrwx 1 root root  11 May  3 09:52 /usr/bin/python3.2 - python3.2mu
-rwxr-xr-x 1 root root 2954048 May  3 09:52 /usr/bin/python3.2mu
lrwxrwxrwx 1 root root  11 Apr 14 23:13 /usr/bin/python3mu - python3.2mu
lrwxrwxrwx 1 root root  16 Apr 17 11:20 /usr/bin/python-config -
python2.7-config

When I have a program that *requires* Python 3.2, it usually knows (or
can be configured) to call python3.

Cheers,
Jan

___
OpenIndiana-discuss mailing list
OpenIndiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] Calibre doc converter to ebooks formats for OpenIndiana??

2012-08-09 Thread Francois Dion
On Thu, Aug 9, 2012 at 9:03 AM, Milan Jurik milan.ju...@xylab.cz wrote:
 On 09.08.2012 14:33, Francois Dion wrote:
 Calibre is written in python, not just the build script. The list of
 requirements is (the minimum versions):

 python  2.7.1 not 3.x
 Sooner or later Python 3.2 will be provided in OI SFE but I am not sure how
 much it can coexists with 2.6

As Jan points out in his post 2.x and 3.x can coexist fine. By design,
since python 3 is so different from python 2.4-2.7 it is supposed to
be invoked as python3. Per the release Python 3.0, also known as
“Python 3000” or “Py3K”, is the first ever intentionally backwards
incompatible Python release.

This duality is normal, and so you have a 2.x and a 3.x series interpreter.

As far as handling multiple python from a 2.x series, that is also
possible. For example, Solaris 10 is stuck at 2.4, so /usr/bin/python
is python 2.4. I installed 2.6 and If you put python2.6 in your #!
statement, then it will call that. You can also install setuptools to
that 2.6 and if you call the easy_install from the python 2.6, all the
eggs are fetched and installed correctly in the 2.6, even though 2.4
is the main version.

Going back to calibre, 3.x wouldn't help. It is written using syntax
that is unique to 2.x, and is close 2.6, except the heavy use of
dictionary features that are only in 2.7, such as dictionary
comprehension. I think this is the first 2.x based project I've
encountered to use that (calibre is also not your typical python
project in that it has quite a dependency on binary libs).

In other words, it needs python 2.7. We probably need it anyway if we
are to grow our python community.



Francois

___
OpenIndiana-discuss mailing list
OpenIndiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] Calibre doc converter to ebooks formats for OpenIndiana??

2012-08-09 Thread Milan Jurik
Hi,

Jan Owoc píše v čt 09. 08. 2012 v 07:37 -0600:
 On Thu, Aug 9, 2012 at 7:03 AM, Milan Jurik milan.ju...@xylab.cz wrote:
  Sooner or later Python 3.2 will be provided in OI SFE but I am not sure how
  much it can coexists with 2.6
 
 Many GNU/Linux distributions have both a Python2 and a Python3 in
 their repositories. I happen to have both installed on one of my
 systems.
 
 The way it works is similar to how it's frequently done with gcc,
 where there is a series of symbolic links, with the plain python
 command pointing toward the version that is considered most universal:
 
 ~$ ls -l /usr/bin/pyth*
 lrwxrwxrwx 1 root root   9 Apr 23 10:06 /usr/bin/python - python2.7
 lrwxrwxrwx 1 root root   9 Apr 23 10:06 /usr/bin/python2 - python2.7
 -rwxr-xr-x 1 root root 2989480 Jul 31 23:40 /usr/bin/python2.7
 -rwxr-xr-x 1 root root1652 Jul 31 23:40 /usr/bin/python2.7-config
 lrwxrwxrwx 1 root root  16 Apr 17 11:20 /usr/bin/python2-config -
 python2.7-config
 lrwxrwxrwx 1 root root   9 Apr 14 23:13 /usr/bin/python3 - python3.2
 lrwxrwxrwx 1 root root  11 May  3 09:52 /usr/bin/python3.2 - python3.2mu
 -rwxr-xr-x 1 root root 2954048 May  3 09:52 /usr/bin/python3.2mu
 lrwxrwxrwx 1 root root  11 Apr 14 23:13 /usr/bin/python3mu - python3.2mu
 lrwxrwxrwx 1 root root  16 Apr 17 11:20 /usr/bin/python-config -
 python2.7-config
 
 When I have a program that *requires* Python 3.2, it usually knows (or
 can be configured) to call python3.
 

well, for long time we had python 2.4 and 2.6 in OpenSolaris. So the
infrastructure is in place, only somebody has to prepare bits for
oi-build. In SFE there is spec for python3, only clash in deliverables
is 2to3 which is delivered by OI 2.6 already.

 Cheers,
 Jan

Best regards,

Milan


___
OpenIndiana-discuss mailing list
OpenIndiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] Calibre doc converter to ebooks formats for OpenIndiana??

2012-08-09 Thread Lou Picciano



From: Jan Owoc jso...@gmail.com 
To: Discussion list for OpenIndiana openindiana-discuss@openindiana.org 
Sent: Thursday, August 9, 2012 9:37:32 AM 
Subject: Re: [OpenIndiana-discuss] Calibre doc converter to ebooks formats for 
OpenIndiana?? 
On Thu, Aug 9, 2012 at 7:03 AM, Milan Jurik milan.ju...@xylab.cz wrote: 
 Sooner or later Python 3.2 will be provided in OI SFE but I am not sure how 
 much it can coexists with 2.6 


blockquote

Many GNU/Linux distributions have both a Python2 and a Python3 in 
their repositories. I happen to have both installed on one of my 
systems. 
/blockquote

blockquote


/blockquote

blockquote

/blockquote
We do quite a bit of 'experimentation' with various versions of Python, so have 
several versions installed at a given moment. The Python 'altinstall' option is 
your friend here through all v2s of python. In fact - if memory serves, since 
v3.0(?), I believe 'make install' is now an alias for 'make altinstall'. The 
'make fullinstall' option now exists for when you're ready to make the jump to 
v3-as-default. 


Really, the developer has fully granular control over which binary to use in a 
given environment; they coexist quite nicely in separate trees. (Some crazy 
developer might well have 2.4, 2.6, 2.7 and 3.2, all in harmonious 
cohabitation.) 


Of course, the only big gotcha is that the binary named 'python' is called, by 
default, by many things - and so should be agreed upon. We can make the 
determination of which version is to be so blessed as 'The OS Version' as 
necessary bits and pieces make it into versions. 


Fwiw, I've suggested we use these binary naming conventions within our own 
userland builds; they seem to accommodate most developer use cases (we have 
many), and allow for rapid transition in the future; for example, for all the 
system-level uses of python. 



(OK, I had to look it up: see release notes for 3.0a5: 
http://www.python.org/getit/releases/3.0.1/NEWS.txt ) 

blockquote



The way it works is similar to how it's frequently done with gcc, 
where there is a series of symbolic links, with the plain python 
command pointing toward the version that is considered most universal: 


~$ ls -l /usr/bin/pyth* 
lrwxrwxrwx 1 root root 9 Apr 23 10:06 /usr/bin/python - python2.7 
lrwxrwxrwx 1 root root 9 Apr 23 10:06 /usr/bin/python2 - python2.7 
-rwxr-xr-x 1 root root 2989480 Jul 31 23:40 /usr/bin/python2.7 
-rwxr-xr-x 1 root root 1652 Jul 31 23:40 /usr/bin/python2.7-config 
lrwxrwxrwx 1 root root 16 Apr 17 11:20 /usr/bin/python2-config - 
python2.7-config 
lrwxrwxrwx 1 root root 9 Apr 14 23:13 /usr/bin/python3 - python3.2 
lrwxrwxrwx 1 root root 11 May 3 09:52 /usr/bin/python3.2 - python3.2mu 
-rwxr-xr-x 1 root root 2954048 May 3 09:52 /usr/bin/python3.2mu 
lrwxrwxrwx 1 root root 11 Apr 14 23:13 /usr/bin/python3mu - python3.2mu 
lrwxrwxrwx 1 root root 16 Apr 17 11:20 /usr/bin/python-config - 
python2.7-config 


When I have a program that *requires* Python 3.2, it usually knows (or 
can be configured) to call python3. 


Cheers, 
Jan 


___ 
OpenIndiana-discuss mailing list 
OpenIndiana-discuss@openindiana.org 
http://openindiana.org/mailman/listinfo/openindiana-discuss 
/blockquote
___
OpenIndiana-discuss mailing list
OpenIndiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss


[OpenIndiana-discuss] Calibre doc converter to ebooks formats for OpenIndiana??

2012-08-08 Thread Hans J. Albertsson

Is there a version of the Calibre ebook/epub doc converter for OpenIndiana?
Or any other SW that can convert a PDF book to epub?

Epub (or other ebook formats) are much more readable on smartphones than 
standard PDFs ususally are, due to the text reflow capability.


So I'd like to be able to convert even large pdf docs to some ebook 
format, so I can take large manuals along on trips.



___
OpenIndiana-discuss mailing list
OpenIndiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] Calibre doc converter to ebooks formats for OpenIndiana??

2012-08-08 Thread Paolo Marcheschi

Hi

Instead try the online service:

http://ebook.online-convert.com/convert-to-epub

Ciao
Paolo
On 08/ 8/12 11:03 AM, Hans J. Albertsson wrote:

Is there a version of the Calibre ebook/epub doc converter for OpenIndiana?
Or any other SW that can convert a PDF book to epub?

Epub (or other ebook formats) are much more readable on smartphones than 
standard PDFs ususally are, due to the text reflow capability.

So I'd like to be able to convert even large pdf docs to some ebook format, so 
I can take large manuals along on trips.


___
OpenIndiana-discuss mailing list
OpenIndiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss





___
OpenIndiana-discuss mailing list
OpenIndiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] Calibre doc converter to ebooks formats for OpenIndiana??

2012-08-08 Thread Ray Arachelian
On 08/08/2012 05:03 AM, Hans J. Albertsson wrote:
 Is there a version of the Calibre ebook/epub doc converter for
 OpenIndiana?
 Or any other SW that can convert a PDF book to epub?

 Epub (or other ebook formats) are much more readable on smartphones
 than standard PDFs ususally are, due to the text reflow capability.

 So I'd like to be able to convert even large pdf docs to some ebook
 format, so I can take large manuals along on trips.


Sadly I don't think it's been built on OI.  There are Linux, OS X and
windows version - I guess you could install Ubuntu inside KVM and try it
there?
It's an amazing program.

___
OpenIndiana-discuss mailing list
OpenIndiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] Calibre doc converter to ebooks formats for OpenIndiana??

2012-08-08 Thread Francois Dion
On Wed, Aug 8, 2012 at 1:17 PM, Ray Arachelian r...@arachelian.com wrote:
 On 08/08/2012 05:03 AM, Hans J. Albertsson wrote:
 Is there a version of the Calibre ebook/epub doc converter for
 OpenIndiana?
 Or any other SW that can convert a PDF book to epub?

 Epub (or other ebook formats) are much more readable on smartphones
 than standard PDFs ususally are, due to the text reflow capability.

 So I'd like to be able to convert even large pdf docs to some ebook
 format, so I can take large manuals along on trips.


 Sadly I don't think it's been built on OI.  There are Linux, OS X and
 windows version - I guess you could install Ubuntu inside KVM and try it
 there?
 It's an amazing program.

Just looked at it, it requires PyQT4 and that means QT4... Is there a
prebuilt QT4?

Francois

___
OpenIndiana-discuss mailing list
OpenIndiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] Calibre doc converter to ebooks formats for OpenIndiana??

2012-08-08 Thread Milan Jurik

Hi,

On 08.08.2012 22:29, Francois Dion wrote:
On Wed, Aug 8, 2012 at 1:17 PM, Ray Arachelian r...@arachelian.com 
wrote:

On 08/08/2012 05:03 AM, Hans J. Albertsson wrote:

Is there a version of the Calibre ebook/epub doc converter for
OpenIndiana?
Or any other SW that can convert a PDF book to epub?

Epub (or other ebook formats) are much more readable on smartphones
than standard PDFs ususally are, due to the text reflow capability.

So I'd like to be able to convert even large pdf docs to some ebook
format, so I can take large manuals along on trips.



Sadly I don't think it's been built on OI.  There are Linux, OS X 
and
windows version - I guess you could install Ubuntu inside KVM and 
try it

there?
It's an amazing program.


Just looked at it, it requires PyQT4 and that means QT4... Is there a
prebuilt QT4?



yes, there are gcc and Sun Studio stdcxx based in OpenIndiana SFE repo. 
I tried to built Calibre few times many months back but it has more 
dependencies you need to solve and I had not enough energy to finish it.


I recommend to go with GCC builds of libraries in this case if somebody 
wants to do that.



Francois




Best regards,

Milan

___
OpenIndiana-discuss mailing list
OpenIndiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] Calibre doc converter to ebooks formats for OpenIndiana??

2012-08-08 Thread Francois Dion
On Wed, Aug 8, 2012 at 6:05 PM, Milan Jurik milan.ju...@xylab.cz wrote:
 On 08.08.2012 22:29, Francois Dion wrote:

 Just looked at it, it requires PyQT4 and that means QT4... Is there a
 prebuilt QT4?


 yes, there are gcc and Sun Studio stdcxx based in OpenIndiana SFE repo. I
 tried to built Calibre few times many months back but it has more
 dependencies you need to solve and I had not enough energy to finish it.

The python modules are easy. Most are only an easy_install  away.
Except lxml which requires pycrypto, and there you have to modify
_fastmath.h to find the gmp.h and then it'll go.

PyQT requires sip (from the same website as pyqt) but that also was
easy. Got pyqt working.

Not too bad, until I realized that Python 2.7.x is _really_ needed. I
thought it was just one or two tweaks, but he's using heavily
dictionary comprehension and other stuff. I'm not even going to try
until 2.7 is part of the OS.



BTW in the process I noticed that MagickWand.pc is named Wand.pc on
OI... ln -s Wand.pc MagickWand.pc takes care of that, in case anybody
else comes upon that particular problem

Francois

___
OpenIndiana-discuss mailing list
OpenIndiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss