WL: Python 3.4

Bug #1301618 reported by Chris Petersen
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
IUS Community Project
Fix Released
Undecided
Unassigned

Bug Description

Python 3.4 went stable a few weeks ago, and it would be really nice to be able to easily install this via RPMs.

Tags: wishlist
Revision history for this message
bharper (bharper) wrote :

Hello Chris,

Thanks for taking the time to submit this request and reaching out on IRC. With a new package requests, we evaluate if it would be a good fit for IUS and if it is maintainable with our current resources. Seeing we already package other python versions, it would make sense for us to look into to packaging python 3.4.

Please note that maintaining our current work load does take priority over new packages. I'll look into this request and update this bug once there is additional information.

-Ben

Revision history for this message
bharper (bharper) wrote :

Hey Chris,

Initial python34u packages will be hitting the testing repos tonight. See the following for information on how to use the testing repo:

http://iuscommunity.org/pages/FAQs.html?highlight=testing#how-do-i-install-packages-from-testing

At first, I did a fair amount of work updating our python33 SRPM for Python 3.4. By the time I worked out most of the kinks, Python 3.4 hit koji. There was some similarities but there was some additional polish in the koji SRPM. It felt like a better decision to port from the koji SRPM even though a fair amount of work had been done porting from python33.

We look forward to get any and all feedback.

-Ben

Revision history for this message
Carl George (carl.george) wrote :

Package has been in the testing repos for two weeks. It will be placed in the stable repos tonight.

Changed in ius:
status: New → Fix Released
Revision history for this message
Carl George (carl.george) wrote :

Scratch that last comment. We had an automation failure. And by automation failure, I mean my brain was on morning autopilot. We are going to hold this package in testing until we get some feedback. Continue to test this package and let us know how well it works.

Revision history for this message
Chris Petersen (geek+launchpad) wrote :

Sounds good. My focus got shifted away on other projects at work for the last couple of weeks so I haven't had a chance to look into this. Hopefully get some time to do so in the next week or two.

Changed in ius:
status: Fix Released → Fix Committed
Revision history for this message
Jason Garber (gahooa) wrote :

Hey Ben,

I was just going to ask you about Python 3.4 and saw this thread. Thanks for your great work on this!

Can you comment on your plans to add the following in their python 3.4 versions?

python33-hiredis - Python extension that wraps hiredis
python33-mod_wsgi - A WSGI interface for Python web applications in Apache
python33-postgresql - Connect to PostgreSQL with Python 3
python33-redis - A Python client for redis

I volunteer to do aggressive testing of a few large and complicated web applications on this stack once it is in testing. Please let me know.

Thanks!
Jason Garber

Revision history for this message
Carl George (carl.george) wrote :

Howdy Jason,

Since we already build those modules for python33, it should be trivial to port them over to python34u. I'll start working on that and I'll let you know once they are in the testing repo.

Revision history for this message
Carl George (carl.george) wrote :

Jason,

I have built the following packages.

python34u-hiredis-0.1.3-1.ius
python34u-mod_wsgi-3.4-1.ius
python34u-postgresql-1.1.0-1.ius
python34u-redis-2.9.1-1.ius

The will be in the testing repos tonight. Please give them some thorough testing and let us know your results.

Revision history for this message
Carl George (carl.george) wrote :

I have build an updated version of python34u.

python34u-3.4.1-1.ius

It will be pushed to the testing repos tonight. We are still awaiting feedback on how these rpms are working out.

Revision history for this message
Carl George (carl.george) wrote :

There was an update to mod_wsgi, so I have placed a new build in the testing repos.

python34u-mod_wsgi-4.1.2-1.ius

We are still waiting for feedback before we push any python34u packages to the stable repos.

Changed in ius:
status: Fix Committed → In Progress
Revision history for this message
Carl George (carl.george) wrote :

Due to the rapid release of mod_wsgi 4.1.1/4.1.2/4.1.3, we are going to skip 4.1.1/4.1.2 in favor of 4.1.3. Please disregard the early builds and focus on testing python34u-mod_wsgi-4.1.3-1.ius, which will be in the testing repos tonight.

Revision history for this message
Carl George (carl.george) wrote :

There have been new releases of the hiredis and mod_wsgi modules.

python34u-hiredis-0.1.4-1.ius
python34u-mod_wsgi-4.2.5-1.ius

We are still waiting on feedback on all of these python 3.4 packages before we move them to the stable repos. If you are able to test these packages, please provide feedback in this thread.

Revision history for this message
Chris Petersen (geek+launchpad) wrote :

The project I was working on that required python 3.4 has been put on indefinite hold. Not sure when or if I'll get a chance to test this stuff.

Revision history for this message
Daniel Wallace (gtmanfred) wrote :

python34u
python34u-devel
python34u-setuptools
python34u-redis

All are working as I would expect them too.
+1

Revision history for this message
Carl George (carl.george) wrote :

These packages will be pushed to stable tonight. The devel package is included with the main python package.

python34u-3.4.1-2.ius
python34u-setuptools-5.4.1-1.ius
python34u-redis-2.9.1-1.ius

