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

Problem when installing #13

Open
patrick91 opened this issue Aug 6, 2014 · 7 comments
Open

Problem when installing #13

patrick91 opened this issue Aug 6, 2014 · 7 comments

Comments

@patrick91
Copy link

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?

@kmmbvnr
Copy link

kmmbvnr commented Jan 21, 2015

+1

@salazarfelipe
Copy link

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

@oanabotezat
Copy link

@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!

@kmmbvnr
Copy link

kmmbvnr commented Mar 26, 2015

@oanabotezat - that's not a solution.

@phoebebright
Copy link
Contributor

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.

@monkeypants
Copy link

+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.

@prateektiwari7
Copy link

@oanabotezat

It works for me thanks

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

7 participants