我在第7页的Windows 7机器上遇到了"Programming Clojure".将"examples"目录下载到"C:/ clojure"后,我键入:
用户>(要求'examples.introduction)
我得到了
; 评价中止.
java.io.FileNotFoundException:无法在类路径上找到examples/introduction__init.class或examples/introduction.clj:(NO_SOURCE_FILE:0)
我的.emacs文件如下所示:
(setq swank-clojure-extra-classpaths(list"C:/ Clojure"))
C:/ Clojure中的文件在那里(我triplechecked)
任何帮助将不胜感激.
我试图用Apache和mod_wsgi在Python下运行webapp2 - 具体来说:Wampserver for Windows 7 with Apache 2.2.22.到目前为止,我已经悲惨地失败了.:-(
我使用了https://developers.google.com/appengine/docs/python/gettingstartedpython27/usingwebapp中的以下示例:
import webapp2
class MainPage(webapp2.RequestHandler):
def get(self):
self.response.headers['Content-Type'] = 'text/plain'
self.response.out.write('Hello, webapp World!')
app = webapp2.WSGIApplication([('/', MainPage)],
debug=True)
Run Code Online (Sandbox Code Playgroud)
当我将此文件保存为c:wamp\www\Python\hello.py,并浏览到localhost/Python/hello.py我得到:
Not Found
The requested URL /python/hello.py was not found on this server.
Run Code Online (Sandbox Code Playgroud)
但是,让我说Apache中的Python的mod_wsgi似乎运行正常; 以下代码
def application(environ, start_response):
status = '200 OK'
output = 'Hello from Python!'
response_headers = [('Content-type', 'text/plain'),
('Content-Length', str(len(output)))]
start_response(status, response_headers)
return [output]
Run Code Online (Sandbox Code Playgroud)
位于c:\wamp\www\Python\test.py.当我去的时候localhost/Python/test.py,浏览器Hello from Python!就像我期望的那样说.
到目前为止,我只是通过放置行找到了如何将def(="application")的默认名称更改为"something_else" …