dbt deps-该过程无法访问该文件,因为另一个过程正在使用该文件:' dbt_packages \\ dbt-expectiation-expectiations-0.5.1 \\ Integration_tests'
我上次使用DBT几个月前。返回它,我必须从0.21.1版本更新到1.1.0才能匹配我的团队的项目。我已经运行DBT干净,然后DBT DEPS总是返回此错误:该过程无法访问文件,因为它是另一个过程使用:'dbt_packages \ dbt-expectiation-0.5.1 \ intementation_tests'
我在错误后看到了两个软件包:dbt_expectiations& dbt-texpections-0.5.1-我不确定后一个软件包是什么意思,因为它在我的队友机器上不存在。
包裹
- 这些都是我的全部 版本:0.5.1
- 软件包:dbt-labs/dbt_utils 版本:0.8.0
- 软件包:DBT-LABS/CODEGEN 版本:0.5.0
- 软件包:Calogica/dbt_expections 版本:0.5.1
在执行DBT DEPS&amp&我重新开始以确保没有任何挂断的东西。我对日志没有任何帮助:
14:28:05.062468 [debug] [mainthread]:发送事件:{'cattory': 'dbt','action':'软件包','label': '5CC0AD0F-792A-49A6-8A66-F59FF8C3E642','property_':'install', '上下文':[< snowplow_tracker.self_describing_json.selfdescribingjson 对象在0x000002CDFB6D1EB0>中 < snowplow_tracker.self_describing_json.selfdescribingjson对象 0x000002CDFB6D14C0>]} 14:28:05.063465 [info] [mainthread]:安装 Calogica/dbt_expectations 14:28:06.961306 [debug] [mainthread]: 发送事件:{'cattory':'dbt','action':'invocation','label': “结束”,“上下文”: [< snowplow_tracker.self_describing_json.selfdescribingjson对象 0x000002CDFB689550>, < snowplow_tracker.self_describing_json.selfdescribingjson对象 0x000002CDFB6D14C0>, < snowplow_tracker.self_describing_json.selfdescribingjson对象 0x000002CDFB702EE0>]}
============================== 2022-05-23 14:28:10.424049 | 2A7E240E-1707-4551-8966-58797E038D3A ====================================== 14:28:10.424049 [info] [mainthread]:使用dbt = 1.1.0运行 14:28:10.425046 [debug] [mainthread]:与参数运行DBT {'write_json':true,'use_colors':true,'printer_width':80, 'version_check':true,'partial_parse':true,'static_parser':true, 'profiles_dir':'c:\ users \ jasonmckenzie \ .dbt', 'send_anonymous_usage_stats':true,'event_buffer_size':100000, 'qoot':false,'no_print':false,“ resource_types':[],'output': 'selector','indirect_selection':'急切','wher':'list'} 14:28:10.425046 [调试] [mainthread]:跟踪:跟踪 14:28:10.435018 [debug] [mainthread]:发送事件:{'cattory': 'dbt','action':“ invocation','label':'start',''''': [< snowplow_tracker.self_describing_json.selfdescribingjson对象 0x00000254727F3D90>, < snowplow_tracker.self_describing_json.selfdescribingjson对象 0x00000254727F32E0> ,, < snowplow_tracker.self_describing_json.selfdescribingjson对象 0x00000254727F37C0>]} 14:28:10.462945 [调试] [mainthread]:发送 事件:{'cattory':'dbt','action':'invocation','label':'end', '上下文':[< snowplow_tracker.self_describing_json.selfdescribingjson 对象,拨打0x00000254727D1820>, < snowplow_tracker.self_describing_json.selfdescribingjson对象 0x00000254727D1490>, < snowplow_tracker.self_describing_json.selfdescribingjson对象 0x00000254727d19d0>]}
============================== 2022-05-23 14:28:10.825973 | 8D0AB879-6B59-4473-845A-CDE9DD23352B ======================================= 14:28:10.825973 [info] [mainthread]:使用dbt = 1.1.0运行 14:28:10.826970 [debug] [mainthread]:与参数运行DBT {'write_json':true,'use_colors':true,'printer_width':80, 'version_check':true,'partial_parse':true,'static_parser':true, 'profiles_dir':'c:\ users \ jasonmckenzie \ .dbt', 'send_anonymous_usage_stats':true,'event_buffer_size':100000, 'qoot':false,'no_print':false,“ resource_types':[],'output': 'selector','indirect_selection':'急切','wher':'list'} 14:28:10.826970 [debug] [mainthread]:跟踪:跟踪 14:28:10.835946 [debug] [mainthread]:发送事件:{'cattory': 'dbt','action':“ invocation','label':'start',''''': [< snowplow_tracker.self_describing_json.selfdescribingjson对象 0x00000170D052F100> ,, < snowplow_tracker.self_describing_json.selfdescribingjson对象 0x00000170D052FEB0> ,, < snowplow_tracker.self_describing_json.selfdescribingjson对象 0x00000170D052FC40>]} 14:28:10.892797 [debug] [mainthread]:发送 事件:{'cattory':'dbt','action':'invocation','label':'end', '上下文':[< snowplow_tracker.self_describing_json.selfdescribingjson 对象在0x00000170D04EC640>中 < snowplow_tracker.self_describing_json.selfdescribingjson对象 0x00000170d04ecd90>, < snowplow_tracker.self_describing_json.selfdescribingjson对象 0x00000170d04ec4f0>]}
I last used dbt several months ago. Returning to it, I had to update from version 0.21.1 to 1.1.0 to match my team's project. I've run dbt clean, then dbt deps always returns this error: The process cannot access the file because it is being used by another process: 'dbt_packages\dbt-expectations-0.5.1\integration_tests'
I see two packages after it errors: dbt_expectations & dbt-expectations-0.5.1 - I'm not sure what the latter package is about since it doesn't exist on my teammates machines.
These are all my packages which match my teammates:
- package: calogica/dbt_date
version: 0.5.1 - package: dbt-labs/dbt_utils
version: 0.8.0 - package: dbt-labs/codegen
version: 0.5.0 - package: calogica/dbt_expectations
version: 0.5.1
There's nothing else using the mentioned file before executing dbt deps & I've restarted to ensure there wasn't anything hung up. I don't see anything helpful in the logs:
14:28:05.062468 [debug] [MainThread]: Sending event: {'category':
'dbt', 'action': 'package', 'label':
'5cc0ad0f-792a-49a6-8a66-f59ff8c3e642', 'property_': 'install',
'context': [<snowplow_tracker.self_describing_json.SelfDescribingJson
object at 0x000002CDFB6D1EB0>,
<snowplow_tracker.self_describing_json.SelfDescribingJson object at
0x000002CDFB6D14C0>]} 14:28:05.063465 [info ] [MainThread]: Installing
calogica/dbt_expectations 14:28:06.961306 [debug] [MainThread]:
Sending event: {'category': 'dbt', 'action': 'invocation', 'label':
'end', 'context':
[<snowplow_tracker.self_describing_json.SelfDescribingJson object at
0x000002CDFB689550>,
<snowplow_tracker.self_describing_json.SelfDescribingJson object at
0x000002CDFB6D14C0>,
<snowplow_tracker.self_describing_json.SelfDescribingJson object at
0x000002CDFB702EE0>]}============================== 2022-05-23 14:28:10.424049 | 2a7e240e-1707-4551-8966-58797e038d3a ==============================
14:28:10.424049 [info ] [MainThread]: Running with dbt=1.1.0
14:28:10.425046 [debug] [MainThread]: running dbt with arguments
{'write_json': True, 'use_colors': True, 'printer_width': 80,
'version_check': True, 'partial_parse': True, 'static_parser': True,
'profiles_dir': 'C:\Users\jasonmckenzie\.dbt',
'send_anonymous_usage_stats': True, 'event_buffer_size': 100000,
'quiet': False, 'no_print': False, 'resource_types': [], 'output':
'selector', 'indirect_selection': 'eager', 'which': 'list'}
14:28:10.425046 [debug] [MainThread]: Tracking: tracking
14:28:10.435018 [debug] [MainThread]: Sending event: {'category':
'dbt', 'action': 'invocation', 'label': 'start', 'context':
[<snowplow_tracker.self_describing_json.SelfDescribingJson object at
0x00000254727F3D90>,
<snowplow_tracker.self_describing_json.SelfDescribingJson object at
0x00000254727F32E0>,
<snowplow_tracker.self_describing_json.SelfDescribingJson object at
0x00000254727F37C0>]} 14:28:10.462945 [debug] [MainThread]: Sending
event: {'category': 'dbt', 'action': 'invocation', 'label': 'end',
'context': [<snowplow_tracker.self_describing_json.SelfDescribingJson
object at 0x00000254727D1820>,
<snowplow_tracker.self_describing_json.SelfDescribingJson object at
0x00000254727D1490>,
<snowplow_tracker.self_describing_json.SelfDescribingJson object at
0x00000254727D19D0>]}============================== 2022-05-23 14:28:10.825973 | 8d0ab879-6b59-4473-845a-cde9dd23352b ==============================
14:28:10.825973 [info ] [MainThread]: Running with dbt=1.1.0
14:28:10.826970 [debug] [MainThread]: running dbt with arguments
{'write_json': True, 'use_colors': True, 'printer_width': 80,
'version_check': True, 'partial_parse': True, 'static_parser': True,
'profiles_dir': 'C:\Users\jasonmckenzie\.dbt',
'send_anonymous_usage_stats': True, 'event_buffer_size': 100000,
'quiet': False, 'no_print': False, 'resource_types': [], 'output':
'selector', 'indirect_selection': 'eager', 'which': 'list'}
14:28:10.826970 [debug] [MainThread]: Tracking: tracking
14:28:10.835946 [debug] [MainThread]: Sending event: {'category':
'dbt', 'action': 'invocation', 'label': 'start', 'context':
[<snowplow_tracker.self_describing_json.SelfDescribingJson object at
0x00000170D052F100>,
<snowplow_tracker.self_describing_json.SelfDescribingJson object at
0x00000170D052FEB0>,
<snowplow_tracker.self_describing_json.SelfDescribingJson object at
0x00000170D052FC40>]} 14:28:10.892797 [debug] [MainThread]: Sending
event: {'category': 'dbt', 'action': 'invocation', 'label': 'end',
'context': [<snowplow_tracker.self_describing_json.SelfDescribingJson
object at 0x00000170D04EC640>,
<snowplow_tracker.self_describing_json.SelfDescribingJson object at
0x00000170D04ECD90>,
<snowplow_tracker.self_describing_json.SelfDescribingJson object at
0x00000170D04EC4F0>]}
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
就我而言,看起来像大多数用户似乎是VS代码扩展名的情况,例如
dbt-power-user
,它会干扰dbt deps
的安装。In my case and looks like for most of the users, it seems a case of VS Code extensions such as
dbt-power-user
which interferes with the installation ofdbt deps
.尝试安装TSQL_UTILS时,我会遇到此错误。我通过在版本周围添加报价标记来“修复”它。
最初,我周围没有报价。
I got this error when trying to install tsql_utils. I 'fixed' it by adding quote marks around the versions.
Initially, I had no quotes around them.
我也遇到了同样的错误
所以我禁用了文件
”扩展程序(您也可以在Bieng的时间内联合),然后它像魅力一样(请参见下文)
I was also getting same error
So i disabled
" extension(you can unistall for the time bieng as well) and then it went like a charm (See below)