We still need volunteers to test the remaining packages.

python34u-mod_wsgi-4.2.6-1.ius
python34u-hiredis-0.1.4-1.ius
python34u-postgresql-1.1.0-1.ius

Revision history for this message
hurie (hurie83) wrote :

I got some error when I use pyvenv

[vagrant@ppdb-vagrant ~]$ pyvenv test
Error: Command '['/home/vagrant/test/bin/python3.4', '-Im', 'ensurepip', '--upgrade', '--default-pip']' returned non-zero exit status 1

And here the exception when I execute command directly

[vagrant@ppdb-vagrant ~]$ /home/vagrant/test/bin/python3.4 -Im ensurepip --upgrade --default-pip
Traceback (most recent call last):
  File "/usr/lib64/python3.4/runpy.py", line 170, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/lib64/python3.4/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/usr/lib64/python3.4/ensurepip/__main__.py", line 4, in <module>
    ensurepip._main()
  File "/usr/lib64/python3.4/ensurepip/__init__.py", line 209, in _main
    default_pip=args.default_pip,
  File "/usr/lib64/python3.4/ensurepip/__init__.py", line 98, in bootstrap
    "_bundled/{}".format(wheel_name),
  File "/usr/lib64/python3.4/pkgutil.py", line 627, in get_data
    return loader.get_data(resource_name)
  File "<frozen importlib._bootstrap>", line 1623, in get_data
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib64/python3.4/ensurepip/_bundled/setuptools-2.1-py2.py3-none-any.whl'

Also is there any change to install both python33 and python34, there some conflict when I try:

[vagrant@ppdb-vagrant ~]$ sudo yum install python33
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * epel: mirror.orion.net.id
 * ius: hkg.mirror.rackspace.com
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package python33.x86_64 0:3.3.5-2.ius.centos6 will be installed
--> Processing Dependency: python33-libs(x86-64) = 3.3.5-2.ius.centos6 for package: python33-3.3.5-2.ius.centos6.x86_64
--> Processing Dependency: libpython3.3m.so.1.0()(64bit) for package: python33-3.3.5-2.ius.centos6.x86_64
--> Running transaction check
---> Package python33-libs.x86_64 0:3.3.5-2.ius.centos6 will be installed
--> Processing Conflict: python34u-3.4.1-2.ius.centos6.x86_64 conflicts python33
--> Finished Dependency Resolution
Error: python34u conflicts with python33-3.3.5-2.ius.centos6.x86_64
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

Revision history for this message
Carl George (carl.george) wrote :

Thanks for the bug report!

The pyvenv error is interesting, and will take some further investigation.

The package conflict is by design. There are multiple file conflicts between the two packages. We had two options: remove/rename every generic file (/usr/bin/python3, /usr/bin/pydoc3, /usr/bin/pyvenv, etc.), or explicitly conflict the various versions of python3 we offer. We felt that not having python3 command would be more confusion than it was worth.

Revision history for this message
hurie (hurie83) wrote :

Absolutely, it'll confusing there is no python3. I don't know about rpm much, but how about installing another python3x will not replacing /usr/bin/python3 (and other) if it already exist. Is up to user to change default python3 using ln -s or update-alternatives?

Revision history for this message
Carl George (carl.george) wrote :

The following packages were built, but never received feedback. I have moved them into the development repos and forked them to separate bugs for tracking purposes.

python34u-mod_wsgi: https://bugs.launchpad.net/ius/+bug/1356009
python34u-hiredis: https://bugs.launchpad.net/ius/+bug/1356014
python34u-postgresql: https://bugs.launchpad.net/ius/+bug/1356017

Revision history for this message
Carl George (carl.george) wrote :

@hurie

Utilizing update-alternatives is not something we have done before, but we are up for considering it. For now, will you break that off into a separte bug report [0] so we can consider it independently?

[0] https://bugs.launchpad.net/ius/+filebug

Revision history for this message
Carl George (carl.george) wrote :

And finally, I broke off the pyvenv issue to this bug: https://bugs.launchpad.net/ius/+bug/1356007

The main python34u packages have been in the stable repos since 2014-07-17. I'm closing this bug out, as all other discussion items now have separate bugs.

Changed in ius:
status: In Progress → Fix Released
Revision history for this message
Jan Harasym (jan-harasym-y) wrote :

Hey gang,

I'm attempting to test python34u-python using the RPM's you provide (great work by the way!) but I don't see the package in the testing repositories.

╭─[~]─[root@3lc-tctd-devdb03]─[0]─[705]
╰─[:)] # yum install python34u-postgresql --enablerepo=ius-testing
Loaded plugins: fastestmirror
Setting up Install Process
[mirrorlist]
ius-testing | 2.2 kB 00:00
ius-testing/primary_db | 25 kB 00:00
No package python34u-postgresql available.
Error: Nothing to do

If there's something I can do, let me know- thanks! :)

Revision history for this message
bharper (bharper) wrote :

Hello Jan,

Please see the following bug for more information regarding the status of a python34u-postgresql package:

https://bugs.launchpad.net/ius/+bug/1356017

-Ben

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.