databricks-demos / dbdemos

Demos to implement your Databricks Lakehouse
Other
255 stars 80 forks source link

installation and use of SensorDataGenerator in the lakehouse iot demo does not work, issue with the mandrova github #105

Closed vfortierdatabricks closed 5 months ago

vfortierdatabricks commented 5 months ago

Error when running the notebook 01-load-data:

ImportError: cannot import name 'SensorDataGenerator' from 'mandrova' (/local_disk0/.ephemeral_nfs/envs/pythonEnv-4edb592a-d4f2-4ad2-8e26-01c21696ff48/lib/python3.9/site-packages/mandrova/init.py

Only way to make it work was to do the pip install with the githash from before an update from 2 days ago: %pip install git+https://github.com/QuentinAmbard/mandrova.git@836e19ebdacb5623c4a13a6fbe249d75d66ab9fb faker

QuentinAmbard commented 5 months ago

use this: from mandrova.data_generator import SensorDataGenerator as sdg the fix is being tested for the release (it's a big update we moved the demo to UC)