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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImportError: cannot import name Faker #10

Open
BrendanBerkley opened this issue Mar 26, 2014 · 1 comment
Open

ImportError: cannot import name Faker #10

BrendanBerkley opened this issue Mar 26, 2014 · 1 comment

Comments

@BrendanBerkley
Copy link

I did a fresh install and was actually able to generate some Users, but then after trying to run a python script outside of the console, something went wrong and it doesn't work again. This error message isn't very helpful to me 馃槮

Any ideas? I tried uninstalling and reinstalling and doing exactly what I did to make it work before, but still got the following.

Python 2.7.5+ (default, Feb 27 2014, 19:37:08) 
[GCC 4.8.1] on linux2
>>> from django_faker import Faker
>>> populator = Faker.getPopulator()
Traceback (most recent call last):
  File "<console>", line 1, in <module>
  File "/usr/local/lib/python2.7/dist-packages/django_faker/__init__.py", line 90, in getPopulator
    generator = cls.generators.get(codename,  None) or cls.getGenerator(codename=codename)
  File "/usr/local/lib/python2.7/dist-packages/django_faker/__init__.py", line 54, in getGenerator
    from faker import Faker as FakerGenerator
ImportError: cannot import name Faker
@officialrahulmandal
Copy link

Hey @BrendanBerkley ,
Why don't you use Faker library which is there on pypi.org. it's really cool and have a good documentation.
Happy coding :-)

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