tusharchou / local-data-platform

python library for iceberg lake house on your local
MIT License
8 stars 5 forks source link

0.1.1 19 local_data_platform.source.near.bigquery.get(query) #25

Closed mrutunjay-kinagi closed 1 month ago

mrutunjay-kinagi commented 1 month ago

Added pytest files.

redpheonixx commented 2 weeks ago

Added pytest files.

pytests are failing

image

The error message indicates that Python is unable to import the GCPBigQueryConnection from the specified module. Here are some potential solutions:

  1. Check the Import Path: Ensure that the path to GCPBigQueryConnection is correct and that it exists in local_data_platform/store/source/gcp/bigquery/__init__.py.

  2. Correct Package and Module Names: Make sure that all package and module names are correctly spelled and follow Python naming conventions.

  3. Ensure __init__.py Exists: Verify that an __init__.py file is present in the local_data_platform, store, source, gcp, and bigquery directories to make them proper Python packages.

  4. Relative Import Issues: If you are using relative imports, ensure they are correctly specified. Sometimes converting relative imports to absolute imports can solve the issue.

  5. Check for Circular Imports: Make sure that your code does not have circular imports, where two or more modules are trying to import each other.

Here's an example of what the __init__.py might look like:

# local_data_platform/store/source/gcp/bigquery/__init__.py

from .bigquery import GCPBigQueryConnection

If all these steps are correctly followed and the issue still persists, please share more details or additional error messages for further troubleshooting. Good luck! 🚀