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

Another active Homebrew process is already using openblas. #17730

Closed
c0g opened this issue Feb 9, 2013 · 17 comments
Closed

Another active Homebrew process is already using openblas. #17730

c0g opened this issue Feb 9, 2013 · 17 comments
Labels

Comments

@c0g
Copy link

c0g commented Feb 9, 2013

I get:

Error: Operation already in progress for openblas
Another active Homebrew process is already using openblas.
Please wait for it to finish or terminate it to continue.

But there is no active homebrew process. OSX 10.8.2, Ruby 1.8.7. I have brew rm'd and reinstalled blas, any ideas?

brew doctor only notifies me of a libwfdb which I have installed (I have mv'd it elsewhere, no help).

@jacknagel
Copy link
Contributor

$ rm $(brew --cache)/Formula/openblas.brewing

The locking is implemented using flock(), which is only locks file descriptors and is thus supposed to be released when the holding process terminates. I've seen it seem to persist before, but I was never able to reproduce it consistently.

@adamv
Copy link
Contributor

adamv commented Feb 9, 2013

Might need a brew unlock command or some such.

@jacknagel
Copy link
Contributor

One thought I had is that during the build, some long-running process detaches itself and never terminates; the lock would still be held by this process.

@c0g
Copy link
Author

c0g commented Feb 9, 2013

Ran the unlock a few times, no dice. I've rebooted my mac to make sure brew was killed, as well.

~ $ brew update
Updated Homebrew from d8e3ef85 to 83a9b45a.
==> Updated Formulae
git-archive-all    groonga        uudeview
~ $ rm $(brew --cache)/Formula/openblas.brewing
~ $ brew install --HEAD julia
Error: Operation already in progress for openblas
Another active Homebrew process is already using openblas.
Please wait for it to finish or terminate it to continue.

@jacknagel
Copy link
Contributor

Sorry, it could be a lock on a dep; just blow away all the *.brewing files.

@MikeMcQuaid
Copy link
Member

Could you do ps aux | grep ruby or something in the case that it's locked?

@jacknagel
Copy link
Contributor

Mmm, this is subtler than it seems; I just tapped staticfloat/julia and see the same thing immediately.

@jacknagel
Copy link
Contributor

The problem is that the dependencies in the julia formula are inconsistent, and end up pulling in openblas, homebrew/science/openblas, and staticfloat/julia/openblas, which map to the same lock.

@c0g
Copy link
Author

c0g commented Feb 9, 2013

Ah, thanks very much for your help. It installed fine a few weeks ago. Do I close this or what do I do now?

@jacknagel
Copy link
Contributor

Probably open an issue with staticfloat/julia, the openblas deps need to be sorted out, as it will cause more problems than just locking conflicts if the same software is in the deps list more than once.

@mxj4
Copy link
Contributor

mxj4 commented Aug 20, 2013

Recently I also had this problem, and at last I found the reason to my case is I used formula aliases in depends_on part of my formula. My formula depends on pkg-config and little-cms2, and they have aliases "pkgconfig" and "lcms2" and I used them. I think the cookbook need to be updated to remind people don't use alias in formula.

@marnen
Copy link
Contributor

marnen commented Sep 12, 2013

Yeah, I just had this problem with qt, and that was the issue for me too (my formula depended on qt4).

@jmtd
Copy link

jmtd commented Dec 11, 2013

Just hit this with pkgconfig versus pkg-config in a depends_on. This was a typo rather than purposefully using an alias.

@sjackman
Copy link
Member

I just ran into this issue as well with a pkgconfig dependency typo.

@max0x7ba
Copy link

I am hitting this issue today. This is what I did:

$ brew install python
$ brew tap homebrew/science
$ brew tap samueljohn/python
$ cd /usr/local/Library/Taps/samueljohn-python
$ git remote set-url origin [email protected]:samueljohn/homebrew-python.git
$ cd -
$ pip install nose
$ brew install gfortran
$ brew install numpy --with-openblas
Error: Operation already in progress for openblas
Another active Homebrew process is already using openblas.
Please wait for it to finish or terminate it to continue.

$ rm /Library/Caches/Homebrew/Formula/*.brewing
$ brew install numpy --with-openblas
Error: Operation already in progress for openblas
Another active Homebrew process is already using openblas.
Please wait for it to finish or terminate it to continue.

How do I fix this error, please?

@r-b-g-b
Copy link

r-b-g-b commented Apr 17, 2014

@max0x7ba I was having the exact same problem and found a fix in the homebrew-science github forums (https://github.com/Homebrew/homebrew-science/pull/767). It involves editing the formula for numpy (''brew edit numpy'') and replacing the reference to homebrew/science/openblas with openblas. Hope this works for you too!

@curveo
Copy link

curveo commented Jun 18, 2015

Thanks for the tip jack! one note on how to reproduce the issue: start a brew install gradle (for example) then hit cntrl z while its in progress. Thats how i reproduced it anyway.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests