Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

Error: Operation already in progress for protobuf #43520

Closed
mzaiady opened this issue Sep 2, 2015 · 14 comments
Closed

Error: Operation already in progress for protobuf #43520

mzaiady opened this issue Sep 2, 2015 · 14 comments

Comments

@mzaiady
Copy link

mzaiady commented Sep 2, 2015

On Mac OSX:10.10.5

$rosdep install --from-paths src --ignore-src --rosdistro indigo -y

executing command [brew install gazebo]
==> Installing gazebo from osrf/homebrew-simulation
Error: Operation already in progress for protobuf
Another active Homebrew process is already using protobuf.
Please wait for it to finish or terminate it to continue.
ERROR: the following rosdeps failed to install
homebrew: command [brew install gazebo] failed

@tdsmith
Copy link
Contributor

tdsmith commented Sep 2, 2015

Can you file this with the ROS project please?

@tdsmith
Copy link
Contributor

tdsmith commented Sep 2, 2015

Closing since I see ros-infrastructure/rosdep#406 is open.

This can happen is a tap has a formula that duplicates the name of a formula in core. We can provide some assistance if there are questions.

@wjwwood
Copy link
Contributor

wjwwood commented Sep 2, 2015

@tdsmith I'd argue that if this can be caused by overlapping the formulae in taps, then the error message is wrong.

@wjwwood
Copy link
Contributor

wjwwood commented Sep 2, 2015

@mzaiady What happens if you just run brew install gazebo?

@wjwwood
Copy link
Contributor

wjwwood commented Sep 2, 2015

I just ran brew install gazebo successfully, then I uninstalled it, did brew update and then ran it again and I get the same failure as @mzaiady:

% brew install gazebo
==> Installing gazebo from osrf/homebrew-simulation
Error: Operation already in progress for protobuf
Another active Homebrew process is already using protobuf.
Please wait for it to finish or terminate it to continue.

I'd say this is a new bug in Homebrew, or if this is expected the error message is incorrect.

@tdsmith
Copy link
Contributor

tdsmith commented Sep 2, 2015

I agree it's not a good error message. Whoever maintains the gazebo formula may need to use a fully-qualified formula name in their depends_on declaration; IIRC the entire dependency tree of a formula may refer to at most one formula with a given short name.

Where can we find this formula?

@tdsmith tdsmith reopened this Sep 2, 2015
@wjwwood
Copy link
Contributor

wjwwood commented Sep 2, 2015

@wjwwood
Copy link
Contributor

wjwwood commented Sep 2, 2015

@scpeters fyi

@tdsmith
Copy link
Contributor

tdsmith commented Sep 2, 2015

Okay, I see. This is ultimately a long-standing Homebrew bug but the workaround is to avoid tap formulas with the same name as core formulas. homebrew-julia is an example of an implementation. https://github.com/staticfloat/homebrew-julia/

@tdsmith
Copy link
Contributor

tdsmith commented Sep 2, 2015

Background reading includes #14089, #17730, Homebrew/homebrew-science#767.

@tdsmith
Copy link
Contributor

tdsmith commented Sep 2, 2015

Alternatively, if the protobuf fix has been committed upstream by now, we can pull the patch into Homebrew/homebrew.

@scpeters
Copy link
Member

scpeters commented Sep 2, 2015

I maintain the gazebo formulae and the duplicate protobuf formula is no longer necessary; our error was unrelated to the patch. I just haven't gotten around to deleting it and modifying the gazebo formula accordingly. I'll do so as soon as this discussion is resolved.

I concur that the error message is not very helpful. If it is non-trivial to detect this during install, perhaps an audit rule could be created? The gazebo formula currently passes brew audit --strict.

@brothaman
Copy link

Hello I'm currently trying to install the gazebo simulation and im getting the same error

==> Installing gazebo from osrf/homebrew-simulation
Error: Operation already in progress for protobuf
Another active Homebrew process is already using protobuf.
Please wait for it to finish or terminate it to continue.

I've tried brew audit --strict & brew install gazebo --only-dependencies then brew install gazebo and still the same error. Is there a recommended work around or maybe some other formula where this has been been resolved?

@scpeters
Copy link
Member

I'm fixing the gazebo formula in osrf/homebrew-simulation#46

@DomT4 DomT4 closed this as completed Dec 7, 2015
@Homebrew Homebrew locked and limited conversation to collaborators Jul 10, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants