GithubHelp home page GithubHelp logo

Comments (10)

xkmato avatar xkmato commented on September 28, 2024

My guess is that you're using the wrong or outdated python redis lib. Make sure you env's pip freeze output is the same as the contents of pip-freeze.txt

from ureport.

EswarSakamuri avatar EswarSakamuri commented on September 28, 2024

With pip-freeze.txt its working fine I got previous error when installed with pip-requires.txt

one more thing when creating a symbolic link using
ln -s ureport/settings.py.postgres ureport/settings.py

python manage.py syncdb giving me this error
ImportError: No module named settings(Did I make any mistake in running the sync command?)

at present I created a fresh copy of settings.py from settings_common.py

from ureport.

xkmato avatar xkmato commented on September 28, 2024

Just make a copy instead of link do cp ureport/settings.py.postgres ureport/settings.py instead

from ureport.

norkans7 avatar norkans7 commented on September 28, 2024

Symlink is the right thing instead of copy, even if either will work

from ureport.

norkans7 avatar norkans7 commented on September 28, 2024

about the dependencies, yes pip-requires might install newer version which might break, pip freeze has pinned versions

from ureport.

xkmato avatar xkmato commented on September 28, 2024

@norkans7 sym link doesn't work very consistently especially on Mac. It has never worked on my dev env, although it works fine on server

from ureport.

EswarSakamuri avatar EswarSakamuri commented on September 28, 2024

Yes for without sym link its working fine for me

from ureport.

nicpottier avatar nicpottier commented on September 28, 2024

Symlinks are definitely consistent on Mac's as they are POSIX. How exactly are you symlinking?

from ureport.

badbye avatar badbye commented on September 28, 2024

Get the same error when running the single command in python:

>>> from redis_cache import get_redis_connection
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: cannot import name get_redis_connection

from ureport.

EswarSakamuri avatar EswarSakamuri commented on September 28, 2024

Do pip install with "pip-freeze.txt"

If your setting up in Linux skip this step
ln -s ureport/settings.py.postgres ureport/settings.py

from ureport.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.