ec
ec copied to clipboard
Running with Singularity (as of Dec. 2022)
This might be useful for anyone that wants to get the project running with Singularity.
This was tested on a fresh install of Ubuntu Server 22.04.1 LTS in VirtualBox.
- Download and install SingularityCE.
user@host:~$ wget https://github.com/sylabs/singularity/releases/download/v3.10.4/singularity-ce_3.10.4-jammy_amd64.deb
user@host:~$ sudo apt install runc
user@host:~$ sudo dpkg -i singularity-ce_3.10.4-jammy_amd64.deb
- Clone this repo.
user@host:~$ git clone https://github.com/ellisk42/ec.git
user@host:~$ cd ec/
- Make changes below:
- Use HTTP sources for submodules in
.gitmodules
.
3c3
< url = https://github.com/insperatum/pregex.git
---
> url = [email protected]:insperatum/pregex.git
6c6
< url = https://github.com/insperatum/pinn.git
---
> url = [email protected]:insperatum/pinn.git
- Downgrade MaxHalford/vose in
singularity
to use the latest version of numpy that supports Python 3.7.
41c41
< pip install git+https://github.com/MaxHalford/vose
---
> pip install git+https://github.com/MaxHalford/vose@fae179e5afa45f224204519c10957d087633ae60
- Download submodules and build Singularity container.
user@host:~/ec$ git submodule update --recursive --init
user@host:~/ec$ sudo singularity build container.img singularity
user@host:~/ec$ ./container.img
- Run example.
Singularity> python bin/text.py -t 20 -RS 5000