-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Install with Python 3.2 #18
Comments
Cool, thanks for the report. It's not known to work yet but good that people are trying. I hope to have a release out by end of year, PyCon 2013 at the latest. |
Oh - ok. Sorry for the "bug report" then since it isn't supposed to work yet. I was looking at the wrong repo - looks like someone is trying a fork here: |
No problem. Will leave this open and close it when it works :-) |
Thanks - I don't know if the fork contributes back here or what, but my guess is you aren't in charge of it. Anyway, I can't get it to work - at least on linux. Look forward to getting this for 3.2! :) |
FWIW I am the Pillow (PIL fork) author, release manager and cheerleader. |
Well, it is good stuff - so I will wait for the official word from here. |
django 1.5 on python 3.x will likely create demand for PIL / Pillow as developers start new django projects. We plan to offer first-class, production-ready support for Python 3 in our next release, Django 1.6. https://docs.djangoproject.com/en/dev/releases/1.5-beta-1/#python-compatibility |
Is there any progress on this? Looking at @fluggo's commit log, he seems to have spent considerable time and effort on Python 3 compatibility, while supporting 2.6 and 2.7 as well. Is that going to be merged into Pillow? |
Progress: no. Merged: yes. No later than PyCon 2013 |
On Jan 06, 2013, at 02:24 PM, Alex Clark ☺ wrote:
I tried compiling the git branch on Ubuntu 13.10 into a Python 3.3 virtualenv, I'll see if I can whip together a Debian package for the code and throw it Great work! |
Hi Barry, that would be great! Thank you. |
On Jan 07, 2013, at 02:36 PM, Alex Clark ☺ wrote:
I just uploaded a very preliminary package to The packaging branch is at lp:~barry/+junk/pillow-packaging It's not perfect. I don't quite have the dependencies right so you'll have to Still, once you get the python3-imaging package installed into your Python 3.3 I'll work on fixing the packaging as time allows and will coordinate with This is looking promising. |
Thank you so much, Barry! FWIW: I'm not going to be too critical of @fluggo's pull request before I merge it. (I mostly rely on the community for that.) But, I will take the time to at least test @fluggo's branch on various versions of Python locally. As well as make sure it works with Plone, which is the main thing I care about (although Plone won't see Python 3 for at least another year.) That testing and merge could happen this month sometime, especially if some excitement builds around it. |
@fluggo can you send a pull request for your Python 3 support changes? |
On Jan 08, 2013, at 03:52 PM, Alex Clark ☺ wrote:
Note that the build failed on the PPA build farm. It actually succeeded (and Quoting from: """ Our automated build log filter detected the problem(s) above that will This is often due to a missing function prototype definition. Since use of implicitly converted pointers is always fatal to the application More information can be found at: This should be fixed upstream, but I'll try to patch it here if it's obvious. |
On Wed, Jan 9, 2013 at 9:26 AM, Thomas Kluyver notifications@github.com wrote:
I was wondering the same thing. Alex, let me look at the 64-bit issue and the sane pull request --Brian |
Thanks Brian, cool |
On Jan 09, 2013, at 07:26 AM, Thomas Kluyver wrote:
Yep. I didn't see that before so my PPA has a quilt patch that is very I also didn't #if redefine PyInt_* under Python 3, since I'm taking the Nice fixes for threading, and I also s/PyString_/PyBytes_/. Oh one last thing. The return on line 1302 has to return NULL on error. |
On Jan 09, 2013, at 07:28 AM, Brian Crowell wrote:
I added some inline comments in the pull request's code. |
On Wed, Jan 9, 2013 at 9:28 AM, Brian Crowell brian@fluggo.com wrote:
I've merged the Sane patch, but I've also added some Unicode --Brian |
Thank you! |
I've added another fix and 3 features, maybe anybody want to test them. |
Added where? Can you send a pull request? |
Mike from pythonlibrary.org suggests comparing our Python 3 support implementation with another implementation: http://www.lfd.uci.edu/~gohlke/pythonlibs/. Making a note to do so here. |
"python3.2 setup.py build" will fail. |
@joulez I just fixed setup.py in master… |
Pip doesn't support non-ascii long_description under Python 2.x - try this e.g. with LC_ALL=C. Also, for Python 2.x long_description must be a bytestring, and for Python 3.x it must be unicode. So I think that for such popular package long_description should be limited to ascii (and conditionally decoded to unicode for Python 3.x). Maybe it is already ascii-only; I didn't check this. |
Seems to work OK in both 2.x and 3.x by changing '\n' to b'\n' … |
OK @tenspd137, please use 2.0.0! 👍 |
@warsaw Any interest in updating your PPA? |
BF: workaround Rackspace deploy bug
Just trying this out because I would like to move to python 3.2, but I need to be able to use PIL. Using pip install Pillow with python3.2, it fails with:
TypeError: Can't convert 'bytes' object to str implicitly
Command /usr/bin/python3.2 -c "import setuptools;file='/tmp/pip-build/Pillow/setup.py';exec(compile(open(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record /tmp/pip-5ovsco-record/install-record.txt --single-version-externally-managed failed with error code 1 in /tmp/pip-build/Pillow
Storing complete log in /root/.pip/pip.log
Exception info:
Exception information:
Traceback (most recent call last):
File "/usr/lib64/python3.2/site-packages/pip/basecommand.py", line 107, in main
status = self.run(options, args)
File "/usr/lib64/python3.2/site-packages/pip/commands/install.py", line 261, in run
requirement_set.install(install_options, global_options)
File "/usr/lib64/python3.2/site-packages/pip/req.py", line 1166, in install
requirement.install(install_options, global_options)
File "/usr/lib64/python3.2/site-packages/pip/req.py", line 589, in install
cwd=self.source_dir, filter_stdout=self._filter_install, show_stdout=False)
File "/usr/lib64/python3.2/site-packages/pip/util.py", line 612, in call_subprocess
% (command_desc, proc.returncode, cwd))
pip.exceptions.InstallationError: Command /usr/bin/python3.2 -c "import setuptools;file='/tmp/pip-build/Pillow/setup.py';exec(compile(open(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record /tmp/pip-5ovsco-record/install-record.txt --single-version-externally-managed failed with error code 1 in /tmp/pip-build/Pillow
Just wondering if this is supposed to work yet ( I read that it did, but can't remeber where) or if there is something I am missing. Thanks!
The text was updated successfully, but these errors were encountered: