Re: Error running setup.py
A thought on catching setup.py related problems early. mkdir sdist-test cd sdist-test hg clone .../satchmo satchmo cd satchmo python setup.py sdist -d .. (cd .. ; tar zxpvvf ../Satchmo*.tar.gz) diff -urwp -x .svn -x .hg -x dist -x build . ../Satchmo-*/. If SOURCES.txt is being created correctly by setuptools, the only difference should be an egg_info section of setup.cfg. If it's broken (like the current issues with satchmo-trunk checked out with current subversion)... you'll get a fair amount of Only in ./docs: _static Only in ./docs: _templates Only in .: ez_setup.py type output. I realize that you don't use setup.py in your deployments, but I'd much prefer the most automated and repeatable process available for deploying satchmo (Or anything else) in its own sandbox. Setuptools provides a lot of automation, including dependencies. Granted, it also provides a lot of brokenness :-). --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Satchmo users" group. To post to this group, send email to satchmo-users@googlegroups.com To unsubscribe from this group, send email to satchmo-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/satchmo-users?hl=en -~--~~~~--~~--~--~---
Re: Error running setup.py
Greg, By any chance did you save the dist/Satchmo*egg from the hg tip you used? If so, could you do a quick 'unzip -v dist/*egg | grep /templates/' Also did you do a few install attempts with the subversion trunk earlier? Also which version of ubuntu on the VPS (Or more specifically, which version of subversion)? I ask because I found some odd old cruft including satchmo in a recent site=packages/svn directory and other bits of satchmo just in site- packages. After cleaning away the old cruft, I installed from a checkout of svn://satchmoproject.com/satchmo/trunk which gives a Revision of 2055 from June 8th of this year. Satchmo went into /usr/lib/python2.5/site- packages/Satchmo-0.9_pre-py2.5.egg/. There were no templates directories present. Until I did cd $SATCHMO_TRUNK find satchmo -type f | grep /templates/ >> satchmo/apps/Satchmo.egg- info/SOURCES.txt sudo python setup.py install setuptools refused to find the SVN managed templates. Looking through http://bugs.python.org/setuptools/issue79, it appears to be an artifact from subversion 1.6 file format changes. With hg tip (1079 and 1083), the install of templates just worked. So, making a guess. You may have had two satchmo_shop/shop directories within thanks to .pth files. I am disinclined to examine the order python goes through .pth files found on sys.path, but would not be surprised if it was in readdir() order instead of sorted per the ordering implied by $LANG or $LC_*. Virtualenv buys you a second easy-install.pth file to confuse matters. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Satchmo users" group. To post to this group, send email to satchmo-users@googlegroups.com To unsubscribe from this group, send email to satchmo-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/satchmo-users?hl=en -~--~~~~--~~--~--~---
Re: Error running setup.py
> And do you mind telling us what version of satchmo was installed prior > to the attempted upgrade? The previous version was a fairly recent trunk checkout, 2-3 weeks ago. It was prior to the mercurial switch. > The good news is that the approach of just adding to the path is the > preferred approach so I wouldn't sweat it right now. When I deploy a site, I > don't use setup.py anyway. Cool, I'll stick with the in future. Thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Satchmo users" group. To post to this group, send email to satchmo-users@googlegroups.com To unsubscribe from this group, send email to satchmo-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/satchmo-users?hl=en -~--~~~~--~~--~--~---
Re: Error running setup.py
And do you mind telling us what version of satchmo was installed prior to the attempted upgrade? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Satchmo users" group. To post to this group, send email to satchmo-users@googlegroups.com To unsubscribe from this group, send email to satchmo-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/satchmo-users?hl=en -~--~~~~--~~--~--~---
Re: Error running setup.py
This is a perennial pain to get right. I'm thinking that the whole setup.py install process isn't worth the effort. If you're using the most recent hg checkout, I'm really struggling to figure out why it's not working. We've made multiple tweaks in the past two weeks that were supposed to fix this. The good news is that the approach of just adding to the path is the preferred approach so I wouldn't sweat it right now. When I deploy a site, I don't use setup.py anyway. -Chris On Tue, Aug 4, 2009 at 4:00 PM, Greg wrote: > > I've just tried to upgrade my satchmo installation on an ubuntu linux > VPS, by cloning the hg repo and running > > > sudo python setup.py install > > and for some reason the satchmo_store/shop/templates directory wasn't > copied into site-packages along with the rest of the code. This meant > my sites broke, throwing TemplateDoesNotExist. I solved the problem by > simply putting the satchmo/apps directory on the python path, but it > seems something is wrong with setup.py. Has anyone else encountered > this, or does anyone have any idea as to what I might have done wrong? > > (nb. I installed the same revision of satchmo on my local machine - > OSX 10.5 - using setup.py, with no problems) > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Satchmo users" group. To post to this group, send email to satchmo-users@googlegroups.com To unsubscribe from this group, send email to satchmo-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/satchmo-users?hl=en -~--~~~~--~~--~--~---