2021年3月19日金曜日

Cellprofiler debug版 インストール

 https://github.com/CellProfiler/CellProfiler/wiki/Source-installation-%28OS-X-and-macOS%29

の通りやっていますが、うまくいっていないのでメモ。

macです。


Homebrewのインストール

Warning: The Ruby Homebrew installer is now deprecated and has been rewritten in

Bash. Please migrate to the following command:

  /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"

というエラーがでるがいちおううごく。

さらに、

Error:

  homebrew-core is a shallow clone.

To `brew update`, first run:

  git -C /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core fetch --unshallow

This command may take a few minutes to run due to the large size of the repository.

This restriction has been made on GitHub's request because updating shallow

clones is an extremely expensive operation due to the tree layout and traffic of

Homebrew/homebrew-core and Homebrew/homebrew-cask. We don't do this for you

automatically to avoid repeatedly performing an expensive unshallow operation in

CI systems (which should instead be fixed to not use shallow clones). Sorry for

the inconvenience!

Failed during: /usr/local/bin/brew update --force --quiet

というエラーもるので、

git -C /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core fetch --unshallow

をやる。これは成功。


java インストール

brew cask install java
するも、Homebrewのcaskがないらしい。
Error: Unknown command: cask
というエラー。

調べると、
brew install java --cask           
でできるとか。

Updating Homebrew...
Error: Cask 'java' is unavailable: No Cask with this name exists.
とやるとやっぱり無理。

caskがないのがやっぱりおかしいのでは?
とおもって。https://devqa.io/brew-install-java/ でみたようにやってみる。
brew tap homebrew/cask-versions
をやると、成功。
(一回exited 128 でエラーになってたけど多分これはネットワークコネクションの問題。)
brew tap caskroom/cask
では、
Error: caskroom/cask was moved. Tap homebrew/cask instead.
なので、そのとおりにやる。なにもでない。

https://github.com/Homebrew/homebrew-cask/issues/90904#issuecomment-709661779
これがうまくいった。


echo 'export PATH="/usr/local/opt/openjdk/bin:$PATH"' >> ~/.zshrc
って出てきたのでやっておく。

Python 

これははいってるので確認だけ。
python --version
Python 3.7.4

MySQL

これは成功。

以上、できたので、
git cloneでインストールしました。

その後

pip3 install -e .
でエラー。
 status 1: python setup.py egg_info Check the logs for full command output.
ERROR: Could not find a version that satisfies the requirement python-javabridge==4.0.3 (from cellprofiler)
ERROR: No matching distribution found for python-javabridge==4.0.3
というエラーメッセージ。

0 件のコメント:

コメントを投稿