airtai / nbdev-mkdocs

Extension to nbdev for generating docs with Material for Mkdocs
https://nbdev-mkdocs.airt.ai
Apache License 2.0
15 stars 2 forks source link

AttributeError: module 'openai' has no attribute 'error #212

Closed Almas-Ali closed 7 months ago

Almas-Ali commented 7 months ago

OS: Linux

Traceback (most recent call last):
  File "***/.venv/bin/nbdev_mkdocs", line 5, in <module>
    from nbdev_mkdocs._cli import _app
  File "***/.venv/lib/python3.11/site-packages/nbdev_mkdocs/_cli.py", line 13, in <module>
    from docstring_gen.docstring_generator import add_docstring_to_source
  File "***/.venv/lib/python3.11/site-packages/docstring_gen/docstring_generator.py", line 154, in <module>
    openai.error.RateLimitError,
    ^^^^^^^^^^^^
AttributeError: module 'openai' has no attribute 'error
harishmohanraj commented 7 months ago

Hi,

Thanks for reporting the bug. Will take a look at it and release a new version soon.

harishmohanraj commented 7 months ago

Hi,

The issue has been fixed in the latest nbdev-mkdocs version (0.6.1)