fake-factory (deprecated alias of Faker)

raw JSON →
9999.9.9 verified Fri May 01 auth: no python deprecated

The fake-factory package was deprecated on December 15th, 2016. It was the original name for what is now Faker. The current version (v9999.9.9) is a dummy placeholder that warns users to migrate to the Faker package. Faker (v40.15.x) generates fake data for testing, development, and seeding databases.

pip install Faker
error ModuleNotFoundError: No module named 'fake_factory'
cause Installed the real Faker package (which does not have a fake_factory module) but tried to import from the old name.
fix
Change import to from faker import Faker.
error ImportError: cannot import name 'Faker' from 'fake_factory'
cause Using an outdated fake-factory package that doesn't provide the Faker class.
fix
Install the correct package: pip uninstall fake-factory && pip install Faker. Then use from faker import Faker.
error AttributeError: 'Faker' object has no attribute 'name'
cause Using Faker v14 or later where `name` generator was removed in favor of `fake.name()` as a method, but the attribute is still available via the provider. This error occurs if the version is very old or the code tries to access a non-existent attribute.
fix
Ensure you are using Faker >=2.0 and call fake.name(). If using an old version, upgrade: pip install --upgrade Faker.
error faker.exceptions.UniquenessException: Got duplicated values after 1000 iterations
cause Trying to generate unique values with `.unique` but the provider has a limited set of possibilities for the specified locale.
fix
Increase the maximum tries or use a broader locale: fake.unique.address() or switch to another provider.
breaking fake-factory is a deprecated placeholder. If your code uses `from fake_factory import Faker`, it will fail or produce a warning. Switch to `pip install Faker` and `from faker import Faker`.
fix Uninstall fake-factory and install Faker: `pip uninstall fake-factory && pip install Faker`. Then change imports to `from faker import Faker`.
deprecated The package name `fake-factory` is deprecated. PyPI will show a warning when installing. Use `Faker` as the package name.
fix Install the correct package: `pip install Faker`
gotcha Faker's locale provider changed in v13.0.0. Using `fake.address()` will now return a localized address if a locale is set.
fix Specify locale explicitly: `Faker('en_US')` to avoid unexpected formats.
breaking Faker v18.0.0 dropped support for Python 3.6 and 3.7.
fix Upgrade Python to 3.8 or later, or pin Faker to <18.0.0.
pip install fake-factory

Create a Faker instance and generate a random name.

from faker import Faker
fake = Faker()
print(fake.name())