Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FileNotFoundError: [Errno 2] No such file or directory: 'config.json' #18

Open
wphu opened this issue Sep 5, 2019 · 2 comments
Open

Comments

@wphu
Copy link

wphu commented Sep 5, 2019

在顶级目录运行,出现题目中的错误,在src目录正常运行。请修改一些说明。

@Joii-Han-CO
Copy link

我改成这样了

def getConfigJson():
cur_path = os.path.split(file)[0] + '/config.json'
with open(cur_path) as file:
jsonStr = json.loads(file.read())
return jsonStr

@oh1h0ney
Copy link

需要安装两个SDK库,一个是阿里云核心SDK库,一个是阿里云域名SDK库;
阿里云核心SDK库:pip install aliyun-python-sdk-core
阿里云域名SDK库:pip install aliyun-python-sdk-domain
装了再运行就 OK 了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants