Thank you Dave,
Unfortunately the patch (and the latest generateds version) didn't help me
either. I get the following error. presumably the reason may be the
difference between strings in python 2 and 3? AFAIR, unicode strings in
python 3 as opposed to byte strings in python 2?
File "c:\evobase2005\main\evopro\dc\dc\hci\operetta_data.py", line 15788,
in parseString
doc = parsexml_(IOBuffer(inString), parser)
TypeError: a bytes-like object is required, not 'str'
I didn't apply the -s argument either.
let me know if i can do anything else to help.
Thank you for the library. it generated 16000 LOC and saved me hours of
typing!
Rohan
On Fri, Dec 8, 2017 at 12:22 AM, Dave Kuhlman <dkuhl...@davekuhlman.org>
wrote:
> Rohan,
>
> That looks like a bug. After a quick search, I found that this
> error occurred in the parseString function in the generated subclass
> modules (that is, the modules generated with the -s command line
> option). Is that where you found it?
>
> I've attached a patch. If the patch does not apply correctly, you
> can find the patched version at any of the following:
>
> - https://bitbucket.org/dkuhlman/generateds
>
> - https://pypi.python.org/pypi/generateDS
>
> - https://sourceforge.net/projects/generateds/
>
> Thank you for reporting this. I appreciate your help.
>
> Dave
>
> On Thu, Dec 07, 2017 at 01:51:28PM +0100, Rohan Dsa wrote:
> > Dave,
> >
> > I need to keep changing a line in my auto generated code.
> >
> > from StringIO import StringIO
> >
> > to
> >
> > from io import StringIO
> >
> > The code runs only under Python3. is this normal or am i missing
> something?
> > I would have posted this somewhere, just didn't find any bugtracker
> online.
> >
> > Rohan
>
> --
>
> Dave Kuhlman
> http://www.davekuhlman.org
>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
generateds-users mailing list
generateds-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/generateds-users