Error in clonesatchmo program

10 views
Skip to first unread message

kevin

unread,
Oct 21, 2009, 2:44:51 PM10/21/09
to Satchmo users
I get this error using the clonesatchmo.py program:

OSError: [Errno 2] No such file or directory: '/opt/local/Library/
Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/
projects/skeleton'

do I need to install this as an editable package?

Chris Moffitt

unread,
Oct 21, 2009, 5:18:04 PM10/21/09
to satchm...@googlegroups.com
What does your site-packages directory look like?

For some reason it's not finding the right path, I'd like to know what path is there.

-Chris

kevin

unread,
Oct 25, 2009, 10:57:20 AM10/25/09
to Satchmo users


On Oct 21, 2:18 pm, Chris Moffitt <ch...@moffitts.net> wrote:
> What does your site-packages directory look like?
>
> For some reason it's not finding the right path, I'd like to know what path
> is there.

I'm installing this on snow leopard, using macports. Going to try
some fixes in a couple hours.. I'll let you know.

C

unread,
Oct 26, 2009, 7:20:17 PM10/26/09
to Satchmo users
setup.py install does not install satchmo/projects/skeleton.

Here is a patch against v0.9 to resolve the issue. I'll also open up
a problem on bitbucket.


diff -r d61c71fefded scripts/clonesatchmo.py
--- a/scripts/clonesatchmo.py Sun Oct 25 15:09:06 2009 -0500
+++ b/scripts/clonesatchmo.py Mon Oct 26 19:16:43 2009 -0400
@@ -44,9 +44,10 @@
os.system('pip install %s' % pil_requirements)

def create_satchmo_site(site_name):
- import satchmo_store
- base_dir = satchmo_store.__path__[0]
- src_dir = os.path.abspath(os.path.join(base_dir, '../../projects/
skeleton'))
+ import satchmo_skeleton
+# base_dir = satchmo_store.__path__[0]
+# src_dir = os.path.abspath(os.path.join(base_dir, '../../projects/
skeleton'))
+ src_dir = os.path.abspath(satchmo_skeleton.__path__[0])
dest_dir = os.path.join('./',site_name)
shutil.copytree(src_dir, dest_dir)

diff -r d61c71fefded setup.py
--- a/setup.py Sun Oct 25 15:09:06 2009 -0500
+++ b/setup.py Mon Oct 26 19:16:43 2009 -0400
@@ -18,6 +18,7 @@
version = __import__('satchmo_store').__version__
packages = find_packages('satchmo/apps')
packages.append('static')
+packages.append('satchmo_skeleton')

setup(name = "Satchmo",
version = version,
@@ -31,7 +32,8 @@
zip_safe = False,
package_dir = {
'' : 'satchmo/apps',
- 'static' : 'satchmo/static'
+ 'static' : 'satchmo/static',
+ 'satchmo_skeleton' : 'satchmo/projects/skeleton',
},
scripts=['scripts/clonesatchmo.py'],
setup_requires=["setuptools_hg"],



On Oct 21, 5:18 pm, Chris Moffitt <ch...@moffitts.net> wrote:
> What does your site-packages directory look like?
>
> For some reason it's not finding the right path, I'd like to know what path
> is there.
>
> -Chris
>

gensior

unread,
Nov 5, 2009, 2:20:18 AM11/5/09
to Satchmo users
I think the patch noted above may have caused an import error for
satchmo_skeleton as I was going through the quickstart guide.

Looking through bitbucket, I found a message where someone reverted
the changes to clonesatchmo.py (noted here
http://bitbucket.org/chris1610/satchmo/issue/796/use-pip-instead-of-easy_install-to-simplify-installation-of#comment-70475).
It worked for them and seemed to work for me, too.

I'd be interested in seeing if anybody else has been experiencing the
same problem.

Chris Moffitt

unread,
Nov 5, 2009, 9:35:26 AM11/5/09
to satchm...@googlegroups.com
I'm guessing that you're saying the /skeleton directory never makes it over. Is that correct?

The setup.py has a line to include skeleton and in my tests it made it but maybe something is borked.

-Chris
Reply all
Reply to author
Forward
0 new messages