-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error #16
Comments
Try force installing an older version of Faker
|
add this import "from faker import Faker" |
Can you expand on that last part @kvrameshreddy? This is line 12-13 self.fake=Faker()
self.seed-seed should change to waht? |
Thanks but now I get: |
Share the code changes you made |
Here it is:
No worries, I am just using Faker directly |
Add this line: "from faker import Faker" after pandas import then it will work fine |
#from pydbgen import pydbgen
myDB=pydbgen.pydb()
testdf= myDB.gen_data_series(data_type='data')
print(testdf)
=====================
Traceback (most recent call last):
File "D:/python/Demopycharm/Test_month/z2020_01_month/Data-collect.py", line 40, in
testdf= myDB.gen_data_series(data_type='data')
File "D:\python\Demopycharm\Myspider\venv\lib\site-packages\pydbgen\pydbgen.py", line 191, in gen_data_series
fake.seed(self.seed)
File "D:\python\Demopycharm\Myspider\venv\lib\site-packages\faker\proxy.py", line 79, in getattribute
raise TypeError(msg)
TypeError: Calling
.seed()
on instances is deprecated. Use the class methodFaker.seed()
instead.The text was updated successfully, but these errors were encountered: