Install Issues With Python Deep Zoom Tools
Hello,
I don't know if it's a good forum for my question.
I'm a new in python and I try to install "deep-zoom-tool".
With CentOS4 (python 2.3.4/PIL 1.1.6), I get an error "@property ^SyntaxError: invalid syntax" and with CentOs5 (Python 2.4) another "offset_x = 0 if column == 0 else self.tile_overlap ^SyntaxError: invalid syntax".
an idea ?
Best regards,
Nagamé
(Sorry for my bad english language)
I don't know if it's a good forum for my question.
I'm a new in python and I try to install "deep-zoom-tool".
With CentOS4 (python 2.3.4/PIL 1.1.6), I get an error "@property ^SyntaxError: invalid syntax" and with CentOs5 (Python 2.4) another "offset_x = 0 if column == 0 else self.tile_overlap ^SyntaxError: invalid syntax".
an idea ?
Best regards,
Nagamé
(Sorry for my bad english language)
1
person has this problem
I have this problem, too!
Tell me when someone solves it.
The more people who report this problem, the more it gets noticed.
The more people who report this problem, the more it gets noticed.
The company thinks this is not a problem.
The best solution from the company
-
Nagamé,
Yeah, you've come to the right place! Please, don't apologize for your English – it's fine! Are you French? I'm Swiss so I had a couple of French classes in my life and last summer I've spent in Paris. Still, my French is nothing compared to your English.
Well, coming to your issues with the Python Deep Zoom Tools. Indeed, I've checked and the @property decorator was introduced in Python 2.4. Then, the ternary operator used in offset_x = 0 if column == 0 else self.tile_overlap was introduced in Python 2.6.
I usually develop with the latest 2.x version of Python but thanks to you I will try to state which version is actually required for my tools in the README.
If I may ask you for a favor, then please install Python 2.6 and let me know if you can successfully install the Python Deep Zoom Tools.
Cheers,
Daniel
I’m hopeful!
The company says
this solves the problem
-
Inappropriate?Nagamé,
Yeah, you've come to the right place! Please, don't apologize for your English – it's fine! Are you French? I'm Swiss so I had a couple of French classes in my life and last summer I've spent in Paris. Still, my French is nothing compared to your English.
Well, coming to your issues with the Python Deep Zoom Tools. Indeed, I've checked and the @property decorator was introduced in Python 2.4. Then, the ternary operator used in offset_x = 0 if column == 0 else self.tile_overlap was introduced in Python 2.6.
I usually develop with the latest 2.x version of Python but thanks to you I will try to state which version is actually required for my tools in the README.
If I may ask you for a favor, then please install Python 2.6 and let me know if you can successfully install the Python Deep Zoom Tools.
Cheers,
Daniel
I’m hopeful!
The company says
this solves the problem
-
Inappropriate?Hi Daniel,
i feel kinda stupid.. but can't get it to work.
At your advise I'm trying to run it locally (updated to python 3 on my mac). now I get this error:
Last login: Mon May 11 15:15:00 on ttys000
willem:~ willem$ cd '/Applications/Python 3.0/Extras/Demo/0.1.0/' && '/usr/bin/pythonw' '/Applications/Python 3.0/Extras/Demo/0.1.0/setup.py' && echo Exit status: $? && exit 1
usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: setup.py --help [cmd1 cmd2 ...]
or: setup.py --help-commands
or: setup.py cmd --help
error: no commands supplied
willem:0.1.0 willem$
What am I missing?
-
Inappropriate?Willem,
Without investigating the issue more closely, my guess would be that the reason for the problem could be the fact that Python 3 is not backwards compatible with Python 2.x:
http://www.python.org/dev/peps/pep-3000/
I'd suggest you to install the latest Python 2.x release and try again. If you still encounter problems, I'd be happy to check them out!
–Daniel
P.S. BTW, make sure to use the following command:
python setup.py install
-
Inappropriate?okay, running 2.6 now, but now i'm getting a different error
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/deepzoom.py", line 38, in <module>
import PIL.Image
ImportError: No module named PIL.Image
</module>
the package did install after running the setup.py script... -
Inappropriate?Willem,
Sorry, my fault. The dependencies are listed in the README in the trunk but not in the Python Deep Zoom Tools 0.1.0 release itself. Here we go:
http://code.google.com/p/open-zoom/so...
You'll have to install the Python Imaging Library (PIL):
http://www.pythonware.com/products/pil/
Thanks for pointing this out – this reminds me of updating the library.
–Daniel -
Inappropriate?aaah, right. Thanks, I'll check it right away
-
Inappropriate?Well, this takes to much time for me.. now it's asking for a Mac-Developer toolkit:
Compiling with an SDK that doesn't seem to exist: /Developer/SDKs/MacOSX10.4u.sdk
So.. I'll probably stick to Photoshop export.
Tnx anyway.. moving on to the next 'bear on the road' ;-)
-
Inappropriate?For the record, downloading Xcode is not a big deal. It's free at apple's website (http://developer.apple.com/mac/ search for Xcode ), and installs in a snap. Trust me. After getting all of this working under linux, getting it working under Mac OS X is easy as pie. :)
I’m confident
-
Inappropriate?Hi Daniel,
Is there a way to adapt the script to work on Python 2.4 ?
Thanks!
Paul -
Inappropriate?Sorry, I found the solution..
ZoomifyImage seems to work fine with Python 2.4. http://sourceforge.net/projects/zoomi... And there is also a ported version for PHP which works fine as well but it has a scaling bug when creating the bottom tiles of the image..
OpenZoom is wonderful :)
I’m happy
-
Inappropriate?Paul,
Glad you found a solution. Is there a reason why you can't use Python 2.6?
–Daniel
-
Inappropriate?Hi Daniel,
I want to use OpenZoom on a shared hosting account and the RHEL/CentOS line only supports Python 2.4. A lot of core features of CentOS such as yum depend on python. If they update python system they're afraid yum will break and thus the ability to update the system. Of course there are ways to do it right, 2.6 rpms are available too, and paralell install is also possible but I don't have time to argue with the admins :)
Thank you!
I’m happy
Loading Profile...




EMPLOYEE

