I get an error while i launch crossbar 0.12.1 that I did not have with the version 0.11
[Controller 210] crossbar.error.invalid_configuration:
WSGI app module 'myproject.wsgi' import failed: No module named django -
Python search path was [u'/myproject', '/opt/crossbar/site-packages/crossbar/worker', '/opt/crossbar/bin', '/opt/crossbar/lib_pypy/extensions', '/opt/crossbar/lib_pypy', '/opt/crossbar/lib-python/2.7', '/opt/crossbar/lib-python/2.7/lib-tk', '/opt/crossbar/lib-python/2.7/plat-linux2', '/opt/crossbar/site-packages']
I have not changed anything else that the crossbar update.
My config.json are still the same, with the pythonpath of my project within the option :
{
"workers": [
{
"type": "router",
"options": {
"pythonpath": ["/myproject"]
},
"realms": [
{
"name": "realm1",
"roles": [
{
"name": "anonymous",
"permissions": [
{
"uri": "*",
"publish": true,
"subscribe": true,
"call": true,
"register": true
}
]
}
]
}
],
"transports": [
{
"type": "web",
"endpoint": {
"type": "tcp",
"port": 80
},
"paths": {
"/": {
"type": "wsgi",
"module": "myproject.wsgi",
"object": "application"
},
etc...
Do you have an idea ? Thanks.
It seems that
"pythonpath": ["/myproject"]
replaces other python path configs from your dist-packages. Look for an option that adds/myproject
and not replacing current path settings.Or - add the path to your project to the machine python path, and don't provide crossbar with any python path, so it will pick the exisitng one.
Something like (depends on OS):
Then: