{"id":23702,"library":"fake-factory","title":"fake-factory (deprecated alias of Faker)","description":"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.","status":"deprecated","version":"9999.9.9","language":"python","source_language":"en","source_url":"https://github.com/joke2k/faker","tags":["testing","fake-data","faker","deprecated"],"install":[{"cmd":"pip install Faker","lang":"bash","label":"Install Faker (modern package)"},{"cmd":"pip install fake-factory","lang":"bash","label":"Legacy install (not recommended)"}],"dependencies":[],"imports":[{"note":"fake_factory is the old package name; use faker instead.","wrong":"from fake_factory import Faker","symbol":"Faker","correct":"from faker import Faker"}],"quickstart":{"code":"from faker import Faker\nfake = Faker()\nprint(fake.name())","lang":"python","description":"Create a Faker instance and generate a random name."},"warnings":[{"fix":"Uninstall fake-factory and install Faker: `pip uninstall fake-factory && pip install Faker`. Then change imports to `from faker import Faker`.","message":"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`.","severity":"breaking","affected_versions":">=0.1"},{"fix":"Install the correct package: `pip install Faker`","message":"The package name `fake-factory` is deprecated. PyPI will show a warning when installing. Use `Faker` as the package name.","severity":"deprecated","affected_versions":">=0.1"},{"fix":"Specify locale explicitly: `Faker('en_US')` to avoid unexpected formats.","message":"Faker's locale provider changed in v13.0.0. Using `fake.address()` will now return a localized address if a locale is set.","severity":"gotcha","affected_versions":">=13.0.0"},{"fix":"Upgrade Python to 3.8 or later, or pin Faker to <18.0.0.","message":"Faker v18.0.0 dropped support for Python 3.6 and 3.7.","severity":"breaking","affected_versions":">=18.0.0"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Change import to `from faker import Faker`.","cause":"Installed the real Faker package (which does not have a fake_factory module) but tried to import from the old name.","error":"ModuleNotFoundError: No module named 'fake_factory'"},{"fix":"Install the correct package: `pip uninstall fake-factory && pip install Faker`. Then use `from faker import Faker`.","cause":"Using an outdated fake-factory package that doesn't provide the Faker class.","error":"ImportError: cannot import name 'Faker' from 'fake_factory'"},{"fix":"Ensure you are using Faker >=2.0 and call `fake.name()`. If using an old version, upgrade: `pip install --upgrade Faker`.","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.","error":"AttributeError: 'Faker' object has no attribute 'name'"},{"fix":"Increase the maximum tries or use a broader locale: `fake.unique.address()` or switch to another provider.","cause":"Trying to generate unique values with `.unique` but the provider has a limited set of possibilities for the specified locale.","error":"faker.exceptions.UniquenessException: Got duplicated values after 1000 iterations"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}