summaryrefslogtreecommitdiff
path: root/issues/CI-CD/migrate-to-python3.10.gmi
blob: 3a80654cda97e68df9dee32131a2a7cfb56ff91a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# Migrate to Python3.10

## Tags

* priority: high
* keywords: python3.10
* status: open
* assigned: bonfacem, fredm, alex, zachs

## Description

Migrate the application(s) over to Python3.10.

The sections below will note the migration issues for the various apps.

### GN2

### GN3

* Created branch `migrate-to-python3.10` with some minor changes to adapt code to Python3.10

#### Migrate Libraries

* [ ] yoyo-migrations
* others ...

### Migration Notes

This error in guix-forge:

```
bonfacem@tux02 ~ $ zcat /var/log/guix/drvs/d6/48xcspiykyhcink41968zhfr15w2d5-guix-forge.drv.gz 
(repl-version 0 1 1)
(exception unbound-variable (value #f) (value "Unbound variable: ~S") (value (match-record-lambda)) (value #f))
```

... is because match-record-lambda is from a relatively new version of guix---probably one in which python is on 3.10.

This failing mypy test:

```
Bugfix: fix error when loading Python module based migrations, caused by changes to importlib in Python 3.8.10 and Python 3.9.5.
```

Has been discussed and resolved in:

=> https://ollycope.com/software/yoyo/latest/#released-2020-07-17

## Fixes
=> https://github.com/genenetwork/genenetwork3/pull/128 Migrate from 3.9 to 3.10
=> https://github.com/genenetwork/genenetwork2/pull/802 Remove PYTHONPATH injection