I have installed virtualenv with Python 2.7 and it worked... :) On Saturday, 8 June 2013 22:57:41 UTC+3, Eimantas Stonys wrote: > > Hello people, > > I would really be very happy if someone could help me... I am using Ubuntu > 12.10. The default Python version is 2.7.3, but I got the 3.3.0 installed > and *both* of them work perfectly, I can run Python from terminal. > Now I have installed Django (I think it installed correctly, because I can > "import django" and f. ex. view django's version), but I can't start a new > project... Heres the error in terminal: > > Emantas@eimantas-K50IN:~/Desktop/Py$ django-admin.py startproject mysite >> >> Traceback (most recent call last): >> >> File "/usr/local/bin/django-admin.py", line 5, in <module> >> >> management.execute_from_command_line() >> >> File >> "/usr/local/lib/python3.3/site-packages/django/core/management/__init__.py", >> line 453, in execute_from_command_line >> >> utility.execute() >> >> File >> "/usr/local/lib/python3.3/site-packages/django/core/management/__init__.py", >> line 392, in execute >> >> self.fetch_command(subcommand).run_from_argv(self.argv) >> >> File >> "/usr/local/lib/python3.3/site-packages/django/core/management/__init__.py", >> line 272, in fetch_command >> >> klass = load_command_class(app_name, subcommand) >> >> File >> "/usr/local/lib/python3.3/site-packages/django/core/management/__init__.py", >> line 77, in load_command_class >> >> module = import_module('%s.management.commands.%s' % (app_name, name)) >> >> File "/usr/local/lib/python3.3/site-packages/django/utils/importlib.py", >> line 35, in import_module >> >> __import__(name) >> >> File >> "/usr/local/lib/python3.3/site-packages/django/core/management/commands/startproject.py", >> >> line 2, in <module> >> >> from django.core.management.templates import TemplateCommand >> >> File >> "/usr/local/lib/python3.3/site-packages/django/core/management/templates.py", >> >> line 20, in <module> >> >> from django.template import Template, Context >> >> File >> "/usr/local/lib/python3.3/site-packages/django/template/__init__.py", line >> 53, in <module> >> >> from django.template.base import (ALLOWED_VARIABLE_CHARS, BLOCK_TAG_END, >> >> File "/usr/local/lib/python3.3/site-packages/django/template/base.py", >> line 12, in <module> >> >> from django.utils.text import (smart_split, unescape_string_literal, >> >> File "/usr/local/lib/python3.3/site-packages/django/utils/text.py", line >> 6, in <module> >> >> from gzip import GzipFile >> >> File "/usr/local/lib/python3.3/gzip.py", line 9, in <module> >> >> import zlib >> >> *ImportError: No module named 'zlib' * >> >> eimantas@eimantas-K50IN:~/Desktop/Py$ >> > > The line in bold is the source of the error I think. I got > *zlib1g-dev*installed but it didn't help. Can anyone help me? I want to start > learning > Django very much. >
-- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.