最近,我在诗歌方面遇到了这个问题。我所有使用诗歌的命令都失败并出现以下错误。
RuntimeError
The Poetry configuration is invalid:
- Additional properties are not allowed ('group' was unexpected)
Run Code Online (Sandbox Code Playgroud) 我有以下型号。
BaseClass1和BaseClass2是模型使用的抽象模型。
在这种情况下,模型AdBreak由视图集和序列化器使用。当我运行时python manage.py makemigrations,AdBreak检测到模型的变化。模型AdBreakStatus没有被创建。
由于,AdBreakStatus链接到AdBreak,我AdBreakStatus也期待迁移。我的理解有误吗?
编辑
在初始状态,只有 AdBreak 和 BaseClass1 模型。添加了新状态、AdBreakStatus 和 BaseClass2 模型。AdBreak 中的一些字段已移至 AdBreakStatus。
在此先感谢您的帮助。
class BaseClass1(models.Model):
class Meta:
abstract=True
timestamp = models.DateTimeField(auto_now_add=True)
class BaseClass2(models.Model):
class Meta:
abstract=True
other_field = models.IntegerField()
class AdBreak(BaseClass1):
class Meta:
db_table = "ad_break"
ad_break_id = models.AutoField(primary_key=True)
... # Other fields
class AdBreakStatus(BaseClass2):
class Meta:
db_table = "ad_break_status"
ad_break = models.ForeignKey(AdBreak)
... # Other Fields
Run Code Online (Sandbox Code Playgroud) 我克隆了一个存储库,安装了 pre-commit 并且是第一次提交。 这是实际安装和设置预提交包的时间。我遇到了以下问题。
[INFO] Installing environment for https://github.com/asottile/seed-isort-config.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
An unexpected error has occurred: CalledProcessError: command: ('/home/roopak/.cache/pre-commit/repokb2ckm/py_env-python2.7/bin/python', u'/home/roopak/.cache/pre-commit/repokb2ckm/py_env-python2.7/bin/pip', 'install', '.')
return code: 1
expected return code: 0
stdout:
Processing /home/roopak/.cache/pre-commit/repokb2ckm
stderr:
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. A future version of pip will drop …Run Code Online (Sandbox Code Playgroud) 系统重启后,看起来现有的docker镜像已损坏.
我试过以下 -
我觉得删除图像会有所帮助.当我尝试删除时,它似乎只删除标记.它不会删除所有图层.我怎样才能做到这一点?
我试过了docker rmi.图像被删除了.
现在,我尝试再次拉动图像,其中一些图层已经存在.它说,我正试图运行码头工人oci runtime error ..... file not found.
这些图像正在其他机器上运行,并且正在使用这台机器直到几个小时之前.