django-faker icon indicating copy to clipboard operation
django-faker copied to clipboard

Problem when installing

Open patrick91 opened this issue 10 years ago • 7 comments

Hi all, I get this error when installing django-faker:

Step 19 : RUN pip install -r requirements.txt
 ---> Running in 82fdb2379bfe
Downloading/unpacking Django (from -r requirements.txt (line 1))
Downloading/unpacking South (from -r requirements.txt (line 2))
  Running setup.py (path:/tmp/pip_build_root/South/setup.py) egg_info for package South

Downloading/unpacking django-suit (from -r requirements.txt (line 3))
  Running setup.py (path:/tmp/pip_build_root/django-suit/setup.py) egg_info for package django-suit

Downloading/unpacking django-parler (from -r requirements.txt (line 4))
  Running setup.py (path:/tmp/pip_build_root/django-parler/setup.py) egg_info for package django-parler

    warning: no previously-included files matching '.DS_Store' found anywhere in distribution
    warning: no previously-included files matching 'Thumbs.db' found anywhere in distribution
    warning: no previously-included files matching 'Desktop.ini' found anywhere in distribution
    warning: no previously-included files matching '*.swp' found anywhere in distribution
    warning: no previously-included files matching '*~' found anywhere in distribution
    warning: no previously-included files matching '*.bak' found anywhere in distribution
Downloading/unpacking django-model-utils (from -r requirements.txt (line 5))
  Downloading django-model-utils-2.2.tar.gz
  Running setup.py (path:/tmp/pip_build_root/django-model-utils/setup.py) egg_info for package django-model-utils

Downloading/unpacking django-polymorphic (from -r requirements.txt (line 6))
  Downloading django_polymorphic-0.5.6.tar.gz
  Running setup.py (path:/tmp/pip_build_root/django-polymorphic/setup.py) egg_info for package django-polymorphic

    warning: no files found matching 'DOCS.rst'
    warning: no files found matching 'CHANGES.rst'
Downloading/unpacking djangorestframework (from -r requirements.txt (line 7))
Downloading/unpacking django-notification (from -r requirements.txt (line 8))
  Downloading django-notification-1.2.0.tar.gz
  Running setup.py (path:/tmp/pip_build_root/django-notification/setup.py) egg_info for package django-notification

Downloading/unpacking celery (from -r requirements.txt (line 9))
Downloading/unpacking redis (from -r requirements.txt (line 10))
  Running setup.py (path:/tmp/pip_build_root/redis/setup.py) egg_info for package redis

    warning: no previously-included files found matching '__pycache__'
    warning: no previously-included files matching '*.pyc' found under directory 'tests'
Downloading/unpacking django-allauth (from -r requirements.txt (line 11))
  Running setup.py (path:/tmp/pip_build_root/django-allauth/setup.py) egg_info for package django-allauth

Downloading/unpacking django-faker (from -r requirements.txt (line 12))
  Downloading django-faker-0.2.tar.gz
  Running setup.py (path:/tmp/pip_build_root/django-faker/setup.py) egg_info for package django-faker
    Traceback (most recent call last):
      File "<string>", line 17, in <module>
      File "/tmp/pip_build_root/django-faker/setup.py", line 17, in <module>
        version=__import__('django_faker').__version__,
      File "django_faker/__init__.py", line 6, in <module>
        from django.conf import settings
    ImportError: No module named django.conf
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):

  File "<string>", line 17, in <module>

  File "/tmp/pip_build_root/django-faker/setup.py", line 17, in <module>

    version=__import__('django_faker').__version__,

  File "django_faker/__init__.py", line 6, in <module>

    from django.conf import settings

ImportError: No module named django.conf

do you know what's wrong?

patrick91 avatar Aug 06 '14 10:08 patrick91

+1

kmmbvnr avatar Jan 21 '15 10:01 kmmbvnr

I have the same when run pip install -r requirements.txt

salazarfelipe avatar Mar 01 '15 14:03 salazarfelipe

@elpipesalazar do you still have the issue? I also had it and I solved it by:

  1. removing django.faker from requirements.txt,
  2. running pip install -r requirements.txt in my virtualenv
  3. adding django.faker back to requirements.txt
  4. running pip install -r requirements.txt AGAIN in my virtualenv

tada!

oanabotezat avatar Mar 25 '15 23:03 oanabotezat

@oanabotezat - that's not a solution.

kmmbvnr avatar Mar 26 '15 00:03 kmmbvnr

Created a pull request to fix this by simply moving the import django.conf statement in .init.py to the function where it is used. Not sure this is correct, but seems to work.

phoebebright avatar Aug 04 '15 21:08 phoebebright

+1

This makes django-faker almost unusable on my project. My horrible kludge is to put django-faker into a second requirements file and pip install it after the main one.

monkeypants avatar Feb 18 '16 23:02 monkeypants

@oanabotezat

It works for me thanks

prateektiwari7 avatar Jun 15 '18 08:06 prateektiwari7