Installation and updating - galizia-lab/pyview GitHub Wiki
This page contains information about installing and updating VIEW. There are two ways of installing/ updating VIEW.
- As a normal user (quick and easy)
- As a developer (more involved)
- Install Anaconda
- Create an environment
- Install VIEW
- You're done!
- Open terminal or Anaconda Powershell.
- Activate the environment created above, using
conda activate view_py310
- [Recommended] Take note of the latest tag of VIEW from here.
- Install view by typing the following (replace
<tag name>
with the latest tag, e.g.: 0.8.9)
pip install git+https://[email protected]/galizia-lab/pyview.git@<tag name>
[advanced] You could also install the latest developmental version of VIEW which might have minor issues:
pip install git+https://[email protected]/galizia-lab/pyview.git@master
You have successfully installed VIEW!
- Open terminal or Anaconda Powershell.
- Activate the environment created above, using
conda activate view_py310
- Take note of the latest tag of VIEW from here. Install view by typing the following (replace
<tag name>
with the latest tag, e.g.: 0.8.9)pip install git+https://[email protected]/galizia-lab/pyview.git@<tag name>
[advanced] current development version:pip install git+https://[email protected]/galizia-lab/pyview.git@master
NOTE:
---
For VIEW version 0.8.11 and above, each version of VIEW is tied to particular versions of Tillvisionio and ILTIS. This means that if newer versions are installed, they will be downgraded to the version specified by VIEW. Take care!
You have updated successfully VIEW to a new version!
- Install Anaconda
- Download the source code
- Create an environment
- Install VIEW
- (optional) Install ILTIS and tillvisionio
- You're done!
- Create a folder for organizing the source code of VIEW and projects on which it depends.
- Open a terminal/Powershell and navigate into the newly created folder and clone the source code of the following repositories:
- VIEW:
git clone [email protected]/galizia-lab/pyview.git
- Tillvision:
git clone [email protected]:galizia-lab/tillvisionio.git
- ILTIS:
git clone [email protected]:galizia-lab/ILTIS.git
Each command will create a new folder called "view" or "iltis" or "tillvisionio". These folders contains the source code of different repositories.
Follow instructions here, but instead using the conda file "conda_py310_dev_***.yml"
- Open a terminal/Powershell.
- Activate the environment
view
created above, for example usingconda activate <environment name>
- Navigate into the folder containing the source code of view (for example:
cd <drag the folder 'tillvisionio' here from file explorer>
). This folder was created in Step 1 above. Check that this folder contains the filesetup.py
by typing "ls" and then pressing enter. - Check the available tags either by checking "Repository"->"Tags" (on the left panel) or using the command
git tag
in Powershell. - Checkout a version you want to install using the command
git checkout <tag-name>
. Using the latest tag is recommended. You have successfully switched to the latest tag if you see the outputNote: switching to ..... Head is now at ......
(If no tags exist, checkout the master usinggit checkout master
.) - Install view in developer mode:
pip install -e .
(Note the "." at the end)
(NOTES: (1) you might be prompted, multiple times, for your password associated with your ssh key for gitlab.inf.uni-konstanz.de (2) If you get an error at this stage saying "failed to verify SSL certificate", try to dopip install setuptools-scm
first and thenpip install .
)
- You have successfully installed view in developer mode!
Repeat the same procedure as you did above for install VIEW, except, by navigating into the folder "iltis" or "tillvisio". It is important to install these two in developer mode (i.e., using pip install -e .
) after VIEW as view will automatically download and install versions of ILTIS and tillvisionio specified in its setup.py
during installation,
VIEW is being developed together with ILTIS and tillvisionio. Please update ILTIS and tillvisionio whenever you update VIEW, so as to avoid issues due to compatibility.
- Activate the environment created above, for example using
conda activate <environment name>
orpipenv shell
- Navigate into the folder containing the source code.
cd <drag the folder 'iltis' here from file explorer>
. This folder was created above. Check that this folder contains the filesetup.py
. - Checkout your master branch.
git checkout master
. This is required for the next step. - Update your repository to changes from remote:
git pull origin master --tags
. If the output of this command is "Already up to date", no updates are available and you can skip the remaining steps. - Check the available tags either by checking "Repository"->"Tags" (on the left panel) or using the command
git tag
in Powershell. - Checkout a version you want to install using the command
git checkout <tag-name>
. Using the latest tag is recommended. You have successfully switched to the latest tag if you see the outputNote: switching to ..... Head is now at ......
(If no tags exist, checkout the master usinggit checkout master
.) - Update the installation of ILTIS in your environment
pip install -U ./
NOTE: you might be prompted, multiple times, for your password associated with your ssh key for gitlab.inf.uni-konstanz.de
Repeat the same steps as for updating ILTIS above but by navigating into the folder "tillvisionio".
Repeat the same steps as for updating ILTIS above but by navigating into the folder "tillvisionio".
Repeat the same steps as for updating ILTIS above but by navigating into the folder "view".