SpotCloud packaging tool

112 views
Skip to first unread message

Joern Kapelle

unread,
Feb 19, 2011, 8:52:18 PM2/19/11
to spotclo...@googlegroups.com
Hi, 

it is not possible to download the SpotCload Packing tool. The Link is not working.

Can anyone help me to send me the files?
Thanks
Joern

Reuven Cohen

unread,
Feb 19, 2011, 9:36:34 PM2/19/11
to spotclo...@googlegroups.com, Joern Kapelle

Alicia Choo

unread,
Mar 13, 2011, 10:26:00 AM3/13/11
to spotclo...@googlegroups.com, Joern Kapelle
Downloaded and unzipped the folder and placed the raw image into the same folder. Attempted running all the *.py files but I am stuck. Can somebody point me to further documentation ? I'm on OS X. Thanks

Adam Boduch

unread,
Mar 14, 2011, 9:04:53 AM3/14/11
to spotclo...@googlegroups.com, Joern Kapelle
Hi,

The best way to install spotsh is by using easy install, the Python
utility for installing eggs:

http://packages.python.org/distribute/easy_install.html

Once you have "easy install" on your system, you can do "easy_install
spotsh". Then you're all set.

Alicia Choo

unread,
Mar 20, 2011, 10:41:24 AM3/20/11
to SpotCloud Buyers
Adam

Installed python 2.6 and tried to run packabuilder.py

Got these errors

/Library/Python/2.6/site-packages/spotsh-0.0.1-py2.6.egg/spotsh/
packageuploader.py: line 18: import: command not found
from: can't read /var/mail/urlparse
/Library/Python/2.6/site-packages/spotsh-0.0.1-py2.6.egg/spotsh/
packageuploader.py: line 20: import: command not found
/Library/Python/2.6/site-packages/spotsh-0.0.1-py2.6.egg/spotsh/
packageuploader.py: line 21: import: command not found
/Library/Python/2.6/site-packages/spotsh-0.0.1-py2.6.egg/spotsh/
packageuploader.py: line 22: import: command not found
from: can't read /var/mail/email.Generator
/Library/Python/2.6/site-packages/spotsh-0.0.1-py2.6.egg/spotsh/
packageuploader.py: line 25: import: command not found
/Library/Python/2.6/site-packages/spotsh-0.0.1-py2.6.egg/spotsh/
packageuploader.py: line 27: syntax error near unexpected token `('
/Library/Python/2.6/site-packages/spotsh-0.0.1-py2.6.egg/spotsh/
packageuploader.py: line 27: `def upload_package(client, pkg_path):'

====
what am i doing wrong? Thanks

Adam Boduch

unread,
Mar 21, 2011, 10:51:43 AM3/21/11
to spotclo...@googlegroups.com
Hi,

You shouldn't need to run "packagebuilder.py" directly. When you
install spotsh, a new command becomes available on your system.

You can test this by typing "spotsh". If it is properly installed, you
should get a list of sub-commands. So to build an appliance, instead of
running "packagebuilder.py", you would do something like "spotsh
appliance -b path/to/raw/image".

Alicia Choo

unread,
Mar 21, 2011, 11:33:19 AM3/21/11
to spotclo...@googlegroups.com, Adam Boduch
Got it. Thanks!

Ruok2bu

unread,
May 1, 2011, 7:29:18 PM5/1/11
to spotclo...@googlegroups.com, Adam Boduch
I'm trying to get this working on windows.  When i download the EasyInstall executable (with latest python installed), it complains it cant find Python 2.7.  I uninstalled the latest python and installed Python 2.7 and its still complaining about not finding it.

Ruok2bu

unread,
May 1, 2011, 7:53:15 PM5/1/11
to spotclo...@googlegroups.com, Adam Boduch
I finally got the package tool to work, but whenever i run the package command the xvm2 file gets created for a second, the python process starts but then it kills itself and i get the following error:

W:\SpotCloud>C:\Python27\scripts\spotsh appliance -b w:\SpotCloud\d0.img
Building...
Traceback (most recent call last):
  File "C:\Python27\scripts\spotsh-script.py", line 8, in <module>
    load_entry_point('spotsh==0.0.1', 'console_scripts', 'spotsh')()
  File "C:\Python27\lib\site-packages\spotsh-0.0.1-py2.7.egg\spotsh\__init__.py"
, line 438, in main
    MainCommand()
  File "C:\Python27\lib\site-packages\spotsh-0.0.1-py2.7.egg\spotsh\__init__.py"
, line 142, in __init__
    commands[sys.argv[1]]()
  File "C:\Python27\lib\site-packages\spotsh-0.0.1-py2.7.egg\spotsh\__init__.py"
, line 339, in __init__
    print build_package(self.options._name, self.options._build)
  File "C:\Python27\lib\site-packages\spotsh-0.0.1-py2.7.egg\spotsh\packagebuild
er.py", line 142, in build_package
    os.unlink(tf_name)
WindowsError: [Error 32] The process cannot access the file because it is being
used by another process: 'New Appliance.xvm2'

How do i fix this?

Adam Boduch

unread,
May 2, 2011, 7:20:16 AM5/2/11
to spotclo...@googlegroups.com
Hi,

This is a strange error. Is this something reproducable, or did it only
happen the one time? I'll try to reproduce it here so I can further
diagnose. Thanks for the report.

Adam

Adam Boduch

unread,
May 2, 2011, 3:27:23 PM5/2/11
to spotclo...@googlegroups.com
Hi,

You I've implemented some changes that should at the very least provide
a better error on failure. You can find the new package here:

http://pypi.python.org/pypi/spotsh/0.0.2

Let me know how it works out.

Adam

On Sun, 2011-05-01 at 16:53 -0700, Ruok2bu wrote:

Bjorn

unread,
Sep 4, 2011, 2:25:44 PM9/4/11
to spotclo...@googlegroups.com
Hi, Initially I had the same error (access denied)

I upgraded to version 0.0.0.2 and the error is gone, but i get a new one:

Building...
Compressing: 100%...

Traceback (most recent call last):
  File "c:\Python27\Scripts\spotsh-script.py", line 8, in <module>
    load_entry_point('spotsh==0.0.2', 'console_scripts', 'spotsh')()
  File "C:\Python27\lib\site-packages\spotsh-0.0.2-py2.7.egg\spotsh\__init__.py"

, line 438, in main
    MainCommand()
  File "C:\Python27\lib\site-packages\spotsh-0.0.2-py2.7.egg\spotsh\__init__.py"
, line 135, in __init__
    commands[sys.argv[1]]()
  File "C:\Python27\lib\site-packages\spotsh-0.0.2-py2.7.egg\spotsh\__init__.py"
, line 298, in __init__
    print build_package(self.options._name, self.options._build)
  File "C:\Python27\lib\site-packages\spotsh-0.0.2-py2.7.egg\spotsh\packagebuild
er.py", line 154, in build_package
    sys.exit(1, 'Failed to cleanup disk "%s"' % disk)
TypeError: exit expected at most 1 arguments, got 2

Can you provide a solution fast?

Thanx,
Bjorn

Adam Boduch

unread,
Sep 6, 2011, 9:21:08 AM9/6/11
to spotclo...@googlegroups.com
Hi,

Looking into this now. Should have an updated version available
shortly.

Adam

Reply all
Reply to author
Forward
0 new messages