Skip to content

Support Debian bookworm (python 3.11) #915

@sim6

Description

@sim6

Version affectada:

  • 17.0

Pasos para reproducir:

  1. Usar python3.11
cd $(mktemp -d)
cat > Dockerfile <<EOF
FROM debian:bookworm-slim
RUN apt update
RUN apt install -y git python3-venv
RUN git clone -b 17.0 https://github.com/ingadhoc/odoo-argentina.git
RUN python3 -m venv venv
RUN ./venv/bin/pip install -r odoo-argentina/requirements.txt
RUN ./venv/bin/python -m pysimplesoap
EOF
docker build .
[...]
Step 7/7 : RUN ./venv/bin/python -m pysimplesoap
 ---> Running in cb12a6735038
Traceback (most recent call last):
  File "<frozen runpy>", line 189, in _run_module_as_main
  File "<frozen runpy>", line 148, in _get_module_details
  File "<frozen runpy>", line 112, in _get_module_details
  File "//venv/lib/python3.11/site-packages/pysimplesoap/__init__.py", line 4, in <module>
    from . import client
  File "//venv/lib/python3.11/site-packages/pysimplesoap/client.py", line 35, in <module>
    from .transport import get_http_wrapper, set_http_wrapper, get_Http
  File "//venv/lib/python3.11/site-packages/pysimplesoap/transport.py", line 140, in <module>
    if 'timeout' in inspect.getargspec(httplib2.Http.__init__)[0]:
                    ^^^^^^^^^^^^^^^^^^
AttributeError: module 'inspect' has no attribute 'getargspec'. Did you mean: 'getargs'?
The command '/bin/sh -c ./venv/bin/python -m pysimplesoap' returned a non-zero code: 1

Lo que pasa actualmente:

La version de pysimplesoap instalada mediante requirements.txt no funciona con python3.11.

Lo que debe pasar:

Poder usar pysimplesoap con python3.11.

Analisis profunda:

El requirements.txt apunta a un commit de pysimplesoap que no es compatible con python3.11 ya que usa inspect.getargspec() que solo está disponible hasta python3.10.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions