Flotilla无法在Rasbian Pixel and Buster上使用

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

我最近订购了Flottila码头和三个要附加的模块。我想将其与python一起使用,但这非常具有挑战性:(尝试运行以下代码会给我错误

AttributeError: ‘module’ object has no attribute ‘Client’
import flotilla
dock = flotilla.Client()
dock.ready

这些是我遵循的步骤:

我最初尝试将其安装在Rasbian Buster上,经过多次尝试,我设法克隆了flottila-python库。 curl -sS https://get.pimoroni.com/flotilla | bash命令给我一个错误,提示该版本不支持。我应用了这里建议的解决方案,即Flotilla安装程序无法在“破坏者”上运行,但没有运气。

然后我将其安装在Rasbian Pixel上,一切顺利。但是,当我尝试运行代码时,出现相同的错误。

关于如何解决此问题的任何提示,我们将不胜感激。

python raspbian
1个回答
0
投票

Pimoroni支持人员的一些黑客:

git clone https://github.com/pimoroni/flotilla-offline
cd flotilla-offline

然后编辑install.sh文件,以便当前读取的行:

case “$RELEASE” in
“9.0” | “9.1” | “9.2” | “9.3” | “9.4” | “9.5” | “9.6” | “9.7” | “9.8” | “9.9”)

已更改为

case “$RELEASE” in
“9.0” | “9.1” | “9.2” | “9.3” | “9.4” | “9.5” | “9.6” | “9.7” | “9.8” | “9.9” | “10”)

然后您可以运行sudo ./install

Pimoroni forum的更多信息。

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