On 4.10.2011 13:40, Luc Saffre wrote:
> I tried it on Ubuntu, and indeed, the error doesn't occur there!
> So the code generated by generateDS doesn't work on Windows.
> Do you have any idea what may be the reason for this, and whether we can
> fix it?

Tilt! GenerateDS *does* work on Windows, too. The problem is that I
installed it (as I am used to do) by untarring generateDS-2.6a.tar.gz to
a directory `s:\py-site-packages\generateDS-2.6a` and then adding a line

  site.addsitedir(r"s:\py-site-packages\generateDS-2.6a")

to my `sitecustomize.py`. This had the side effect that

  from generatedssuper import GeneratedsSuper

in the generated code was successful because it found
`s:\py-site-packages\generateDS-2.6a\generatedssuper.py`, and the class
GeneratedsSuper defined there does indeed not have a method
gds_format_string.

After installing generateDS as described on your site using the
distutils, everything works fine.

Sorry for the noise. Note that I prefer "my" method of installing pure
Python packages because that makes it possible to switch between Python
versions without installing these packages for each version. Is my
method bad practice? If not, I'd suggest to move the generatedssuper.py
file to somewhere else to avoid this pitfall.

Luc


------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
_______________________________________________
generateds-users mailing list
generateds-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/generateds-users

Reply via email to