Skip to content

deprecation error: pyarrow

Summary

Server-side-scripting autopkgtest fails, as well as pyinttests

Probably due to a dependency which throws deprecation warnings:

_______________ test_run_server_side_script_with_additional_file _______________
    def test_run_server_side_script_with_additional_file():
        RecordType("TestRT").insert()
        _REMOVE_FILES_AFTERWARDS.append("test_file.txt")
        with open("test_file.txt", "w") as f:
            f.write("this is a test")
    
        response = run_server_side_script("administration/diagnostics.py",
                                          "pos0",
                                          "pos1",
                                          exit="123",
                                          query="COUNT ENTITY TestRT",
                                          files={"dummykey": "test_file.txt"})
>       assert response.stderr is None
E       AssertionError: assert '/opt/caosdb/git/caosdb-server/scripting/bin/administration/diagnostics.py:108: DeprecationWarning: \nPyarrow will bec...r you,\nplease provide us feedback at https://github.com/pandas-dev/pandas/issues/54466\n        \n  i = __import__(m)' is None
E        +  where '/opt/caosdb/git/caosdb-server/scripting/bin/administration/diagnostics.py:108: DeprecationWarning: \nPyarrow will bec...r you,\nplease provide us feedback at https://github.com/pandas-dev/pandas/issues/54466\n        \n  i = __import__(m)' = <linkahead.utils.server_side_scripting.ScriptingResponse object at 0x7fd8f561f400>.stderr
tests/test_server_side_scripting.py:206: AssertionError

Steps to Reproduce the Problem

Run pipeline.

Specifications

  • Version: main and dev branches
  • Platform: See pipeline runner server.

Possible fixes

Edited by Daniel Hornung
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information