New package request : py_fabric

Dagobert Michelsen dam at opencsw.org
Mon Apr 21 19:59:40 CEST 2014


Hi Joe,

adding users@ and Pythonista Maciej.

@Maciej: I have been packaging up fabric on request of Joe at
  http://buildfarm.opencsw.org/experimental.html#py_fabric

See recipe at https://buildfarm.opencsw.org/source/xref/opencsw/csw/mgar/pkg/lang-python/fabric/trunk/Makefile


Best regards

  — Dago

Am 21.04.2014 um 19:56 schrieb Joe Beck <jbeck695 at gmail.com>:

> Dago,
> 
> Having issues...
> Install went fine & I can run python and import fabric successfully--
> # python
> Python 2.7.5 (default, Aug  9 2013, 19:02:22)
> [GCC 4.8.0] on sunos5
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import fabric
> >>>
> #
> 
> However, when I run fab (from cmd line) it fails. I've been digging around trying to resolve for a while but unsuccessful so far.
> simple attempt to run uptime # cat fabfile.py
> from fabric.api import run
> # Uptime
> run("uptime")
> running it again 1 server # fab  -H nj09mhe5271
> Traceback (most recent call last):
>   File "/opt/csw/bin/fab", line 5, in <module>
>     from pkg_resources import load_entry_point
> ImportError: No module named pkg_resources
> #
> 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.
> 
> 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.
> 
> 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.
> 
> Thx again,
> Joe
> 
> 
> 
> 
> On Sat, Apr 19, 2014 at 7:10 PM, Joe Beck <jbeck695 at gmail.com> wrote:
> thank you, greatly appreciate it.
> I just tried to get to box where I need it but I forgot I won't have access to it til Monday.
> I'll let you know how I make out.
> Best,
> Joe
> 
> 
> On Fri, Apr 18, 2014 at 3:56 PM, Dagobert Michelsen <dam at opencsw.org> wrote:
> Hi Joe,
> 
> Am 17.04.2014 um 00:14 schrieb via pkgrequests <pkgrequests at lists.opencsw.org>:
> > A new package request has been received from Joe (mailto:jbeck695 at gmail.com). py_fabric is requested to be added to our catalog.
> >
> > Here is the attached message :
> >
> > 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.
> > 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.
> 
> I gave it a quick spin and it gets me the following error for Python 2.6:
> 
> > No use of 'with path' == default local $PATH ... ok
> > 'with path' appends by default ...
> > Fatal error: local() encountered an error (return code 1) while executing 'echo $PATH'
> >
> > ================================ Standard error ================================
> >
> > /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
> >
> > ================================================================================
> >
> > Aborting.
> > ERROR
> >
> > ======================================================================
> > ERROR: 'with path' appends by default
> > ----------------------------------------------------------------------
> > Traceback (most recent call last):
> >   File "/opt/csw/lib/python2.6/site-packages/nose/case.py", line 197, in runTest
> >     self.test(*self.arg)
> >   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
> >     eq_(self.via_local(), self.real + ":foo")
> >   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
> >     return local("echo $PATH", capture=True)
> >   File "/opt/csw/lib/python2.6/contextlib.py", line 34, in __exit__
> >     self.gen.throw(type, value, traceback)
> >   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
> >     yield
> >   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
> >     return local("echo $PATH", capture=True)
> >   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
> >     error(message=msg, stdout=out, stderr=err)
> >   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
> >     return func(message)
> >   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
> >     sys.exit(1)
> > SystemExit: 1
> >
> > ———————————————————————————————————
> 
> I skipped Python 2.6 for now and only shipped the python module for Python 2.7.
> Feel free to investigate if you really care about 2.6.
> Please give the package for 2.7 a try from
>   http://buildfarm.opencsw.org/experimental.html#py_fabric
> and let me know if it is ok for release.
> 
> 
> Best regards
> 
>   — Dago
> 
> 
> --
> "You don't become great by trying to be great, you become great by wanting to do something,
> and then doing it so hard that you become great in the process." - xkcd #896
> 
> 
> 

-- 
"You don't become great by trying to be great, you become great by wanting to do something,
and then doing it so hard that you become great in the process." - xkcd #896

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opencsw.org/pipermail/users/attachments/20140421/1fa41426/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2418 bytes
Desc: not available
URL: <http://lists.opencsw.org/pipermail/users/attachments/20140421/1fa41426/attachment.p7s>


More information about the users mailing list