Open guziy opened 9 years ago
A OK, I see that it is not supposed to ))
Well, a python3 version wouldn't hurt of course. I'm too busy right now to do anything about it, but if you want, don't hesitate to file a Pull Request.
Actually the problem is in the 2 packages slideshow depends on:
Running django-admin-sortable-1.6.7/setup.py -q bdist_egg --dist-dir /var/folders/2w/9n_4bv2x2cx2mq1z8ds10kkw0000gn/T/easy_install-raozn_1d/django-admin-sortable-1.6.7/egg-dist-tmp-ve76vm95
no previously-included directories found matching 'sample_project'
File "build/bdist.macosx-10.10-x86_64/egg/adminsortable/admin.py", line 114
except IndexError, ValueError:
^
SyntaxError: invalid syntax
File "/Users/san/Python/virtualenvs/djangocms-dev/lib/python3.4/site-packages/django_admin_sortable-1.6.7-py3.4.egg/adminsortable/admin.py", line 114
except IndexError, ValueError:
^
SyntaxError: invalid syntax
no previously-included directories found matching 'docs/_build'
File "build/bdist.macosx-10.10-x86_64/egg/easy_thumbnails/management/commands/thumbnail_cleanup.py", line 33
print "Something went wrong when checking existance of %s:" % path
^
SyntaxError: Missing parentheses in call to 'print'
I get these exceptions when after doing pip install djangocms-slideshow
(when it tries to satisfy dependencies). What is interesting is that even with those errors pip list
shows those packages as installed...
And I also did not find any code in the slideshow plugin that would not work in python3.
I'll try look at the 2 plugins and test the slideshow in python3, when I can find some time...
Cheers
I have just found out a cool way to see if python3 could be used (though it does not detect the problem with easy_thumbnails):
$ python setup.py caniusepython3
running caniusepython3
Finding and checking dependencies ...
[WARNING] Stale overrides: {'djangocms-admin-style', 'unicodecsv', 'bcdoc'}
You need 1 project to transition to Python 3.
Of that 1 project, 1 has no direct dependencies blocking its transition:
django-admin-sortable
Interesting, I did not know about the caniusepython3 tool. I'll re-open the issue as a reminder.
when trying to execute the following
I get the error messages below: