小编Fus*_*sen的帖子

推送到 Git 后没有看到任何变化。Git 内部服务器错误

版主注意:当 GitHub 出现中断或服务降级时,会发生此错误。我们将其保留为规范帖子,供其他人查看并作为重复项关闭,但有关服务中断的问题属于题外话

有类似的问题,但我找不到任何可以解决问题的答案。

git status

On branch master
Your branch is ahead of 'origin/master' by 1 commit.
  (use "git push" to publish your local commits)

nothing to commit, working tree clean
Run Code Online (Sandbox Code Playgroud)

我将本地更改撤回到上次提交的原始状态:

git reset --hard origin/master
Run Code Online (Sandbox Code Playgroud)

确保它是最新的:

git status
On branch master
Your branch is up to date with 'origin/master'.

nothing to commit, working tree clean
Run Code Online (Sandbox Code Playgroud)

然后对文件进行小的修改。

git status

On branch master
Your branch is up to date with 'origin/master'.

Changes not staged for commit:
  (use …
Run Code Online (Sandbox Code Playgroud)

git github

6
推荐指数
2
解决办法
1万
查看次数

没有名为 certifi 的模块

在本地目录上执行 python3 (Python 3.6.8) 脚本时,它运行良好,但在 slurm 中运行 sbatch 作业时,会抱怨 certifi。

python3 -m pip install certifi

Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: certifi in /usr/local/lib/python3.6/site-packages (2020.12.5)
Run Code Online (Sandbox Code Playgroud)

添加到 python 代码后:

import sys
import os
sys.path.append(os.getcwd())
Run Code Online (Sandbox Code Playgroud)

或这个:

import sys
import os
module_path = os.path.abspath(os.getcwd())

if module_path not in sys.path:

    sys.path.append(module_path)
Run Code Online (Sandbox Code Playgroud)

出现同样的错误。看来certifi已经安装了。

pip show certifi

Name: certifi
Version: 2020.12.5
Summary: Python package for providing Mozilla's CA Bundle.
Home-page: https://certifiio.readthedocs.io/en/latest/
Author: Kenneth Reitz
Author-email: me@kennethreitz.com
License: MPL-2.0
Location: …
Run Code Online (Sandbox Code Playgroud)

python cron slurm certifi modulenotfounderror

3
推荐指数
1
解决办法
2万
查看次数

标签 统计

certifi ×1

cron ×1

git ×1

github ×1

modulenotfounderror ×1

python ×1

slurm ×1