Closed fabiomolinar closed 4 years ago
I tried the solution I described under the Discussion topic of the ticket above, but it seems to exist many imports which are Python3 only in the package.
3to2
toolIf somebody gets here with the same problem, I used a tool called 3to2
in order to try to convert the code to Python 2. I haven't tested anything yet, but as far as running the migrations, the server and getting the standard Zinnia blog running, it worked.
First of all, don't forget to create a backup copy of Zinnia
.
cd ~/env
. virtualenv python3 --python=python3.6
source python3/bin/activate
3to2
. pip install 3to2
3to2 path/to/Zinnia -w
It seems to be working for me for now. I will try it further and make some tests to see how it goes.
If there is another official way to run Zinnia with Python 2, please let me know!
Version 0.20 is not compatible with release of Django.
Actual behavior
When running
python manage.py migrate
orpython manage.py runserver
, the script stops at anImportError
error.Expected behavior
To be able to run my migrations and the server.
Steps to reproduce the issue
I am trying to install Zinnia on a quite fresh Django website which contains basically just an
index.html
page and a template.Steps
pip install django-blog-zinnia
'django.contrib.sites'
,'django_comments'
,'mptt'
,'tagging'
, and'zinnia'
'zinnia.context_processors.version'
urls.py
:url(r'^weblog/', include('zinnia.urls'))
andurl(r'^comments/', include('django_comments.urls')),
SITE_ID = 1
to my project'ssettings.py
Specifications
Python is 2.7 and I am running my server on a Linux Mint Mate (Tara)
Discussion
Seems some pieces of the code don't support Python2. I wonder if something like this would fix it:
At
ping.py
But I don't know if overall this package is meant to run with Python3 only.
Disclaimer
Before submitting an issue make sure you have: