Package Details: python-instructor 1.7.8-3

Git Clone URL: https://aur.archlinux.org/python-instructor.git (read-only, click to copy)
Package Base: python-instructor
Description: Structured outputs for LLMs
Upstream URL: https://github.com/jxnl/instructor
Licenses: MIT
Submitter: carsme
Maintainer: envolution
Last Packager: envolution
Votes: 1
Popularity: 0.003012
First Submitted: 2024-01-09 08:38 (UTC)
Last Updated: 2025-03-30 03:49 (UTC)

Latest Comments

1 2 Next › Last »

Madic commented on 2025-03-18 08:45 (UTC) (edited on 2025-03-18 08:46 (UTC) by Madic)

python-google-generativeai is marked as optional dependency, but python-instructor can't be installed / updated without it.

Tests fail with "ModuleNotFoundError: No module named 'google.generativeai'"

envolution commented on 2025-03-16 17:38 (UTC)

@mehanoid thanks, added

mehanoid commented on 2025-03-16 17:36 (UTC)

python-hatchling dependency is also missing

Traceback (most recent call last):
  File "/usr/lib/python3.13/site-packages/pyproject_hooks/_impl.py", line 402, in _call_hook
    raise BackendUnavailable(
    ...<4 lines>...
    )
pyproject_hooks._impl.BackendUnavailable: Cannot import 'hatchling.build'

ERROR Backend 'hatchling.build' is not available.

envolution commented on 2025-03-16 16:25 (UTC)

@fenriris thanks for the report, should be fixed

Fenriris commented on 2025-03-16 07:52 (UTC) (edited on 2025-03-16 07:53 (UTC) by Fenriris)

Hi,

It looks like the python-instructor package is mistakenly marked as a dependency for itself, causing a circular dependency. This issue prevents the package from being installed. Thanks!

Here is the error message I received:

-> python-instructorpython-instructor self-referential dependencies not allowed

DZDZ233 commented on 2025-03-15 03:20 (UTC)

Installing python-grpcio fixed this: ModuleNotFoundError: No module named 'grpc'

envolution commented on 2025-03-14 21:42 (UTC) (edited on 2025-03-14 21:43 (UTC) by envolution)

Try installing Python-docstring-parser, I may have missed that dependency

SSYH commented on 2025-03-14 20:03 (UTC)

Am I the only one?

. . . . .
__________________________________________________________________________________________________________________________________________________________________________ ERROR collecting tests/test_utils.py __________________________________________________________________________________________________________________________________________________________________________
ImportError while importing test module '/home/sam/.cache/paru/clone/python-instructor/src/instructor-1.7.4/tests/test_utils.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.13/importlib/__init__.py:88: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/test_utils.py:3: in <module>
    from instructor.utils import (
instructor/__init__.py:4: in <module>
    from .process_response import handle_response_model
instructor/process_response.py:19: in <module>
    from instructor.dsl.iterable import IterableBase, IterableModel
instructor/dsl/__init__.py:1: in <module>
    from .iterable import IterableModel
instructor/dsl/iterable.py:6: in <module>
    from instructor.function_calls import OpenAISchema
instructor/function_calls.py:7: in <module>
    from docstring_parser import parse
E   ModuleNotFoundError: No module named 'docstring_parser'
================================================================================================================================================================================ short test summary info =================================================================================================================================================================================
ERROR tests/dsl/test_partial.py
ERROR tests/dsl/test_simple_type.py
ERROR tests/llm/test_anthropic/evals/test_simple.py
ERROR tests/llm/test_anthropic/test_multimodal.py
ERROR tests/llm/test_anthropic/test_reasoning.py
ERROR tests/llm/test_anthropic/test_stream.py
ERROR tests/llm/test_anthropic/test_system.py
ERROR tests/llm/test_cohere/test_json_schema.py
ERROR tests/llm/test_cohere/test_none_response.py
ERROR tests/llm/test_cohere/test_retries.py
ERROR tests/llm/test_litellm.py
ERROR tests/llm/test_new_client.py
ERROR tests/llm/test_perplexity/test_modes.py
ERROR tests/test_dict_operations.py
ERROR tests/test_dict_operations_validation.py
ERROR tests/test_distil.py
ERROR tests/test_formatting.py
ERROR tests/test_function_calls.py
ERROR tests/test_json_extraction.py
ERROR tests/test_json_extraction_edge_cases.py
ERROR tests/test_message_processing.py
ERROR tests/test_multitask.py
ERROR tests/test_patch.py
ERROR tests/test_process_response.py
ERROR tests/test_response_model_conversion.py
ERROR tests/test_schema.py
ERROR tests/test_simple_types.py
ERROR tests/test_utils.py
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 28 errors during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
=================================================================================================================================================================================== 28 errors in 2.85s ===================================================================================================================================================================================
==> ERROR: A failure occurred in check().
    Aborting...
error: failed to build 'python-instructor-1.7.4-1': 
error: packages failed to build: python-instructor-1.7.4-1

brokenpip3 commented on 2024-12-05 09:41 (UTC)

perfect, now is working again, thanks!

envolution commented on 2024-12-03 11:22 (UTC)

@brokenpip3 thanks, not clear to me why I'm not having issues with this test - i've disabled for the time being