Closed ghsssss closed 1 year ago
@397179459
PRIVATE_AES_KEY是高德地图的key吗
@ghsssss 看一下最新的config.py,里面有说明
Traceback (most recent call last): File "/usr/local/lib/python3.10/configparser.py", line 791, in get value = d[option] File "/usr/local/lib/python3.10/collections/init.py", line 986, in getitem return self.missing(key) # support subclasses that define missing File "/usr/local/lib/python3.10/collections/init.py", line 978, in missing raise KeyError(key) KeyError: 'enddate'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/ql/data/scripts/397179459_iMaoTai-reserve_master/main.py", line 39, in
我已经添加高德地图的key @397179459
你没有自己配置过login.py吧,你配置的时候就要选择这个 @ghsssss
文档有点问题,c'redentials不能删除,删除报错,其他按流程走没啥问题
只能清空,不能删除,代码那里会导致过不去
而且高德key必须事情web服务类型,不能选web类型。。建议标注一下
只能清空,不能删除,代码那里会导致过不去
删除文件后,不能直接运行main.py,运行login.py会报错吗?可以展示下报错,我之前测过了,会自动创建的。
而且高德key必须事情web服务类型,不能选web类型。。建议标注一下 这个我当时没注意,就是从网上找的注册方法。
Traceback (most recent call last):
File "/Users/hula9hao/Downloads/iMaoTai-reserve-master/login.py", line 23, in
Traceback (most recent call last): File "/Users/hula9hao/Downloads/iMaoTai-reserve-master/login.py", line 23, in path = get_credentials_path() File "/Users/hula9hao/Downloads/iMaoTai-reserve-master/login.py", line 19, in get_credentials_path os.mkdir(os.path.join(home_path, 'myConfig')) FileExistsError: [Errno 17] File exists: '/Users/hula9hao/Downloads/iMaoTai-reserve-master/myConfig'
更新一下代码,再试试
可以了。
https://console.amap.com/dev/key/app 创建新应用-添加key-Web服务 大致流程 @397179459
08/21/2023 09:30:14 AM privateCrypt.py : ERROR !!!!请配置config.py中PRIVATE_AES_KEY(AES的私钥) Traceback (most recent call last): File "/ql/data/scripts/397179459_iMaoTai-reserve_master/main.py", line 33, in
aes_key = privateCrypt.get_aes_key()
File "/ql/data/scripts/397179459_iMaoTai-reserve_master/privateCrypt.py", line 13, in get_aes_key
raise ValueError
ValueError