Ok never mind. I realized in the newer version the quotes aren't required
for data types and that 'no stginfo' probably means "no string info" since
I was putting the data type into a string. I thought I had noticed all the
changes at first, but...
> Yes that was the problem. It doesn't work in older versions, and right now
> I am using 0.4. But I was a little reluctant to load the new version
> because I had everything working "just right" and didn't want to throw off
> the balance it has taken me so long to achieve.
> So I decided to try it on a different computer. I set up my configuration
> and downloaded the new version. When I ran my script I got this error.
> TypeError: has no _stginfo_
> The error was in reference to this piece of code.
> class U64(Structure):
> _fields_ = [("high", "c_ulong"),
> ("low", "c_ulong")]
> But it actually gives me that error on every structure that I have. (I
> have several.) I made sure and changed the data types before I ran it. So
> that tells me that the new version expects something else that I haven't
> included. I went back and reference the user guided, and I didn't see any
> changes in the format of the structure. So what does this error mean and
> why am I getting it?
> Thanks again,
>> mnations@... writes:
>>> Hello all,
>>> I was simply following the example given on the website and received
>>> following error:
>>> >>> ii = TenIntegers(1, 2, 3, 4, 5, 6, 7, 8, 9, 10)
>>> Traceback (most recent call last):
>>> File "<pyshell#32>", line 1, in ?
>>> ii = TenIntegers(1, 2, 3, 4, 5, 6, 7, 8, 9, 10)
>>> TypeError: wrong type
>>> Can anyone tell me why I am getting the 'wrong type' error?
>> This should work in 0.6.0 and 0.6.1, and I just did try it to make sure.
>> If it doesn't for you, which version do you use, and which environment
>> (OS, Python version)?
> This SF.net email is sponsored by: ObjectStore.
> If flattening out C++ or Java code to make your application fit in a
> relational database is painful, don't do it! Check out ObjectStore.
> Now part of Progress Software. http://www.objectstore.net/sourceforge
> ctypes-users mailing list