[ros-users] rosdep + macports

William Woodall wjwwood at gmail.com
Mon Nov 14 17:57:05 UTC 2011


Ah, that is totally my bad, I added that in to detect if port was installed
while I was working on the
Homebrew<http://www.ros.org/wiki/electric/Installation/OSX/Homebrew>port.
I forgot that port goes into 'interactive' mode if you don't give it
a verb.  `port help` is a good alternative or `port --version`, just
anything that tests to see if it exists and is in the path.

When you file the ticket let us know here.

Thanks,

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
William Woodall
Graduate Software Engineering
Auburn University
w at auburn.edu
wjwwood at gmail.com
williamjwoodall.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



On Mon, Nov 14, 2011 at 11:51 AM, Ken Conley <kwc at willowgarage.com> wrote:

> On Mon, Nov 14, 2011 at 8:51 AM, Benjamin Charrow
> <bcharrow at seas.upenn.edu> wrote:
> > Hi all.
> >
> > I've been experiencing a slight problem with rosdep and macports.
>  Basically, after I run rosdep, a macports process consumes 100% of my CPU
> and commands I enter in the terminal aren't displayed (stdin is stolen).  I
> have macports 2.0.3 and am using the ros-1.6.6 tagged version of ros.  Has
> anyone else had this problem?
> >
> > Looking at the source, the issue seems to be a check for whether or not
> macports exists in the constructor of rosdep.installers.MacportsInstaller.
>  There's a popen command which opens up a macports session, but the process
> doesn't look like it's being killed.  This would explain why I/O is being
> stolen, though I'm not sure why my CPU usage spikes.  My quick fix was to
> just change the command to be "port help" (see diff bellow).
> >
> > Should I file a bug report?
>
> Yes, please use the bug tracker to file patches instead of ros-users.
> It's easier to track and follow up on.
>
> There is a link to create new tickets at the bottom of the rosdep wiki
> page:
> http://ros.org/wiki/rosdep
>
> thanks,
> Ken
>
> > Cheers,
> > Ben
> >
> > SVN URL:
> https://code.ros.org/svn/ros/stacks/ros/tags/ros-1.6.6/tools/rosdep/src/rosdep
> >
> > bcharrow at amateur:/opt/ros/electric/ros/tools/rosdep/src/rosdep
> > $ svn diff
> > Index: installers.py
> > ===================================================================
> > --- installers.py       (revision 15358)
> > +++ installers.py       (working copy)
> > @@ -424,7 +424,7 @@
> >             packages = packages.split()
> >
> >         try:
> > -            pop = subprocess.Popen(['port'], stdout=subprocess.PIPE,
> stderr=subprocess.PIPE)
> > +            pop = subprocess.Popen(['port', 'help'],
> stdout=subprocess.PIPE, stderr=subprocess.PIPE)
> >         except OSError:
> >             import traceback; traceback.print_exc()
> >             print("There was an error running macports, make sure it is
> installed properly.", file=sys.stderr)
> > _______________________________________________
> > ros-users mailing list
> > ros-users at code.ros.org
> > https://code.ros.org/mailman/listinfo/ros-users
> >
> _______________________________________________
> ros-users mailing list
> ros-users at code.ros.org
> https://code.ros.org/mailman/listinfo/ros-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ros.org/pipermail/ros-users/attachments/20111114/e065094d/attachment-0004.html>


More information about the ros-users mailing list