Giter Site home page Giter Site logo

Comments (4)

fer-git avatar fer-git commented on August 19, 2024 1

I think the issue is on tenacity here, you need to update it to 8.4.1
https://github.com/jd/tenacity/releases/tag/8.4.1

from instructor.

rishav1122 avatar rishav1122 commented on August 19, 2024

yeah, same error
I have also installed tenacity 8.4.0

from instructor.

ivanleomk avatar ivanleomk commented on August 19, 2024

@fer-git thanks for catching this, managed to reproduce this issue. I'll try to publish a fix soon for this

(instructor) ivanleo@Ivans-MacBook-Pro instructor % uv pip install tenacity==8.4.0                               
Resolved 1 package in 30ms
Installed 1 package in 2ms
 - tenacity==8.4.1
 + tenacity==8.4.0
(instructor) ivanleo@Ivans-MacBook-Pro instructor % python3 test.py                                              
Traceback (most recent call last):
  File "/Users/ivanleo/Documents/coding/instructor/test.py", line 1, in <module>
    import instructor
  File "/Users/ivanleo/Documents/coding/instructor/instructor/__init__.py", line 15, in <module>
    from .patch import apatch, patch
  File "/Users/ivanleo/Documents/coding/instructor/instructor/patch.py", line 17, in <module>
    from instructor.retry import retry_async, retry_sync
  File "/Users/ivanleo/Documents/coding/instructor/instructor/retry.py", line 18, in <module>
    from tenacity import AsyncRetrying, RetryError, Retrying, stop_after_attempt
  File "/Users/ivanleo/Documents/coding/instructor/.venv/lib/python3.11/site-packages/tenacity/__init__.py", line 653, in <module>
    from tenacity.asyncio import AsyncRetrying  # noqa:E402,I100
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ModuleNotFoundError: No module named 'tenacity.asyncio'
(instructor) ivanleo@Ivans-MacBook-Pro instructor % uv pip install tenacity==8.4.1
Resolved 1 package in 1ms
Installed 1 package in 2ms
 - tenacity==8.4.0
 + tenacity==8.4.1
(instructor) ivanleo@Ivans-MacBook-Pro instructor % python3 test.py               
name='Jason' age=25

from instructor.

ivanleomk avatar ivanleomk commented on August 19, 2024

@fer-git tenacity is now set to min 8.4.1 in instructor 1.3.5 so closing this issue!

from instructor.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.