Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linux release #300

Open
antonkulaga opened this issue Jun 21, 2021 · 7 comments
Open

Linux release #300

antonkulaga opened this issue Jun 21, 2021 · 7 comments

Comments

@antonkulaga
Copy link

Could you please publish Linux release?

@DavidStirling
Copy link
Member

Unfortunately we don't currently have access to Linux machines for testing, and the variability between distributions can cause problems. Have you tried installing from source?

@antonkulaga
Copy link
Author

There are instructions for cellprofiler, where are instructions for cellprofiler analyst?

@DavidStirling
Copy link
Member

As far as I'm aware nobody has tried a Linux installation of CPA3 yet, so the wiki instructions are outdated. I'd suggest that you install Python 3.8, git clone the repository and run pip install -e ..

@antonkulaga
Copy link
Author

I am having issues with the regular CellProfiler. Maybe you can make at least a conda-package for it, because your pip is half-broken in terms of dependencies. I kind of managed to make it partially work, but still getting errors CellProfiler/CellProfiler#4415

@DavidStirling
Copy link
Member

CellProfiler Linux instructions are still in need of improvement. That said, Analyst has far fewer dependencies so hopefully that should be less broken.

@andersla
Copy link

andersla commented Dec 1, 2021

These are instructions I came up with when installing CellProfiler-Analyst on Ubuntu 20.04, I installed in a python venv to avoid conflicts with other python libs on the server, hope they can help:

# install dependencies from ubuntu repos
sudo apt-get update
sudo apt-get install -y \
    build-essential \
    default-libmysqlclient-dev \
    git \
    libgtk-3-dev \
    libnotify-dev \
    libsdl2-dev \
    libzmq3-dev \
    locales \
    openjdk-11-jdk-headless \
    python3-pip \
    python3-venv

# clone git-repo
git clone https://github.com/CellProfiler/CellProfiler-Analyst.git

# It is probably best to checkout a specific tag here,
git checkout 3.0.4

# enter cloned repo
cd CellProfiler-Analyst

# create and activete venv
python3 -m venv venv
source venv/bin/activate

# install pip depeendencies (not in requirements.txt)
pip install numpy

# add JAVA_HOME (needed py some pip packages, when building with wheel)
export JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64

# build and compile Python dependencies and CellProfiler-Analyst
pip install -e .

To run the program you could create a simple bash-script CellProfiler-Analyst.sh activating venv and running main module

#!/usr/bin/env bash
source /**<install-dir>**/venv/bin/activate
python3 -m CellProfiler-Analyst

To remove program, just rm the CellProfiler-Analyst directory that also contains the Python venv directory

@andersla
Copy link

andersla commented Dec 2, 2021

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

No branches or pull requests

3 participants