Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Verify if slicer works with virtualenv #10

Closed
Stiivi opened this issue Oct 11, 2011 · 4 comments
Closed

Verify if slicer works with virtualenv #10

Stiivi opened this issue Oct 11, 2011 · 4 comments

Comments

@Stiivi
Copy link
Member

Stiivi commented Oct 11, 2011

Cubes Slicer server was never tested with wsgi+virtualenv, try it. If it does not work, fix it to make it work.

@mk270
Copy link

mk270 commented Jan 10, 2013

trying it with virtualenv, I get TypeError: init() got an unexpected keyword argument 'schema'

@Stiivi
Copy link
Member Author

Stiivi commented Jan 10, 2013

What is the full stack trace, please?

@mk270
Copy link

mk270 commented Jan 10, 2013

(cubes1)mk270@marsilio ~/Prog/ves/cubes1/cubes/examples/hello_world> slicer serve slicer.ini
2013-01-10 17:23:57,216 INFO using backend 'sql'
Traceback (most recent call last):
File "/home/mk270/Prog/ves/cubes1/bin/slicer", line 5, in
pkg_resources.run_script('cubes==0.10.1', 'slicer')
File "/home/mk270/Prog/ves/cubes1/local/lib/python2.7/site-packages/distribute-0.6.19-py2.7.egg/pkg_resources.py", line 499, in run_script
self.require(requires)[0].run_script(script_name, ns)
File "/home/mk270/Prog/ves/cubes1/local/lib/python2.7/site-packages/distribute-0.6.19-py2.7.egg/pkg_resources.py", line 1235, in run_script
execfile(script_filename, namespace, namespace)
File "/home/mk270/Prog/ves/cubes1/lib/python2.7/site-packages/cubes-0.10.1-py2.7.egg/EGG-INFO/scripts/slicer", line 326, in
args.func(args)
File "/home/mk270/Prog/ves/cubes1/lib/python2.7/site-packages/cubes-0.10.1-py2.7.egg/EGG-INFO/scripts/slicer", line 153, in run_server
cubes.server.run_server(config)
File "/home/mk270/Prog/ves/cubes1/local/lib/python2.7/site-packages/cubes-0.10.1-py2.7.egg/cubes/server/slicer.py", line 216, in run_server
application = Slicer(config)
File "/home/mk270/Prog/ves/cubes1/local/lib/python2.7/site-packages/cubes-0.10.1-py2.7.egg/cubes/server/slicer.py", line 127, in init
*_self.context["workspace_options"])
File "/home/mk270/Prog/ves/cubes1/local/lib/python2.7/site-packages/cubes-0.10.1-py2.7.egg/cubes/backends/sql/workspace.py", line 99, in create_workspace
workspace = SQLStarWorkspace(model, engine, *_options)
File "/home/mk270/Prog/ves/cubes1/local/lib/python2.7/site-packages/cubes-0.10.1-py2.7.egg/cubes/backends/sql/workspace.py", line 115, in init
self.metadata = sqlalchemy.MetaData(bind=self.engine,schema=self.schema)
TypeError: init() got an unexpected keyword argument 'schema'

@Stiivi
Copy link
Member Author

Stiivi commented Jan 10, 2013

Looks like you are using old sqlalchemy < 0.7.4. Updated README to reflect that requirement.

robin900 pushed a commit to Squarespace/cubes that referenced this issue Nov 12, 2013
… coalesce_measures (the original one was used for nothing else anymore)
robin900 pushed a commit to Squarespace/cubes that referenced this issue Nov 12, 2013
… coalesce_measures (the original one was used for nothing else anymore)
robin900 pushed a commit to Squarespace/cubes that referenced this issue Nov 12, 2013
… coalesce_measures (the original one was used for nothing else anymore)
@Stiivi Stiivi closed this as completed Dec 9, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants