Skip to content
This repository has been archived by the owner on Dec 21, 2022. It is now read-only.

Unable to create new user if simplejson installed without speedups #59

Open
vlcinsky opened this issue Jul 22, 2016 · 1 comment
Open

Comments

@vlcinsky
Copy link

Running this app on Ubuntu 14.04.4 worked well.

The same app on Ubuntu 16.04 was failing with error

2016-07-23 00:38:16,285 INFO  [ramses.auth][MainThread] auth.create_system_user: Creating system user
2016-07-23 00:38:16,469 ERROR [ramses.auth][MainThread] auth.create_system_user: Failed to create system user. Missing config: '_asdict'
2016-07-23 00:38:16,469 INFO  [ramses][MainThread] __init__.includeme: Server successfully generated

Similar error occurs with attempt to register a new user.

simplejson with speedups helped

Comparing the two installation I found, that with simplejson being installed with speedups the application works. Without speedups it fails.

Anyway, the cause was elsewhere.

nefertari.dictset.__getattrib__ poor implementation

Tracking why simplejson behaves in two different ways I have found, that nefertari.dictset.__getattrib__ implementation was incomplete and raised KeyError when non existent attribute was requested.

The PR ramses-tech/nefertari#143 fixes the problem with dictset. With given fix the ramses-example works well even with simplejson being installed without speedups.

@rodrigobaron
Copy link

👍
I got same error here...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants