模块“six.moves”没有属性“collections\u abc”Google Calendar Raspberry Pi

2024-04-19 20:37:57 发布

您现在位置:Python中文网/ 问答频道 /正文

我最近创建了一个读取谷歌日历事件的程序。我使用了谷歌的快速启动code,我能够在我的windows 10计算机上成功运行该程序,但当我尝试在我的raspberry pi zero w上运行它时,我遇到了错误:

module 'six.moves' has no attribute 'collections_abc'

我已经阅读了几个关于six和GoogleAPI客户端更改的论坛,并且已经更改了这两个程序的版本,但无法运行该程序

installation error: cannot import name 'collections_abc' from 'six.moves' (unknown location)

module 'six.moves' has no attribute 'collections_abc'

https://github.com/googleapis/google-api-python-client/issues/1029

有人能帮我解决这个问题吗

这些是我在raspberry pi zero w上安装的所有版本和软件包

arandr==0.1.9
asn1crypto==0.24.0
automationhat==0.2.0
backports.functools-lru-cache==1.6.1
beautifulsoup4==4.9.3
blinker==1.4
blinkt==0.1.2
bs4==0.0.1
buttonshim==0.0.2
cachetools==3.1.1
Cap1xxx==0.1.3
certifi==2018.8.24
chardet==3.0.4
Click==7.0
colorama==0.3.7
colorzero==1.1
configparser==3.5.0b2
cookies==2.2.1
cryptography==2.6.1
drumhat==0.1.0
entrypoints==0.3
enum34==1.1.6
envirophat==1.0.0
ExplorerHAT==0.4.2
Flask==1.0.2
fourletterphat==0.1.0
funcsigs==1.0.2
futures==3.3.0
google-api-core==1.24.1
google-api-python-client==1.11.0
google-auth==1.24.0
google-auth-httplib2==0.0.4
google-auth-oauthlib==0.4.1
googleapis-common-protos==1.52.0
gpiozero==1.5.1
gyp==0.1
httplib2==0.18.1
idna==2.6
ipaddress==1.0.17
itsdangerous==0.24
Jinja2==2.10
keyring==17.1.1
keyrings.alt==3.1.1
MarkupSafe==1.1.0
mcpi==0.1.1
microdotphat==0.2.1
mock==2.0.0
mote==0.0.4
motephat==0.0.3
numpy==1.16.2
oauthlib==2.1.0
olefile==0.46
pantilthat==0.0.7
pbr==4.2.0
phatbeat==0.1.1
pianohat==0.1.0
picamera==1.13
picraft==1.0
piglow==1.2.5
pigpio==1.44
Pillow==5.4.1
protobuf==3.14.0
pyasn1==0.4.8
pyasn1-modules==0.2.8
pycairo==1.16.2
pycrypto==2.6.1
pyflakes==2.0.0
pygame==1.9.4.post1
PyGObject==3.30.4
pyinotify==0.9.6
PyJWT==1.7.0
pyOpenSSL==19.0.0
pyserial==3.4
pytz==2020.5
pyxdg==0.25
rainbowhat==0.1.0
requests==2.21.0
requests-oauthlib==1.0.0
responses==0.9.0
RPi.GPIO==0.7.0
rsa==4.5
RTIMULib==7.2.1
scrollphat==0.0.7
scrollphathd==1.2.1
SecretStorage==2.3.1
sense-emu==1.1
sense-hat==2.2.0
simplejson==3.16.0
six==1.11.0
skywriter==0.0.7
sn3218==1.2.7
soupsieve==1.9.6
spidev==3.4
svg2rlg==0.3
touchphat==0.0.1
twython==3.7.0
unicornhathd==0.0.4
uritemplate==3.0.1
urllib3==1.24.1
Werkzeug==0.14.1

Tags: no程序authapigooglepiraspberrycollections