Virtualenv with python3

Environment

RH-based linux with python2.6 and python 3.3 (default is: python 2.6)

Problem

[ec2-user@h1 django-test-project]$ virtualenv -ppython3 env
Running virtualenv with interpreter /usr/bin/python3
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/virtualenv.py", line 21, in
from distutils.util import strtobool
File "/usr/lib64/python3.3/distutils/util.py", line 9, in
import imp
File "/usr/lib64/python3.3/imp.py", line 20, in
from importlib._bootstrap import new_module
ImportError: No module named 'importlib._bootstrap'

Solution

sudo rpm –nodeps -e python-importlib

Milestone

7 March 2015 – a special day in my programming life. I have my first contribution to a major open source project accepted and merged into master!

Just a tiny little ticket, but a great way to start contributing. (It’s one small step for a man… ) I have to say, that the process of contributing is super easy for such a big project. Yes, there are procedures in place, but they are all clear and make sense… and the community ensures that they run smoothly. The entire adventure, from picking the ticket to having it closed and merged into master took less than a day.

Django (see code on github) is an awesome project, and has a most awesome community, by the way! If you need a great web development framework, and you like python, use it!

And that’s my contribution:
django_contrib