bedrock's vendor lib is not at the right hash


6 years ago
5 years ago


(Reporter: nigelb, Unassigned)


Firefox Tracking Flags

(Not tracked)




6 years ago
I've been helping a contributor setup bedrock on his machine, he just ran into this error.

    priya@Ideapad-Z460:/media/DATA/users/kesavan/misc/git/bedrock$ ./ update_product_details
    /usr/local/lib/python2.7/dist-packages/funfactory/ UserWarning: You're using an old-style Playdoh layout with a top level and apps directories. This is error prone and fights the Zen of Python. See
      warnings.warn("You're using an old-style Playdoh layout with a top "
    Traceback (most recent call last):
      File "./", line 21, in <module>
      File "/usr/local/lib/python2.7/dist-packages/funfactory/", line 84, in setup_environ
        import settings
      File "/media/DATA/users/kesavan/misc/git/bedrock/settings/", line 1, in <module>
        from .base import *
      File "/media/DATA/users/kesavan/misc/git/bedrock/settings/", line 7, in <module>
        from funfactory.settings_base import *
      File "/usr/local/lib/python2.7/dist-packages/funfactory/", line 281, in <module>
        from django_sha2 import get_password_hashers
    ImportError: cannot import name get_password_hashers 

I looked at the vendor for bedrock and it doesn't seem to be updated to the right point in playdoh where the django-sha2 has the get_password_hashers function.


5 years ago
Component: → General
Product: Websites →

Comment 1

5 years ago
This issue is blocking me from contributing as well.


5 years ago
Component: General → Bedrock
OS: Mac OS X → All
Hardware: x86 → All

Comment 2

5 years ago
I've run in a similar issue. I need the latest version of playdoh-lib, so I do:

$ cd vendor
$ git pull origin master

After that, I get this status:

$ git status

#    modified:   src/bleach (new commits)
#    modified:   src/commonware (new commits)
#    modified:   src/django-arecibo (new commits)
#    modified:   src/django-sha2 (new commits)
#    modified:   src/funfactory (new commits)
#    modified:   src/jingo (new commits)
#    modified:   src/jingo-minify (new commits)
#    modified:   src/tower (new commits)

At this point everything works, but if I update submodules to get vendor back to unmodified state:

$ git submodule update

I get this error:

Traceback (most recent call last):

  File "/Users/giuseppe/Projects/bedrock/vendor-local/src/django/django/core/servers/", line 283, in run
    self.result = application(self.environ, self.start_response)

  File "/Users/giuseppe/Projects/bedrock/vendor-local/src/django/django/contrib/staticfiles/", line 68, in __call__
    return self.application(environ, start_response)

  File "/Users/giuseppe/Projects/bedrock/vendor-local/src/django/django/core/handlers/", line 250, in __call__

  File "/Users/giuseppe/Projects/bedrock/vendor-local/src/django/django/core/handlers/", line 47, in load_middleware
    raise exceptions.ImproperlyConfigured('Error importing middleware %s: "%s"' % (mw_module, e))

ImproperlyConfigured: Error importing middleware funfactory.middleware: "cannot import name staticfiles_storage"

which also seems related to submodule versions.
I've been working on bedrock for a while now and have not run into this. I think it's been fixed at some point.
Last Resolved: 5 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.