> From: Piotr Dobrogost > Sent: Sun, January 30, 2011 4:51:10 AM >
> > I installed generateDS using "pip install generateDS" from within > virtualenv and there is libgenerateDS folder in > <VENV_DIR>\Lib\site-packages folder but no .pth file was > updated/created so when I run python generateDS.py > --session=a7.session which then runs "from libgenerateDS.gui > import generateds_gui_session" I get "ImportError: No module > named libgenerateDS.gui." > > Any ideas? Piotr - OK. Here is what I did. $ virtualenv test02 $ cd test02 $ source bin/activate $ tar xf path/to/dist/generateDS-2.5a.tar.gz $ cd generateDS-2.5a/ $ python setup.py build $ python setup.py install $ cd .. Then I ran python: (test02)~/a1/Python/Tmp/test02 [10] python Python 2.7.1 (r271:86832, Dec 22 2010, 10:03:51) [GCC 4.4.5] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from libgenerateDS.gui import generateds_gui_session >>> generateds_gui_session <module 'libgenerateDS.gui.generateds_gui_session' from '/home/dkuhlman/a1/Python/Tmp/test02/lib/python2.7/site-packages/generateDS-2.5a-py2.7.egg/libgenerateDS/gui/generateds_gui_session.pyc'> >>> So, the above seems to have worked on my system. So, the next question is "What about pip?" I see that virtualenv installed pip automatically. So, I ran: $ virtualenv test03 $ cd test03 $ source bin/activate $ pip install -E test03 generateDS That does not seem to have worked. And, I do not know how to make it work. I believe that you are better off just installing it from the tar file. Just download it, then do the usual: $ tar xf path/to/dist/generateDS-2.xx.tar.gz $ cd generateDS-2.xx/ $ python setup.py build $ python setup.py install By the way, generateds_gui currently has a problem. You can use it to create and save a session file. But, it will not load an existing session file. I believe that there has been some change in PyGTK/GTK that removed something I needed. I'll look into it when I get a chance, but that might not be soon. If and when I learn more about the above problems, I try to let you know. In the meantime, hope this helped a bit. - Dave -- Dave Kuhlman http://www.rexx.com/~dkuhlman ------------------------------------------------------------------------------ Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! Finally, a world-class log management solution at an even better price-free! Download using promo code Free_Logger_4_Dev2Dev. Offer expires February 28th, so secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsight-sfd2d _______________________________________________ generateds-users mailing list generateds-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/generateds-users