Uploaded image for project: 'AI Platform Core Components'
  1. AI Platform Core Components
  2. AIPCC-8574

tree-sitter-python-0.25.0-2: _binding.abi3.so: undefined symbol: tree_sitter_python_external_scanner_create

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • None
    • None
    • Development Platform
    • None
    • False
    • Hide

      None

      Show
      None
    • False
    • DP Sprint 23, DP Sprint 24

      Description of problem:

      tree-sitter-python fails to import. The package is required by Docling.

      Version numbers (base image, wheels, builder, etc):

      v26.0.0
      tree-sitter-python 0.25

      Steps to Reproduce:

      1. configure pip to use 3.3 test index
      2. pip install tree-sitter-python
      3. python3 -c "import tree_sitter_python"

      Actual results:

      $ python3 -c "import tree_sitter_python"
      Traceback (most recent call last):
        File "<string>", line 1, in <module>
        File "/opt/app-root/lib64/python3.12/site-packages/tree_sitter_python/__init__.py", line 5, in <module>
          from ._binding import language
      ImportError: /opt/app-root/lib64/python3.12/site-packages/tree_sitter_python/_binding.abi3.so: undefined symbol: tree_sitter_python_external_scanner_create
      

      Expected results:

          

      Additional info:

      The "tree-sitter-python" sdist is missing "src/scanner.c". Building from git clone should work around the problem.

      We should report the issue to upstream, too. Upstream could use a "MANIFEST.IN" to include all ".c" and ".h" files from src and bindings directories.

              rh-ee-rdevasth Rohan Devasthale
              cheimes@redhat.com Christian Heimes
              Antonio's Team
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: