[PyQt] getting dip running

Phil Thompson phil at riverbankcomputing.com
Mon Feb 7 11:29:45 GMT 2011


On Mon, 07 Feb 2011 12:26:49 +0100, Achim Kisseler
<ak7 at jupiter.uni-freiburg.de> wrote:
> Am 07.02.2011 11:44, schrieb Phil Thompson:
>> On Mon, 07 Feb 2011 11:16:42 +0100, Achim Kisseler
>> <ak7 at jupiter.uni-freiburg.de>  wrote:
>>> Hi,
>>>
>>> trying to use dip, I have some problems to install python 2.7.
>>>
>>> Because dip needs 2.7, I installed it from kubuntu backports on my
>>> ubuntu 10.10 64bit OS.
>>
>> dip doesn't need Python v2.7, v2.6 should be fine.
>>
>> Phil
> 
> Hi Phil,
> 
> when I try dip-test.py or an example, I get an syntax error:
> 
> --%<--
> Traceback (most recent call last):
>    File "editor.py", line 26, in <module>
>      from dip.plugins import PluginManager
>    File 
> "/usr/local/lib/python2.6/dist-packages/dip/plugins/__init__.py", line 
> 21, in <module>
>      from .i_extension_point import IExtensionPoint
>    File 
>
"/usr/local/lib/python2.6/dist-packages/dip/plugins/i_extension_point.py", 
> line 16, in <module>
>      from dip.model import Interface, List, Str
>    File "/usr/local/lib/python2.6/dist-packages/dip/model/__init__.py", 
> line 45, in <module>
>      from .adapt import adapt
>    File "/usr/local/lib/python2.6/dist-packages/dip/model/adapt.py",
line
>    21
>      def adapt(*adapted, to):
>                           ^
> SyntaxError: invalid syntax
> --%<--
> 
> Somewhere I had read, that python 2.7.?5? is needed. I cant remember,
> where.
> 
> If you are right (and I hope you are), where is the problem here?
> 
> Achim

Which tarball have you downloaded?

Phil


More information about the PyQt mailing list