Skip to content

Not able to import module  #16

@shantanuo

Description

@shantanuo

Using ARM processor if that matters:

(base) root@ip-172-31-38-54:/home/ubuntu# python
Python 3.7.6 | packaged by conda-forge | (default, Mar 23 2020, 22:25:07)
[GCC 7.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from promptify import OpenAI
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/root/miniforge3/lib/python3.7/site-packages/promptify/__init__.py", line 2, in <module>
    from .models.nlp.openai_model import OpenAI
  File "/root/miniforge3/lib/python3.7/site-packages/promptify/models/nlp/openai_model.py", line 6, in <module>
    from .utils import get_encoder
  File "/root/miniforge3/lib/python3.7/site-packages/promptify/models/nlp/utils/__init__.py", line 1, in <module>
    from .bpe_encoder import get_encoder
  File "/root/miniforge3/lib/python3.7/site-packages/promptify/models/nlp/utils/bpe_encoder.py", line 8, in <module>
    from .utils import download
  File "/root/miniforge3/lib/python3.7/site-packages/promptify/models/nlp/utils/utils.py", line 34
    if last_modified := response.headers.get("last-modified"):
                      ^
SyntaxError: invalid syntax
>>>

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingprompterissue related to prompter

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions