Thanks for responding Prasanna. Because I am working on CentOs, python2.6
is the default python install. I have python2.7 installed, but I have to
access it with python2.7 instead of python. I believe there are actually
problems with CentOs if I change the 'python' command to point to python2.7
(so I have been told, but I will try it).
Is it possible to run this marvin.sync command from the command line
specifying the version of python to use?
Thanks,
Will
ps - this fails right now because python2.6 is my default:
[root@cs4-devcloud incubator-cloudstack]# mvn -Pdeveloper,marvin.sync
-Dendpoint=localhost -pl :cloud-marvin
Listening for transport dt_socket at address: 8787
[INFO] Scanning for projects...
[INFO]
[INFO]
------------------------------------------------------------------------
[INFO] Building Apache CloudStack marvin 4.2.0-SNAPSHOT
[INFO]
------------------------------------------------------------------------
[INFO]
[INFO] --- exec-maven-plugin:1.2.1:exec (generate-sources) @ cloud-marvin
---
Traceback (most recent call last):
File "codegenerator.py", line 412, in <module>
cg.generateCodeFromJSON(endpointUrl)
File "codegenerator.py", line 366, in generateCodeFromJSON
apiStream = urllib2.urlopen(endpointUrl)
File "/usr/lib64/python2.6/urllib2.py", line 126, in urlopen
return _opener.open(url, data, timeout)
File "/usr/lib64/python2.6/urllib2.py", line 391, in open
response = self._open(req, data)
File "/usr/lib64/python2.6/urllib2.py", line 409, in _open
'_open', req)
File "/usr/lib64/python2.6/urllib2.py", line 369, in _call_chain
result = func(*args)
File "/usr/lib64/python2.6/urllib2.py", line 1190, in http_open
return self.do_open(httplib.HTTPConnection, req)
File "/usr/lib64/python2.6/urllib2.py", line 1165, in do_open
raise URLError(err)
urllib2.URLError: <urlopen error [Errno 111] Connection refused>
[INFO]
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 3.432s
[INFO] Finished at: Tue Apr 23 13:34:31 EDT 2013
[INFO] Final Memory: 13M/32M
[INFO]
------------------------------------------------------------------------
[ERROR] Failed to execute goal
org.codehaus.mojo:exec-maven-plugin:1.2.1:exec (generate-sources) on
project cloud-marvin: Command execution failed. Process exited with an
error: 1 (Exit value: 1) -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions,
please read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
On Tue, Apr 23, 2013 at 1:16 PM, Prasanna Santhanam <[email protected]> wrote:
> On Tue, Apr 23, 2013 at 10:40:58PM +0530, Prasanna Santhanam wrote:
> > You will need to update marvin since I changed the
> > cloudstackConnection class last week to get POST requests to work.
> >
> > When you startup the server using jetty:run you can do a marvin.sync
> > as follows:
> >
> >
> typo:
> $ sudo mvn -Pdeveloper,marvin.sync -Dendpoint=localhost -pl :cloud-marvin
> * marvin.sync
>
> ------------------------
> Powered by BigRock.com
>
>