首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >heroku python入门教程EISDIR错误

heroku python入门教程EISDIR错误
EN

Stack Overflow用户
提问于 2021-09-22 21:16:34
回答 1查看 28关注 0票数 1

按照Heroku的Python入门教程,我遇到了一个错误

当我运行时:

heroku local web

我得到了错误:

代码语言:javascript
复制
internal/fs/utils.js:269
    throw err;
    ^

Error: EISDIR: illegal operation on a directory, read
    at Object.readSync (fs.js:568:3)
    at tryReadSync (fs.js:353:20)
    at Object.readFileSync (fs.js:390:19)
    at loadEnvsFile (/usr/local/Cellar/heroku/7.59.0/libexec/node_modules/foreman/lib/envs.js:132:15)
    at Array.map (<anonymous>)
    at loadEnvs (/usr/local/Cellar/heroku/7.59.0/libexec/node_modules/foreman/lib/envs.js:147:30)
    at Command.<anonymous> (/usr/local/Cellar/heroku/7.59.0/libexec/node_modules/foreman/nf.js:72:16)
    at Command.listener (/usr/local/Cellar/heroku/7.59.0/libexec/node_modules/foreman/node_modules/commander/index.js:315:8)
    at Command.emit (events.js:314:20)
    at Command.parseArgs (/usr/local/Cellar/heroku/7.59.0/libexec/node_modules/foreman/node_modules/commander/index.js:654:12) {
  errno: -21,
  syscall: 'read',
  code: 'EISDIR'
}
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2021-09-22 21:17:01

此错误是由于我对python venv文件夹使用了.env而导致的

python3.9 -m venv .env --prompt='heroku-getting-started'

看起来heroku的python入门期望.env是这样的

代码语言:javascript
复制
$ cat .env
TIMES=2

我最终将python venv移到了.venv,这个错误就消失了。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/69291369

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档