Trigger.IO:包含一个mp3文件

时间:2012-07-13 12:26:10

标签: trigger.io

在一个非常简单的trigger.io项目的src(或任何其他子文件夹)中包含一个mp3时,我遇到了一种奇怪的行为。

第一个版本工作正常。在第二个版本中,我收到以下错误: (我添加了德语的翻译)

2012-07-13 12:51:38,017 [  DEBUG] Checking API response for success or error
2012-07-13 12:51:38,131 [  DEBUG] configuration is identical to last run
2012-07-13 12:51:38,131 [  DEBUG] already authenticated - continuing
2012-07-13 12:51:38,131 [  DEBUG] GET https://trigger.io/api/app/69c8695eccc911e1a8c212313d1adcbe/should_rebuild
2012-07-13 12:51:38,394 [  DEBUG] Checking API response for success or error
2012-07-13 12:51:38,394 [   INFO] Configuration is unchanged: using existing templates
2012-07-13 12:51:48,394 [  ERROR] Something went wrong that we didn't expect:
2012-07-13 12:51:48,394 [  ERROR] [Error 183] Eine Datei kann nicht erstellt werden, wenn sie bereits vorhanden ist: 'development'
Translation: A file cannot be created if it exists allready: 'development'
2012-07-13 12:51:48,394 [  DEBUG] Traceback (most recent call last):
  File "C:\Users\asic\forge-tools-3.3.2\forge-tools\forge\async.py", line 96, in run
    result = self._target(*self._args, **self._kwargs)
  File "C:\Users\asic\forge-tools-3.3.2\forge-tools\forge\main.py", line 369, in development_build
    try_a_few_times(move_files_across)
  File "C:\Users\asic\forge-tools-3.3.2\forge-tools\forge\lib.py", line 25, in try_a_few_times
    f()
  File "C:\Users\asic\forge-tools-3.3.2\forge-tools\forge\main.py", line 365, in move_files_across
    shutil.copytree(defaults.TEMPLATE_DIR, 'development')
  File "C:\Python27\lib\shutil.py", line 174, in copytree
    os.makedirs(dst)
  File "C:\Python27\lib\os.py", line 157, in makedirs
    mkdir(name, mode)
WindowsError: [Error 183] Eine Datei kann nicht erstellt werden, wenn sie bereits vorhanden ist: 'development'
Translation: A file cannot be created if it exists allready: 'development'

修复它的唯一方法是删除开发文件夹并从头开始构建..

1 个答案:

答案 0 :(得分:2)

当我们执行'forge build'时,将删除并重新创建现有的'development'目录。因此,如果你在Windows上的另一个应用程序中打开了.mp3,可能会阻止文件被删除,因此在第二个'forge build'上看到了这个问题。