cubes icon indicating copy to clipboard operation
cubes copied to clipboard

Unknown stores extension mongo error

Open voldesh opened this issue 8 years ago • 12 comments

I am trying to run the hello_world example from https://github.com/DataBrewery/cubes/examples/hello_world with MongoDB backend

Modified slicer.ini and aggregate.py files. slicer-mongo.ini file - - - #slices.ini [store] type: mongo url: mongodb://localhost:27017/ database: cubes collection: ibrd [models] main: tutorial_model.json

aggregate.py file changes at line 5 workspace = Workspace(config="/home/ubuntu/cubes/examples/hello_world/slicer-mongo.ini")

Getting error : Unknown store extension 'mongo'

voldesh avatar May 31 '16 11:05 voldesh

If you are using cubes from github master, then install https://github.com/databrewery/cubes-mongo

Stiivi avatar Jun 03 '16 14:06 Stiivi

I've installed both cubes from github master and cubes-mongo. Same error. Maybe the cubes-mongo setup.py does not have any entry_points ? The ext.py in cubes (discover function) call iter_entry_points but the cycle is never entered

ilpise avatar Jun 17 '16 12:06 ilpise

What's the status of this issue? I wanted to try Mongo backend as well but don't understand how it should be laid out after you moved mongo backend to another project: cubes-mongo.

Greyvend avatar Sep 25 '16 16:09 Greyvend

I have the same issue. Is there a solution for this issue?

Roshanthan avatar Nov 15 '16 12:11 Roshanthan

I have the same issue. Is there a solution for this issue?

+1

declann avatar Mar 16 '17 21:03 declann

Try to add in your slicer.ini to the [server] section:

[server]
modules = cubes_mongo

Stiivi avatar Mar 16 '17 21:03 Stiivi

Thanks - That almost certainly was needed - now I see the following error:

ImportError: No module named cubes_mongo

pip install cubes-mongo indicates all the requirements are installed. But in my case something is clearly causing it not to be found..

declann avatar Mar 16 '17 21:03 declann

Does python -m cubes_mongo return error complaining that module is not executable (good sign) or the module can't be found?

Stiivi avatar Mar 16 '17 21:03 Stiivi

I get error 'no module named cubes_mongo'.

However, when I try that command with cubes-mongo (dash instead of underscore) I get error 'cubes-mongo is a package and cannot be directly executed'

Thanks for your help, this is really not my forte!

On 16 Mar 2017 6:56 p.m., "Stefan Urbanek" [email protected] wrote:

Does python -m cubes_mongo return error complaining that module is not executable (good sign) or the module can't be found?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/DataBrewery/cubes/issues/350#issuecomment-287203223, or mute the thread https://github.com/notifications/unsubscribe-auth/AAVjvuvCwSUWP4CmVKruON5siKvw60d8ks5rmbALgaJpZM4Iqarq .

--

*Séanadh Ríomhphoist/Email DisclaimerTá an ríomhphost seo agus aon chomhad a sheoltar leis faoi rún agus is lena úsáid ag an seolaí agus sin amháin é. Is féidir tuilleadh a léamh anseo. https://www4.dcu.ie/iss/seanadh-riomhphoist.shtml
https://www4.dcu.ie/iss/seanadh-riomhphoist.shtmlThis e-mail and any files transmitted with it are confidential and are intended solely for use by the addressee. Read more here. https://www4.dcu.ie/iss/email-disclaimer.shtml *

declann avatar Mar 16 '17 22:03 declann

Try to use cubes-mongo(dash) in the server config then.

Stiivi avatar Mar 16 '17 22:03 Stiivi

Unknown 'stores' extension 'cubes-mongo'

On 16 Mar 2017 7:26 p.m., "Stefan Urbanek" [email protected] wrote:

Try to use cubes-mongo(dash) in the server config then.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/DataBrewery/cubes/issues/350#issuecomment-287209862, or mute the thread https://github.com/notifications/unsubscribe-auth/AAVjvvR2TSBxxlKUN3QT9vrkrgYbNckWks5rmbcAgaJpZM4Iqarq .

--

*Séanadh Ríomhphoist/Email DisclaimerTá an ríomhphost seo agus aon chomhad a sheoltar leis faoi rún agus is lena úsáid ag an seolaí agus sin amháin é. Is féidir tuilleadh a léamh anseo. https://www4.dcu.ie/iss/seanadh-riomhphoist.shtml
https://www4.dcu.ie/iss/seanadh-riomhphoist.shtmlThis e-mail and any files transmitted with it are confidential and are intended solely for use by the addressee. Read more here. https://www4.dcu.ie/iss/email-disclaimer.shtml *

declann avatar Mar 16 '17 22:03 declann

I apologize, advertisement of modules is not well documented.

In the meantime see #417 - the mongo backend module should be fixed in a similar fashion.

Stiivi avatar Mar 17 '17 07:03 Stiivi