Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Debian bookworm (python 3.11) #915

Open
sim6 opened this issue Sep 27, 2024 · 0 comments · May be fixed by #916
Open

Support Debian bookworm (python 3.11) #915

sim6 opened this issue Sep 27, 2024 · 0 comments · May be fixed by #916

Comments

@sim6
Copy link

sim6 commented Sep 27, 2024

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.

@sim6 sim6 linked a pull request Sep 27, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant