You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you are using `conda`, we recommend creating a new environment using `conda-lock` to ensure that the environment is reproducible across different systems.
26
+
27
+
**Create the environment using `conda-lock`[recommended]**
28
+
29
+
To create a new environment using `conda-lock`, first install `conda-lock`, if you haven't already, using one of the [available methods](https://github.com/conda/conda-lock/tree/main?tab=readme-ov-file#installation).
30
+
31
+
Then, run the following command in the root directory of the repository:
32
+
33
+
```bash
34
+
conda-lock install --name <env_name>
35
+
```
36
+
37
+
This will create a new environment with the name `<env_name>` and install all the required dependencies.
Install the dependencies and the package (the `pip install -r requirements_dev.txt` can be skipped on a production server)
44
62
45
63
```bash
@@ -50,11 +68,56 @@ python setup.py install
50
68
51
69
<details>
52
70
53
-
<summary>Note on MacOS installations</summary>
71
+
<summary>Troubleshoot issues on Apple Silicon installation</summary>
72
+
73
+
If you are using an Apple Silicon Mac, you may encounter issues with the installation of some libraries, as they may not be compatible with the ARM architecture. Either of the following solutions may help you resolve these issues. The solutions are listed in order of reccommendation.
74
+
75
+
### Use Dev containers
76
+
77
+
If you are using Visual Studio Code, you can use the Dev Containers feature to create a development environment that is compatible with your architecture. This will allow you to run the code in a container that has all the necessary dependencies installed.
78
+
To do this, you need to enable the Dev Containers feature in Visual Studio Code and then open the repository in a container.
54
79
55
-
### Fix library issues
80
+
### Avoid the problematic python packages
56
81
57
-
If you are using MacOS, you might run into some issues with the libraries when running the app.
82
+
The problematic python packages are only necessary for the correct functionality of the "Agreement and Invoicing" parts of Genomics Status, which are normally not used in a development environment. Therefore, you can skip the installation of these packages by removing them from the `environment.yml` or `conda_requirements.yml` file.
83
+
84
+
**Conda-lock**
85
+
If you are using `conda-lock`, delete the following lines in the `environment.yml` file:
86
+
87
+
```yaml
88
+
- pango
89
+
- open-fonts
90
+
- xorg-libxrender
91
+
- xorg-libxext
92
+
- xorg-libxau
93
+
```
94
+
95
+
Then, lock and install the environment again:
96
+
97
+
```bash
98
+
conda lock -f environment.yml
99
+
conda-lock install --name <env_name>
100
+
```
101
+
102
+
**Conda**
103
+
104
+
If you are using the standard `conda` installation, delete the following lines in the `conda_requirements.yml` file:
0 commit comments