guidance-ai / guidance

A guidance language for controlling large language models.
MIT License
18.25k stars 1.01k forks source link

Dependency Issue - bigframes v1.0 update #722

Open lizenbyj opened 3 months ago

lizenbyj commented 3 months ago

The bug https://github.com/googleapis/python-bigquery-dataframes went to version 1.0 3 days ago?

when importing guidance, I get the below error

AttributeError Traceback (most recent call last) in <cell line: 5>() 3 import openai 4 import pandas as pd ----> 5 import guidance 6 import tiktoken 7 import json

14 frames /usr/local/lib/python3.10/dist-packages/vertexai/preview/_workflow/executor/training.py in 57 import bigframes as bf 58 ---> 59 BigframesData = bf.dataframe.DataFrame 60 except ImportError: 61 bf = None

AttributeError: module 'bigframes' has no attribute 'dataframe'

To Reproduce import guidance in colab

System info (please complete the following information): google colab

robertness commented 3 months ago

I got the error in Google colab too. For me it occurred after I called from guidance import models, gen, user, assistant, system . I was able to remedy by explicitly installing the previous version of bigframes.

image
CheremyP commented 3 months ago

I also got the error in Google colab with the following call from vertexai.preview.language_models import TextEmbeddingModel

image
sophiafrayle commented 3 months ago

I got this issue too when importing from vertexai.generative_models import FunctionDeclaration, GenerativeModel, Part, Tool

Screenshot 2024-04-19 at 11 46 49
Harsha-Nori commented 2 months ago

I think this is a bug in the Vertex AI sdk? We do try to import it when we call guidance, but I don't think their dependency mismatch is something we can fix on our side. Any chance this has been resolved on the Google VertexAI end?