BetterWorks / django-anonymizer

MIT License
14 stars 12 forks source link

Dependency problem when trying to install #28

Open mammuth opened 7 years ago

mammuth commented 7 years ago

I wanted to test your management command, because I really like the method of keeping relations as they are and just faking a given set of values on the model instances.

Since it didn't work in the project I was working on, I tried installing and using it in a completely empty test-project.

I did: pip install django-anonymizer

Then I tried importing anonymizer in the python interpreter:

>>> import anonymizer
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/mmuth/anonymizer-test/env/local/lib/python2.7/site-packages/anonymizer/__init__.py", line 1, in <module>
    from anonymizer.base import Anonymizer
  File "/home/mmuth/anonymizer-test/env/local/lib/python2.7/site-packages/anonymizer/base.py", line 7, in <module>
    from faker import data
ImportError: cannot import name data

To me it looks like django-anonymizer isn't properly working with Faker 0.7.3? Is this the case or am I doing something wrong here?

pip freeze:

Django==1.10.3
django-anonymizer==0.5.1
Faker==0.7.3
ipaddress==1.0.17
python-dateutil==2.5.3
six==1.10.0
wheel==0.24.0

Python 2.7.6

All installed packages are just (direct / indirect) dependencies of django-anonymizer

ikarapis commented 7 years ago

@mammuth Hi Max. Did you manage to solve your dependency problem? Thanks.

mammuth commented 7 years ago

@ikarapis no. I went over to this feature-similar app: https://github.com/Blueshoe/Django-Database-Anonymizer

peterkurishev commented 7 years ago

Use Faker version 1.4.0

@mammuth @ikarapis try: pip install Faker==1.4.0

mnieber commented 6 years ago

@peterkurishev When I try your suggestion I get Could not find a version that satisfies the requirement Faker==1.4.0

brettbond commented 5 years ago

I have the same error. I tried updating Faker. There's no 1.4.0. I tried 1.0.7 and still see the same dependency error.

alvaromlg commented 5 years ago

Meanwhile they fix the pip version you can install manually the latest tag and it will work git+https://github.com/BetterWorks/django-anonymizer.git@0.5.0.16-b