You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(json) C:\Users\user\git\json>python generate.py
Traceback (most recent call last):
File "generate.py", line 8, in <module>
data = faker.generate_fake(schema)
File "C:\Users\user\git\json\lib\site-packages\faker_schema\faker_schema.py", line 10, in generate_fake
result = [self._generate_one_fake(schema) for _ in range(iterations)]
File "C:\Users\user\git\json\lib\site-packages\faker_schema\faker_schema.py", line 10, in <listcomp>
result = [self._generate_one_fake(schema) for _ in range(iterations)]
File "C:\Users\user\git\json\lib\site-packages\faker_schema\faker_schema.py", line 31, in _generate_one_fake
data[k] = getattr(self._faker, v)()
File "C:\Users\user\git\json\lib\site-packages\faker\proxy.py", line 97, in __getattr__
return getattr(self._factories[0], attr)
AttributeError: 'Generator' object has no attribute 'http://json-schema.org/draft-07/schema#'
Thank you
The text was updated successfully, but these errors were encountered:
krl91
changed the title
crash when I try to generate a json from a json shema
crash when I try to generate a json from a json schema
Aug 20, 2020
krl91
changed the title
crash when I try to generate a json from a json schema
crash when I try to generate a json from a json schema: first case
Aug 20, 2020
Hi,
I'm using Python 3.8 and I did a fresh install like this "pip install faker-schema" in a "venv"
I create a python file and write that:
Then when I execute it I have this result:
Thank you
The text was updated successfully, but these errors were encountered: