Python中文
首页
教程
问答
标签
搜索
登录
注册
金字塔项目:“ValueError:变量赋值…”时尝试ps
回答此问题可获得
20
贡献值,回答如果被采纳可获得
50
分。
<p>我在尝试运行金字塔项目时遇到以下错误。据我所知,这是一夜之间出现的,我不知道如何开始调试:</p> <pre><code>C:\mas\mas>..\Scripts\pserve.exe serve development.ini --reload Starting subprocess with file monitor Traceback (most recent call last): File "C:\mas\Scripts\pserve-script.py", line 8, in <module> load_entry_point('pyramid==1.3.2', 'console_scripts', 'pserve')() File "C:\mas\lib\site-packages\pyramid-1.3.2-py2.7.egg\pyramid\scripts\pserve. py", line 47, in main return command.run() File "C:\mas\lib\site-packages\pyramid-1.3.2-py2.7.egg\pyramid\scripts\pserve. py", line 221, in run vars = self.parse_vars(restvars) File "C:\mas\lib\site-packages\pyramid-1.3.2-py2.7.egg\pyramid\scripts\pserve. py", line 330, in parse_vars % arg) ValueError: Variable assignment 'development.ini' invalid (no "=") </code></pre> <p>问题是什么,或者我应该如何确定它?抱歉,我的问题相当模糊,但如果我对我的问题有更多的了解,我可能会在谷歌上找到答案:)。在</p> <p><strong>第328-330行:</strong></p> ^{pr2}$ <p><strong>开发.ini</strong></p> <pre><code>[app:main] use = egg:mas pyramid.reload_templates = true pyramid.debug_authorization = false pyramid.debug_notfound = false pyramid.debug_routematch = false pyramid.default_locale_name = en pyramid.includes = pyramid_debugtoolbar pyramid_tm pyramid_beaker sqlalchemy.url = sqlite:///%(here)s/mas.db # Cache settings cache.regions = default_term, second, short_term, long_term cache.type = memory cache.second.expire = 1 cache.short_term.expire = 60 cache.default_term.expire = 300 cache.long_term.expire = 3600 # Beaker sessions #session.type = file #session.data_dir = %(here)s/data/sessions/data #session.lock_dir = %(here)s/data/sessions/lock session.type = memory session.key = akhet_demo session.secret = 0cb243f53ad865a0f70099c0414ffe9cfcfe03ac [server:main] use = egg:waitress#main host = 0.0.0.0 port = 6543 # Begin logging configuration [loggers] keys = root, mas, sqlalchemy [handlers] keys = console [formatters] keys = generic [logger_root] level = INFO handlers = console [logger_mas] level = DEBUG handlers = qualname = mas [logger_sqlalchemy] level = INFO handlers = qualname = sqlalchemy.engine # "level = INFO" logs SQL queries. # "level = DEBUG" logs SQL queries and results. # "level = WARN" logs neither. (Recommended for production systems.) [handler_console] class = StreamHandler args = (sys.stderr,) level = NOTSET formatter = generic [formatter_generic] format = %(asctime)s %(levelname)-5.5s [%(name)s][%(threadName)s] %(message)s # End logging configuration </code></pre>
0 条评论
分类:
Python问答
请先
登录
后评论
默认排序
时间排序
1 个回答
匿名
1天前
擅长:python、mysql、java
<p>似乎您的参数顺序颠倒了-应该是:</p> <pre><code>..\Scripts\pserve.exe development.ini reload </code></pre>
请先
登录
后评论
针对此问题:
更多的回答
关注
89
关注
收藏
1
收藏,
216
浏览
网友 提问于 2天前
相关Python问题
如何用if条件捕获函数返回值
6 回答
如何用if语句判断列表中是否存在该索引?
5 回答
如何用if语句向量化numpy数组中的最大值?
8 回答
如何用IF语句有条件地保存零碎的结果?
3 回答
如何用if语句测试异常对象?
3 回答
如何用IF语句编写二元函数
7 回答
如何用igraph在python中创建顶点权重的图?
8 回答
如何用ijson和python解析json
7 回答
如何用iloc求子矩阵
10 回答
如何用Imagemagick或PIL绘制高质量的图像笔划(边框)?
2 回答
如何用importlib在python中动态导入模块?
5 回答
如何用import语句重写python内置函数?
9 回答
如何用imshow混合裁剪的强度并显示正确的混合强度?
8 回答
如何用in dictionary解析havin dictionary中的json文件
6 回答
如何用in-Django URL替换%20
10 回答
如何用in\op正确构造查询
9 回答
如何用inbuild对象替换文件
3 回答
如何用inheritan类实现flask restful
5 回答
如何用intersphinx正确地编写对外部文档的交叉引用?
6 回答
如何用int修改LpVariable?
8 回答