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

I run the example on windows, and get this error #47

Open
songhuiming opened this issue Mar 25, 2016 · 1 comment
Open

I run the example on windows, and get this error #47

songhuiming opened this issue Mar 25, 2016 · 1 comment

Comments

@songhuiming
Copy link


AttributeError Traceback (most recent call last)
in ()
15
16 app = SimpleApp()
---> 17 app.launch()
18

C:\Users\hsong01\AppData\Local\Continuum\Anaconda\lib\site-packages\dataspyre-0.2.0-py2.7.egg\spyre\server.pyc in launch(self, host, port)
404
405 def launch(self,host="local",port=8080):
--> 406 webapp = self.getRoot()
407 if host!="local":
408 cherrypy.server.socket_host = '0.0.0.0'

C:\Users\hsong01\AppData\Local\Continuum\Anaconda\lib\site-packages\dataspyre-0.2.0-py2.7.egg\spyre\server.pyc in getRoot(self)
440 getHTMLFunction=self.getHTML,
441 getDownloadFunction=self.getDownload,
--> 442 noOutputFunction=self.noOutput)
443 return webapp
444 class Site(object):

C:\Users\hsong01\AppData\Local\Continuum\Anaconda\lib\site-packages\dataspyre-0.2.0-py2.7.egg\spyre\server.pyc in init(self, templateVars, title, inputs, outputs, controls, tabs, spinnerFile, getJsonDataFunction, getDataFunction, getTableFunction, getPlotFunction, getImageFunction, getD3Function, getCustomCSSFunction, getCustomJSFunction, getCustomHeadFunction, getHTMLFunction, getDownloadFunction, noOutputFunction)
120 self.templateVars['custom_head'] = custom_head
121
--> 122 v = View.View()
123 self.templateVars['document_ready_js'] = ""
124 self.templateVars['js'] = v.getJS()

C:\Users\hsong01\AppData\Local\Continuum\Anaconda\lib\site-packages\dataspyre-0.2.0-py2.7.egg\spyre\View.pyc in init(self)
19 self.JS_PATH = os.path.join(self.ROOT_DIR, 'public', 'js')
20 self.CSS_PATH = os.path.join(self.ROOT_DIR, 'public', 'css')
---> 21 self.APP_PATH = os.path.dirname(os.path.realpath(main.file))
22
23 def getHTML(self):

AttributeError: 'module' object has no attribute 'file'

@bioinfo00
Copy link

I get the same error! Could you fix it?

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

No branches or pull requests

2 participants