Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#290 ZSI in subfolder -> error

open
nobody
zsi (169)
5
2010-05-22
2010-05-22
Anonymous
No

I added the ZSI folder to my project. The folder structure is as follows:

/mypath
/myproject (project root)
/webservice
/ZSI

I added /mypath/myproject/webservice/ to sys.path so that the ZSI package can be found.
Now, I get the following error:

File \"/mypath/myproject/webservice/myws_client.py\", line 9, in <module>
from myws_types import *
File \"/mypath/myproject/webservice/myws_types.py\", line 9, in <module>
import ZSI
File \"webservice/ZSI/__init__.py\", line 390, in <module>
TC.RegisterType(TC.String, minOccurs=0, nillable=False)
File \"/mypath/myproject/webservice/ZSI/TC.py\", line 1700, in RegisterType
instance = apply(C, args, keywords)
File \"/mypath/myproject/webservice/ZSI/TC.py\", line 705, in __init__
TypeCode.__init__(self, pname, **kw)
TypeError: unbound method __init__() must be called with TypeCode instance as first argument (got String instance instead)

Discussion