OP-TEE / manifest

Manifests to use OP-TEE on various platforms
69 stars 176 forks source link

SyntaxError: multiple exception types must be parenthesized #225

Closed bhswallow closed 2 years ago

bhswallow commented 2 years ago

I have already installed optee on Ubuntu22.04, but my virtual machine is broken, reinstalling the same Ubuntu22.04, and now I am experiencing the following new problem,Can you help me.

op-tee$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 22.04.1 LTS
Release:    22.04
Codename:   jammy

op-tee$ python --version
Python 3.10.6

op-tee$ pip --version
pip 22.0.2 from /usr/lib/python3/dist-packages/pip (python 3.10)

optee: 3.19.0
~/workspace/op-tee$ repo init -u https://github.com/OP-TEE/manifest.git -m default.xml --repo-url=git://codeaurora.org/tools/repo.git -b 3.19.0
Downloading Repo source from git://codeaurora.org/tools/repo.git
remote: Enumerating objects: 13, done.
remote: Counting objects: 100% (13/13), done.
remote: Compressing objects: 100% (13/13), done.
remote: Total 7231 (delta 3), reused 0 (delta 0), pack-reused 7218
  File "/home/bh/workspace/op-tee/.repo/repo/main.py", line 126
    except ManifestInvalidRevisionError, e:
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: multiple exception types must be parenthesized
jforissier commented 2 years ago

Why are you using --repo-url?

bhswallow commented 2 years ago

Why are you using --repo-url?

Yes, I removed the --repo-url and it is compiling and waiting for the result, thank you very much. (I use --repo-url because my network is not very friendly)

jforissier commented 2 years ago

(I use --repo-url because my network is not very friendly)

OK. As a result you probably obtained an older version of repo that is not compatible with Python 3.10.