我一直在学习本教程:Getting started with Endpoints Frameworks for Python和这个人How do I fix OpenAPI document generation on Google Cloud Endpoints? 一样,并且遇到类似的问题
Traceback (most recent call last):
File "lib/endpoints/endpointscfg.py", line 28, in <module>
from endpoints._endpointscfg_impl import main
File "/endpoints-frameworks-v2/echo/lib/endpoints/__init__.py", line 33, in <module>
from .apiserving import *
File "/endpoints-frameworks-v2/echo/lib/endpoints/apiserving.py", line 71, in <module>
from endpoints_management.control import client as control_client
File "/endpoints-frameworks-v2/echo/lib/endpoints_management/__init__.py", line 19, in <module>
from . import auth, config, control, gen
File "/endpoints-frameworks-v2/echo/lib/endpoints_management/auth/__init__.py", line 19, in <module>
from . import suppliers, tokens
File "/endpoints-frameworks-v2/echo/lib/endpoints_management/auth/suppliers.py", line 21, in <module>
from jwkest import jwk
File "/endpoints-frameworks-v2/echo/lib/jwkest/jwk.py", line 11, in <module>
from Crypto.PublicKey import RSA
File "/endpoints-frameworks-v2/echo/lib/Crypto/PublicKey/RSA.py", line 78, in <module>
from Crypto import Random
File "/endpoints-frameworks-v2/echo/lib/Crypto/Random/__init__.py", line 28, in <module>
from Crypto.Random import OSRNG
ImportError: cannot import name OSRNG
当我使用我的项目ID运行此行
python lib/endpoints/endpointscfg.py get_openapi_spec main.EchoApi --hostname [YOUR_PROJECT_ID].appspot.com
知道这是否是可以修复的错误