Windows 7 Trigger.IO错误:环境只能包含字符串



在Windows 7中的Hello World App上运行新安装的Trigger.io,我在执行此操作时得到了此操作:

    forge run web

File "C:Usersjohn.jesusAppDataLocalTrigger Toolkitbuild-toolsforgeasync.py", line 96, in run
result = self._target(*self._args, **self._kwargs)
File "C:Usersjohn.jesusAppDataLocalTrigger Toolkitbuild-toolsforgemain.py", line 437, in run
build_to_run=build_to_run,
File "C:Usersjohn.jesusforge-workspacehelloworld.templategenerate_dynamiccustomer_goals.py", line 124, in run_app
build_to_run.run()
File "C:Usersjohn.jesusforge-workspacehelloworld.templategenerate_dynamicbuild.py", line 337, in run
self._call_with_params(task_method, task_args)
File "C:Usersjohn.jesusforge-workspacehelloworld.templategenerate_dynamicbuild.py", line 296, in _call_with_params
return method(self, *params)
File "C:Usersjohn.jesusforge-workspacehelloworld.templategenerate_dynamicweb_tasks.py", line 141, in run_web
env=dict(os.environ, PORT=str(port), FORGE_DEBUG='1'))
File "C:Usersjohn.jesusforge-workspacehelloworld.templategenerate_dynamicweb_tasks.py", line 98, in _node
run_shell(node, *args, **kw)
File "C:Usersjohn.jesusforge-workspacehelloworld.templategenerate_dynamicutils.py", line 338, in run_shell
raise state.error
TypeError: environment can only contain strings

我遇到了完全相同的问题 - 似乎是因为Python无法在Popen的环境词典中与Unicode相处。这里有更多信息:

如果" env";参数包含一个Unicode对象?

我编辑

c: users mattc forge-workspace prototype-app.template generate_dynamic module_dynamic utils.pys.py

并更改了304行以删除环境变量的通过,因此我有:

state.proc = lib.popenwithoutnewconsole(args,stdout = subprocess.pipe,stderr = subprocess.stdout,env = none,preexec_fn = preexec_fn)

>

然后我的Forge-Web工作了,我能够运行它。不完全确定这是"正确"的修复程序,但是它可以使它进行。

指向文件时是否逃脱了斜线?例如:C:文件夹文件名而不是C:文件夹文件名?

最新更新