databricks-demos/dbdemos

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

vfortierdatabricks opened this issue · 1 comments

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

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)