On Fri, May 30, 2014 at 11:16:50AM +0200, Alessandro Pasotti wrote: > 2014-05-30 0:01 GMT+02:00 Dave Kuhlman <dkuhl...@davekuhlman.org>:
[snip] > > > > Please let me know if I can be of more help and if there is > > something else I can do to try to reproduce that exception, or if > > you have suggestions, etc. > > > > > > Yes, steps to reproduce: > > > 1.create a virtualenv > 2. pip install generateDS (fails) > 3. pip install generateDS==2.12d > 4. mkdir WorkDir > 5. cd WorkDir > 6. copy gen* files that were installed in your virtualenv bin directory > 7. download xsd and rename to strip the dot > 8. try to generate the django models/forms > Alessandro, I've followed your steps, above, and you are right: the django/ directory is not installed when you use that method. If fact, if you look in the .egg file from pypy.python.org, (currently generateDS-2.12d-py2.7.egg), that django/ directory is not in there. I'm not sure whether it should be. I'm not sure how to include it in the egg file, or even if that is what pip uses. And, I don't know whether that is part of the intention of pip. I did several Web searches, but did not find anything helpful about this. Perhaps there is something that I could add to setup.py which would cause this to happen, but I have not been able to learn anything about that. If you have a suggestion about where I could look for info about this, please let me know. So, my suggestion is that we make obtaining a source distribution of generateDS.py a requirement for the Django capability and that I add the following at the top of the Django section of the generateds.py documentation: **Note:** In order to use this capability, you must obtain the "source" distribution of ``generateDS.py``. You can do this either (1) by downloading ``generateDS-x.xxy.tar.gz`` from the Python Package Index or (2) by downloading the distribution from Bitbucket at https://bitbucket.org/dkuhlman/generateds. In particular, installing ``generateDS.py`` using ``pip`` does not give you all the files you need in order to use this capability. *Note:* You only need to obtain the source distribution (so that you can copy the files in the ``django/`` directory, for example); you do not necessarily need to install from it. If you have already installed ``generateDS.py`` using ``pip`` or ``easy_install``, you do not need to re-install from the source tree. What do you think? By the way, (after creating a virtualenv directory) I used easy_install to install generateDS: $ easy_install generateDS which worked, and without the version specifier that pip seems to need. If anyone knows why that might be the case or what I could do so that pip finds the lates version without having to be explicitly told, I'd like to hear about it. Dave -- Dave Kuhlman http://www.davekuhlman.org ------------------------------------------------------------------------------ Time is money. Stop wasting it! Get your web API in 5 minutes. www.restlet.com/download http://p.sf.net/sfu/restlet _______________________________________________ generateds-users mailing list generateds-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/generateds-users