exasol / script-languages-container-tool

The script-languages-container-tool is responsible for building script-language container for extending Exasol UDFs
MIT License
1 stars 3 forks source link

Fix vulnerabilities and refactor some parts #216

Closed ckunki closed 2 months ago

ckunki commented 3 months ago
ckunki commented 3 months ago

CI Build, job test-envs (CentOs7) reported

"Could not resolve host: mirrorlist.centos.org;" See https://serverfault.com/questions/1161816/mirrorlist-centos-org-no-longer-resolve

This required to update CentOs7/Dockerfile

ckunki commented 3 months ago

CentOs7 was removed from tested environments.

ckunki commented 3 months ago

Downloading a newer version of exasol_python_test_framework via pip install with requirements.txt seems to download multiple version of pyodbc. Some of them containing python code in their file setup.py that is no longer valid for Python10:

Downloading pyodbc-2.1.11.zip (148 kB)
 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 148.5/148.5 KB 46.2 MB/s eta 0:00:00
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'error'
  error: subprocess-exited-with-error 
  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [7 lines of output]
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "/tmp/pip-install-3jzw3vrq/pyodbc_9c9a5a6d9ab6402e8f96e9b086f7880e/setup.py", line 33
          print version_str
          ^^^^^^^^^^^^^^^^^
      SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
      [end of output]
    note: This error originates from a subprocess, and is likely not a problem with pip.