<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Hi Joe,<div><br></div><div>adding users@ and Pythonista Maciej.</div><div><br></div><div>@Maciej: I have been packaging up fabric on request of Joe at</div><div> <a href="http://buildfarm.opencsw.org/experimental.html#py_fabric">http://buildfarm.opencsw.org/experimental.html#py_fabric</a></div><div><br></div><div>See recipe at <a href="https://buildfarm.opencsw.org/source/xref/opencsw/csw/mgar/pkg/lang-python/fabric/trunk/Makefile">https://buildfarm.opencsw.org/source/xref/opencsw/csw/mgar/pkg/lang-python/fabric/trunk/Makefile</a></div><div><br></div><div><br></div><div>Best regards</div><div><br></div><div> — Dago</div><div><br><div><div>Am 21.04.2014 um 19:56 schrieb Joe Beck <<a href="mailto:jbeck695@gmail.com">jbeck695@gmail.com</a>>:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr">Dago,<div><br></div><div>Having issues...</div><div>Install went fine & I can run python and import fabric successfully--</div><div><div># python</div><div>Python 2.7.5 (default, Aug 9 2013, 19:02:22)</div>
<div>[GCC 4.8.0] on sunos5</div><div>Type "help", "copyright", "credits" or "license" for more information.</div><div>>>> import fabric</div><div>>>></div><div>#</div>
</div><div><br></div><div><b>However</b>, when I run fab (from cmd line) it fails. I've been digging around trying to resolve for a while but unsuccessful so far.</div><div><div>simple attempt to run uptime # cat fabfile.py</div>
<div>from fabric.api import run</div><div># Uptime</div><div>run("uptime")</div><div>running it again 1 server # fab -H nj09mhe5271</div><div>Traceback (most recent call last):</div><div> File "/opt/csw/bin/fab", line 5, in <module></div>
<div> from pkg_resources import load_entry_point</div><div>ImportError: No module named pkg_resources</div><div>#</div></div><div>I get same complaint if I just try & run fab by itself so it seems like something related to pkg_resources and/or setuptools is broke. unfortunately, I'm no python guru so not able to resolve. was thinking it could be related to having python 2.6 & 2.7 installed now in /opt/csw/bin but went thru & tried a few things with this in mind but can't seem to get it.</div>
<div><br></div><div>I'm on the fence now on whether to continue down this path or to ask someone to create latest py_salt pkg instead as this tool seems to be gaining more momentum in this area now.</div><div><br></div>
<div>Let me know if you have ideas or if we should just let this go & I should put request in for latest py_salt pkg.</div><div><br></div><div>Thx again,</div><div>Joe</div><div><br></div><div><br></div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Sat, Apr 19, 2014 at 7:10 PM, Joe Beck <span dir="ltr"><<a href="mailto:jbeck695@gmail.com" target="_blank">jbeck695@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">thank you, greatly appreciate it.<div>I just tried to get to box where I need it but I forgot I won't have access to it til Monday.</div><div>I'll let you know how I make out.</div><div>Best,</div><div>
Joe</div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Apr 18, 2014 at 3:56 PM, Dagobert Michelsen <span dir="ltr"><<a href="mailto:dam@opencsw.org" target="_blank">dam@opencsw.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Joe,<br>
<br>
Am 17.04.2014 um 00:14 schrieb via pkgrequests <<a href="mailto:pkgrequests@lists.opencsw.org" target="_blank">pkgrequests@lists.opencsw.org</a>>:<br>
> A new package request has been received from Joe (mailto:<a href="mailto:jbeck695@gmail.com" target="_blank">jbeck695@gmail.com</a>). py_fabric is requested to be added to our catalog.<br>
><br>
> Here is the attached message :<br>
><br>
> I\'ve used coolstack quite a bit in years past & just on a project that has lots of solaris h/w & os. I just discovered opencsw as the versions of most apps here at this project is real dated.<br>
> I\'d like to use python & fabric for a bunch of sysadmin tasks so I\'d love to be able to install fabric. I\'m sure you\'re aware of this tool but if not it sits on top of py_paramiko to make ssh more manageable for doing remote admin & build/deploy tasks.<br>
<br>
I gave it a quick spin and it gets me the following error for Python 2.6:<br>
<br>
> No use of 'with path' == default local $PATH ... ok<br>
> 'with path' appends by default ...<br>
> Fatal error: local() encountered an error (return code 1) while executing 'echo $PATH'<br>
><br>
> ================================ Standard error ================================<br>
><br>
> /bin/sh: PATH=/home/dam/mgar/pkg/lang-python/fabric/trunk/work/solaris10-sparc/install-isa-sparcv8plus-python_version-2_6/opt/csw/bin:/home/dam/mgar/pkg/lang-python/fabric/trunk/work/solaris10-sparc/install-isa-sparcv8plus-python_version-2_6/opt/csw/bin:/home/dam/mgar/pkg/lang-python/fabric/trunk/work/solaris10-sparc/install-isa-sparcv8plus-python_version-2_6/opt/csw/sbin:/home/dam/mgar/pkg/lang-python/fabric/trunk/work/solaris10-sparc/install-isa-sparcv8plus-python_version-2_6/opt/csw/sbin:/opt/csw/bin:/opt/csw/bin:/opt/csw/sbin:/opt/csw/sbin:/opt/solarisstudio12.3/bin:/home/dam/mgar/pkg/.buildsys/v2/gar/bin:/usr/bin:/usr/sbin:/usr/java/bin:/usr/ccs/bin:/usr/openwin/bin:foo: is not an identifier<br>
><br>
> ================================================================================<br>
><br>
> Aborting.<br>
> ERROR<br>
><br>
> ======================================================================<br>
> ERROR: 'with path' appends by default<br>
> ----------------------------------------------------------------------<br>
> Traceback (most recent call last):<br>
> File "/opt/csw/lib/python2.6/site-packages/nose/case.py", line 197, in runTest<br>
> self.test(*self.arg)<br>
> File "/home/dam/mgar/pkg/lang-python/fabric/trunk/work/solaris10-sparc/build-isa-sparcv8plus-python_version-2_6/Fabric-1.8.3/tests/test_context_managers.py", line 240, in test_use_of_path_appends_by_default<br>
> eq_(self.via_local(), self.real + ":foo")<br>
> File "/home/dam/mgar/pkg/lang-python/fabric/trunk/work/solaris10-sparc/build-isa-sparcv8plus-python_version-2_6/Fabric-1.8.3/tests/test_context_managers.py", line 227, in via_local<br>
> return local("echo $PATH", capture=True)<br>
> File "/opt/csw/lib/python2.6/contextlib.py", line 34, in __exit__<br>
> self.gen.throw(type, value, traceback)<br>
> File "/home/dam/mgar/pkg/lang-python/fabric/trunk/work/solaris10-sparc/build-isa-sparcv8plus-python_version-2_6/Fabric-1.8.3/fabric/context_managers.py", line 61, in _set_output<br>
> yield<br>
> File "/home/dam/mgar/pkg/lang-python/fabric/trunk/work/solaris10-sparc/build-isa-sparcv8plus-python_version-2_6/Fabric-1.8.3/tests/test_context_managers.py", line 227, in via_local<br>
> return local("echo $PATH", capture=True)<br>
> File "/home/dam/mgar/pkg/lang-python/fabric/trunk/work/solaris10-sparc/build-isa-sparcv8plus-python_version-2_6/Fabric-1.8.3/fabric/operations.py", line 1184, in local<br>
> error(message=msg, stdout=out, stderr=err)<br>
> File "/home/dam/mgar/pkg/lang-python/fabric/trunk/work/solaris10-sparc/build-isa-sparcv8plus-python_version-2_6/Fabric-1.8.3/fabric/utils.py", line 327, in error<br>
> return func(message)<br>
> File "/home/dam/mgar/pkg/lang-python/fabric/trunk/work/solaris10-sparc/build-isa-sparcv8plus-python_version-2_6/Fabric-1.8.3/fabric/utils.py", line 34, in abort<br>
> sys.exit(1)<br>
> SystemExit: 1<br>
><br>
> ———————————————————————————————————<br>
<br>
I skipped Python 2.6 for now and only shipped the python module for Python 2.7.<br>
Feel free to investigate if you really care about 2.6.<br>
Please give the package for 2.7 a try from<br>
<a href="http://buildfarm.opencsw.org/experimental.html#py_fabric" target="_blank">http://buildfarm.opencsw.org/experimental.html#py_fabric</a><br>
and let me know if it is ok for release.<br>
<br>
<br>
Best regards<br>
<br>
— Dago<br>
<span><font color="#888888"><br>
<br>
--<br>
"You don't become great by trying to be great, you become great by wanting to do something,<br>
and then doing it so hard that you become great in the process." - xkcd #896<br>
<br>
</font></span></blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</blockquote></div><br><div apple-content-edited="true">
<div style="color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span style="font-family: monospace; ">-- </span><br style="font-family: monospace; "><span style="font-family: monospace; ">"You don't become great by trying to be great, you become great by wanting to do something,</span><br style="font-family: monospace; "><span style="font-family: monospace; ">and then doing it so hard that you become great in the process." - xkcd #896</span></div>
</div>
<br></div></body></html>