Skip to content
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

fake-factory update: Faker #30

Open
anx-abruckner opened this issue Jun 12, 2018 · 1 comment
Open

fake-factory update: Faker #30

anx-abruckner opened this issue Jun 12, 2018 · 1 comment

Comments

@anx-abruckner
Copy link

When trying to initiate the faker (via populator = Faker.getPopulator()) it fails:

ImportError: The ``fake-factory`` package is now called ``Faker``.
Please update your requirements.

Any idea when this update might be done? =)

Complete Traceback (most recent call last):

File "/opt/project/app/manage.py", line 22, in <module>
  execute_from_command_line(sys.argv)
File "/usr/local/lib/python3.4/site-packages/django/core/management/__init__.py", line 364, in execute_from_command_line
  utility.execute()
File "/usr/local/lib/python3.4/site-packages/django/core/management/__init__.py", line 356, in execute
  self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/local/lib/python3.4/site-packages/django/core/management/base.py", line 283, in run_from_argv
  self.execute(*args, **cmd_options)
File "/usr/local/lib/python3.4/site-packages/django/core/management/base.py", line 330, in execute
  output = self.handle(*args, **options)
File "/opt/project/app/myapp/package/management/commands/usefaker.py", line 17, in handle
  populator = Faker.getPopulator()
File "/usr/local/lib/python3.4/site-packages/django_faker/__init__.py", line 90, in getPopulator
  generator = cls.generators.get(codename,  None) or cls.getGenerator(codename=codename)
File "/usr/local/lib/python3.4/site-packages/django_faker/__init__.py", line 54, in getGenerator
  from faker import Faker as FakerGenerator
File "/usr/local/lib/python3.4/site-packages/faker/__init__.py", line 7, in <module>
  raise ImportError(error)
ImportError: The ``fake-factory`` package is now called ``Faker``.

Please update your requirements.
@SolarLiner
Copy link

Hi! I've had this problem too and decided to fork it under another name. Check out Django Populate, and pip install django-populate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants