gpt4 book ai didi

python - dh-virtualenv 构建错误 - 文本文件繁忙

转载 作者:太空宇宙 更新时间:2023-11-03 15:35:08 25 4
gpt4 key购买 nike

刚刚开始使用 dh-virtualenv,并一直在关注 https://nylas.com/blog/packaging-deploying-python/ 上的教程。

我有一个简单的 2 文件测试应用程序,我正在尝试在 Windows 机器上运行的 vagrant Debian Jessie VM 上构建它。当我运行 dpkg-buildpackage -us -uc 时,最后出现错误 - 无法重命名文件 - 文本文件正忙:

root@jessie:/vagrant/updatetest3#
root@jessie:/vagrant/updatetest3#
root@jessie:/vagrant/updatetest3# uname -a
Linux jessie 3.16.0-4-amd64 #1 SMP Debian 3.16.39-1+deb8u1 (2017-02-22) x86_64 GNU/Linux
root@jessie:**/vagrant/updatetest3# sudo dpkg-buildpackage -us -uc**
dpkg-buildpackage: source package updatetest3
dpkg-buildpackage: source version 1.3
dpkg-buildpackage: source distribution unstable
dpkg-buildpackage: source changed by bill <bill@bill.com>
dpkg-buildpackage: host architecture amd64
dpkg-source --before-build updatetest3
debian/rules clean
dh clean --with python-virtualenv
dh_testdir
dh_auto_clean
pyversions: missing X(S)-Python-Version in control file, fall back to debian/pyversions
pyversions: missing debian/pyversions file, fall back to supported versions
running clean
'build/lib.linux-x86_64-2.7' does not exist -- can't clean it
'build/bdist.linux-x86_64' does not exist -- can't clean it
'build/scripts-2.7' does not exist -- can't clean it
dh_clean
dpkg-source -b updatetest3
dpkg-source: warning: no source format specified in debian/source/format, see dpkg-source(1)
dpkg-source: info: using source format `1.0'
dpkg-source: warning: source directory 'updatetest3' is not <sourcepackage>-<upstreamversion> 'updatetest3-1.3'
dpkg-source: info: building updatetest3 in updatetest3_1.3.tar.gz
dpkg-source: **error: unable to rename `/vagrant/updatetest3_1.3.tar.gz.new.WqKLSO' (newly created) to `updatetest3_1.3.tar.gz': Text file busy**
dpkg-buildpackage: error: dpkg-source -b updatetest3 gave error exit status 26
root@jessie:/vagrant/updatetest3#

有什么想法吗?

谢谢

比尔

最佳答案

没关系。

这个问题似乎是我尝试在与主机操作系统共享的目录(/vagrant)中构建的结果。当我复制到访客专用目录后,问题就消失了。

比尔

关于python - dh-virtualenv 构建错误 - 文本文件繁忙,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42584982/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com