无法在ubuntu上使用python2启动bitbake

问题描述 投票:0回答:2

我正在尝试启动 bitbake,但它告诉我有一个预览实例正在运行,尽管不存在:

Previous bitbake instance shutting down?, waiting to retry...
Previous bitbake instance shutting down?, waiting to retry...
Previous bitbake instance shutting down?, waiting to retry...
Previous bitbake instance shutting down?, waiting to retry...
NOTE: Retrying server connection... (Traceback (most recent call last):
 File "/mnt/d/yocto/******/poky/bitbake/lib/bb      /main.py", line 441, in setup_bitbake
server = bb.server.process.BitBakeServer(lock, sockname, configuration, featureset)
File "/mnt/d/yocto/****/poky/bitbake/lib/bb/server/process.py", line 385, in __init__
self.sock.bind(os.path.basename(sockname))
OSError: [Errno 95] Operation not supported)
WARNING: /mnt/d/yocto/*****/poky/bitbake/lib/bb  /main.py:476: ResourceWarning: unclosed <socket.socket fd=13,         family=AddressFamily.AF_UNIX, type=SocketKind.SOCK_STREAM, proto=0>
logger.info("Retrying server connection... (%s)" %    traceback.format_exc())

NOTE: Reconnecting to bitbake server...
NOTE: Retrying server connection...
ERROR: Unable to connect to bitbake server, or start one

更奇怪的是没有锁定文件。有人有类似的问题吗?我在 20.04 上使用 Python 2 运行 bitbake(这是一个较旧的 yocto 分支)

提前致谢

ubuntu yocto bitbake
2个回答
3
投票

如果 bitbake 进程未正确终止,可能只是存在一个悬空的

bitbake.lock
文件。

删除此文件并重试。


1
投票

当我没有完全终止之前的 bitbake 会话时,我遇到了类似的问题。尝试使用

$ ps aux | grep bitbake
发现仍在运行的 bitbake 进程并杀死肇事者。

© www.soinside.com 2019 - 2024. All rights reserved.