Log file Viewer
Help
|
Karma
| Search:
#pil logs for Saturday the 20th of April, 2013
(
Back to #pil overview
) (
Back to channel listing
) (
Animate logs
)
[
15:32:01
] <
wiredfool_
> hey idella4
[
15:32:31
] <
idella4
> ah is this the channel for pillow then?
[
15:33:15
] <
wiredfool_
> it is, but there aren't many people in it
[
15:33:21
] <
wiredfool_
> (obviously
[
15:33:31
] <
idella4
> I'm still attempting to make clear what pil is and pillow is
[
15:34:08
] <
wiredfool_
> pil is the original, pillow is a fork that improves packaging and is starting to get bugfixes and improvements
[
15:34:12
] <
idella4
> hope you clear the basics first
[
15:34:38
] <
wiredfool_
> So, what I'm seeing from you on github is that you're missing a bunch of libraries
[
15:34:39
] <
idella4
> well pil and imaging are quite distinct yes?
[
15:34:52
] <
idella4
> ah good you've read it
[
15:34:55
] <
wiredfool_
> in terms of who's doing it, yes
[
15:35:03
] <
idella4
> ah very good
[
15:35:06
] <
wiredfool_
> in terms of code, there's probably 99% overlap
[
15:35:11
] <
wiredfool_
> so far
[
15:35:14
] <
idella4
> well py2 works
[
15:35:19
] <
wiredfool_
> yes
[
15:35:23
] <
idella4
> the problem is py3
[
15:35:39
] <
wiredfool_
> https://github.com/python-imaging/Pillow/issues/175#issuecomment-16705719
[
15:35:49
] <
idella4
> oooh ok
[
15:37:06
] <
wiredfool_
> fwiw, I know debian/ubuntu well, and have never actually logged into gentoo
[
15:37:52
] <
idella4
> eeer, you've actually answered me in the last half hour
[
15:37:58
] <
idella4
> oos right
[
15:38:48
] <
wiredfool_
> yeah, in the last 5 minutes actually
[
15:39:14
] <
idella4
> ah well glad you're here since I still need to get this clear
[
15:40:02
] <
idella4
> all those ubuntu type packages are installed
[
15:40:14
] <
wiredfool_
> ok, then it's not finding the headers
[
15:40:21
] <
idella4
> subsequently py2 build does fine
[
15:40:45
] <
idella4
> just let me check on something first b4 I say any more
[
15:41:43
] <
idella4
> ok here's how the packages are in portage
[
15:42:05
] <
idella4
> RDEPEND=">=media-libs/jpeg-6a \ >=media-libs/freetype-2.4.9
[
15:42:34
] <
idella4
> >=media-libs/lcms-1.1.5 \ sane? ( media-gfx/sane-backends ) \ media-libs/libwebp
[
15:44:30
] <
idella4
> so these packages aren't paython packages with python modules
[
15:44:50
] <
wiredfool_
> right, they're system libraries
[
15:45:00
] <
idella4
> so you're suggesting that py3.2 build is not finding the headers yes?
[
15:45:13
] <
wiredfool_
> yes
[
15:45:18
] <
idella4
> and python2 is doing fine
[
15:45:23
] <
wiredfool_
> are you building from portage or a git checkout?
[
15:45:47
] <
idella4
> at this point I've only run the build from an ebuild
[
15:46:27
] <
idella4
> here SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_PN}-${PV}.zip -> ${P}.zip"
[
15:46:41
] <
idella4
> is the line that acquires the tarball from pypi
[
15:47:00
] <
idella4
> so if I cd to the source
[
15:47:02
] <
wiredfool_
> ok, so 2.0.0. release.
[
15:47:12
] <
wiredfool_
> should still work.
[
15:47:23
] <
idella4
> can you give me a line to run to build with py3.2 now?
[
15:47:31
] <
idella4
> hmm it should
[
15:47:37
] <
wiredfool_
> can you cd to the dir, run python3 setup.py build, and copy the output to a gist?
[
15:47:59
] <
wiredfool_
> or, first, delete the Pillow/build directory to force a clean build
[
15:48:18
] <
idella4
> yep easy
[
15:48:56
] <
idella4
> well I use the ebuild to do a clean always
[
15:49:13
] <
idella4
> so yep I have a fresh source pillow-2.0.0
[
15:49:45
] <
idella4
> shal I do python3 setup.py build > thislog.txt?
[
15:49:57
] <
idella4
> then aopy paste the file?
[
15:50:05
] <
idella4
> then copy paste the file?
[
15:50:36
] <
wiredfool_
> sure
[
15:50:46
] <
idella4
> greaaaat
[
15:50:50
] <
wiredfool_
> also, if you do python2 as well, I can see the diff
[
15:50:57
] <
idella4
> sure
[
15:51:11
] <
idella4
> ok here I go I'll do py2 first
[
15:52:22
] <
idella4
> running now
[
15:55:39
] <
idella4
> first @ https://gist.github.com/idella/5426427
[
15:56:24
] <
idella4
> Im puzzled it seems to have done just a configure and not a build
[
15:57:03
] <
idella4
> I don't need run as root do I?
[
15:57:04
] <
wiredfool_
> build should build but not install
[
15:57:19
] <
idella4
> yep
[
15:58:10
] <
wiredfool_
> ok, that's looking normal
[
15:58:16
] <
idella4
> ok it's made a build/{lib.linux-x86_64-2.7,scripts-2.7,temp.linux-x86_64-2.7}
[
15:58:34
] <
idella4
> good now can I do a clean from here
[
15:58:49
] <
idella4
> python setup.py clean or something
[
15:59:03
] <
idella4
> or popd and remake the source folder and return?
[
15:59:17
] <
wiredfool_
> if you rm the build folder it's good enough
[
15:59:24
] <
idella4
> right
[
16:02:13
] <
idella4
> right now refresh the page at gist
[
16:02:18
] <
idella4
> and you have it
[
16:03:45
] <
idella4
> idella4: awaits with baited breath
[
16:04:40
] <
wiredfool_
> yep, it's definitely not finding the libraries
[
16:05:15
] <
wiredfool_
> the gcc line on py3.2 is x86_64-pc-linux-gnu-gcc -pthread -fPIC -DHAVE_LIBZ -IlibImaging...
[
16:05:32
] <
wiredfool_
> and on 2.7 it's x86_64-pc-linux-gnu-gcc -pthread -fPIC -DHAVE_LIBJPEG -DHAVE_LIBZ -DHAVE_LIBTIFF
[
16:05:48
] <
idella4
> aha
[
16:05:51
] <
wiredfool_
> -I/usr/include/freetype2 -IlibImaging
[
16:08:05
] <
wiredfool_
> is 2.7 installing multiarch support?
[
16:08:36
] <
idella4
> oh that's a hard 1. multiarch
[
16:08:51
] <
idella4
> how does it install for mutliarch?
[
16:09:09
] <
idella4
> my system here is 64 bit multilib
[
16:09:36
] <
idella4
> however offhand I don't see how py2 py3 are distinguished
[
16:10:04
] <
wiredfool_
> looks like no
[
16:10:28
] <
wiredfool_
> 2.7 is building things like: build/lib.linux-x86_64-2.7/_imagingmath.so
[
16:10:42
] <
wiredfool_
> 3.2 is installing build/lib.linux-x86_64-3.2/_imagingmath.cpython-32.so
[
16:10:59
] <
wiredfool_
> The differences, I suspect, are in setup.py, and specifically, what's providing setuptools
[
16:11:14
] <
wiredfool_
> there's a multitude, and they're different between 2.x and 3.x
[
16:11:28
] <
wiredfool_
> there's at least setuptools, easy_install, and distribute
[
16:11:30
] <
idella4
> ah ok
[
16:12:03
] <
wiredfool_
> this is where multiarch support is: https://github.com/python-imaging/Pillow/blob/master/setup.py#L449
[
16:12:39
] <
wiredfool_
> I think we've got someone testing on fedora, or at least, someone from fedora is sending us patches
[
16:12:52
] <
idella4
> k
[
16:15:39
] <
idella4
> well here
[
16:15:42
] <
idella4
> Installed versions: 0.6.33(10:18:29 13/01/13)(PYTHON_TARGETS="pypy1_9 pypy2_0 python2_5 python2_6 python2_7 python3_1 python3_2 -pypy1_8 -python3_3")
[
16:15:53
] <
idella4
> is the portage listing od setuptools
[
16:16:06
] <
wiredfool_
> hmmm
[
16:16:26
] <
idella4
> which means that it is installed under pypy1.9 2.0
[
16:16:42
] <
idella4
> python2.5-7 python3.1-2
[
16:17:27
] <
idella4
> so with a python3.2 build it's importing from usr/lib64/python3.2/site-packages/
[
16:18:03
] <
idella4
> so what where is the slipup?
[
16:18:10
] <
wiredfool_
> not sure
[
16:18:28
] <
wiredfool_
> ok, try this.
[
16:18:31
] <
idella4
> I would think the installed state of python3.2 is stock standard
[
16:18:36
] <
idella4
> go on
[
16:18:40
] <
wiredfool_
> https://github.com/python-imaging/Pillow/blob/master/setup.py#L80
[
16:19:40
] <
wiredfool_
> make that FREETYPE_ROOT = ('/usr/lib/freetype2', '/usr/include/freetype2)
[
16:19:53
] <
wiredfool_
> FREETYPE_ROOT = ('/usr/lib/freetype2', '/usr/include/freetype2')
[
16:20:01
] <
wiredfool_
> corrected quotes
[
16:20:08
] <
idella4
> as in copy paste the setup.py replace the source setup/py?
[
16:20:13
] <
wiredfool_
> now, try a build with python3, and see if freetype2 is enabled
[
16:20:25
] <
wiredfool_
> edit the setup..py in the directory where you're building
[
16:21:04
] <
idella4
> I'm adding the line @ 80?
[
16:21:18
] <
wiredfool_
> replace the existing FREETYPE_ROOT = None line
[
16:21:31
] <
wiredfool_
> it's a tuple of (libdir, includedir)
[
16:21:54
] <
wiredfool_
> if that works, we're going to do it for jpeg, zlib, tiff and lcms
[
16:22:00
] <
idella4
> right
[
16:22:26
] <
idella4
> FREETYPE_ROOT = ('/usr/lib/freetype2', '/usr/include/freetype2')
[
16:22:33
] <
idella4
> is the correct form to enter then
[
16:23:54
] <
wiredfool_
> yep
[
16:26:29
] <
idella4
> ok we have a yes and a no
[
16:26:51
] <
idella4
> work/Pillow-2.0.0 $ python3.2 setup.py build yielded
[
16:27:10
] <
idella4
> *** FREETYPE2 support not available
[
16:27:36
] <
idella4
> $ python ./selftest.py script yielded
[
16:27:57
] <
idella4
> --- PIL CORE support ok \ --- TKINTER support ok
[
16:28:24
] <
idella4
> --- JPEG support ok \ --- ZLIB (PNG/ZIP) support ok \
[
16:28:41
] <
idella4
> *** G4 TIFF support not installed \ --- FREETYPE2 support ok
[
16:28:45
] <
idella4
> plus 2 more lines
[
16:28:47
] <
wiredfool_
> python selftest
[
16:28:50
] <
wiredfool_
> not python3
[
16:29:08
] <
wiredfool_
> can you locate libfreetype
[
16:29:31
] <
idella4
> work/Pillow-2.0.0 $ python ./selftest.py script is what I used
[
16:30:11
] <
idella4
> is it libfreetype.so or such
[
16:30:13
] <
wiredfool_
> right, but that's checking python2
[
16:30:16
] <
wiredfool_
> not python3
[
16:30:24
] <
idella4
> I can locate an installed file
[
16:30:43
] <
idella4
> oh so I need run python3.2 selftest script then
[
16:30:48
] <
wiredfool_
> probably
[
16:31:43
] <
idella4
> hm a moment
[
16:31:47
] <
wiredfool_
> ok, I've only got a couple minutes before I have to run
[
16:32:05
] <
wiredfool_
> I'd like to get this solved to get gentoo working
[
16:32:42
] <
wiredfool_
> do you have a gentoo vm that is setup that I can grab and poke at, or one that I can log into?
[
16:33:57
] <
idella4
> I don't no, but mb I guess I have contacts in gentoo
[
16:34:10
] <
idella4
> and I can locate one and give you the location
[
16:34:18
] <
idella4
> in fact I know just the man
[
16:35:11
] <
wiredfool_
> ok.
[
16:36:21
] <
wiredfool_
> shoot me the info @ eric-github@soroos.net
[
16:36:30
] <
idella4
> got it
[
16:36:45
] <
idella4
> thanks so much for your help
[
16:36:57
] <
wiredfool_
> sure thing
[
16:37:07
] <
idella4
> I just had to make symlinks for the py3.2 .sos
[
16:37:10
] <
idella4
> ran it
[
16:37:20
] <
idella4
> *** FREETYPE2 support not installed
[
16:37:26
] <
idella4
> so that hasn't worked
[
16:38:37
] <
wiredfool_
> I think it's in build_ext.compiler.find_library_files that's the problem
[
16:38:48
] <
idella4
> right
[
16:38:55
] <
wiredfool_
> If I get something I can hack on, I should be able to find it
[
16:39:17
] <
idella4
> I've pinged him now
[
16:39:21
] <
wiredfool_
> a vm with py27, 3.2, and the build tools would do it
[
16:39:26
] <
wiredfool_
> and emacs
[
16:39:27
] <
idella4
> how long have you?
[
16:39:41
] <
idella4
> hmm it'll have that for sure
[
16:39:44
] <
wiredfool_
> bout a minute, but I'll be back this evening
[
16:39:56
] <
idella4
> ok got you
[
16:41:05
] <
wiredfool_
> right, I'll look for an email, or I'll check back here later
[
16:41:22
] <
idella4
> it shouldn't be long
[
16:41:43
] <
idella4
> Neddy is in the channel now
[
16:42:02
] <
idella4
> I have 00.40
[
16:42:08
] <
idella4
> might fo the email
[
17:08:50
] <
idella4
> Sun Apr 21 01:06:15 WST 2013