美文网首页
ValueError: _names_ are reserved

ValueError: _names_ are reserved

作者: 创造new_world | 来源:发表于2020-03-26 13:48 被阅读0次

    在linux下安装过程中,出现这种个问题。未解决,思路是重装系统。

    fantao@fantao-virtual-machine:~/桌面/dailyfresh$ python  manage.py  makemigrations 
    Traceback (most recent call last):
      File "manage.py", line 10, in <module>
        execute_from_command_line(sys.argv)
      File "/home/fantao/.local/lib/python3.5/site-packages/django/core/management/__init__.py", line 401, in execute_from_command_line
        utility.execute()
      File "/home/fantao/.local/lib/python3.5/site-packages/django/core/management/__init__.py", line 395, in execute
        self.fetch_command(subcommand).run_from_argv(self.argv)
      File "/home/fantao/.local/lib/python3.5/site-packages/django/core/management/__init__.py", line 244, in fetch_command
        klass = load_command_class(app_name, subcommand)
      File "/home/fantao/.local/lib/python3.5/site-packages/django/core/management/__init__.py", line 37, in load_command_class
        module = import_module('%s.management.commands.%s' % (app_name, name))
      File "/usr/lib/python3.5/importlib/__init__.py", line 126, in import_module
        return _bootstrap._gcd_import(name[level:], package, level)
      File "<frozen importlib._bootstrap>", line 986, in _gcd_import
      File "<frozen importlib._bootstrap>", line 969, in _find_and_load
      File "<frozen importlib._bootstrap>", line 958, in _find_and_load_unlocked
      File "<frozen importlib._bootstrap>", line 673, in _load_unlocked
      File "<frozen importlib._bootstrap_external>", line 665, in exec_module
      File "<frozen importlib._bootstrap>", line 222, in _call_with_frames_removed
      File "/home/fantao/.local/lib/python3.5/site-packages/django/core/management/commands/makemigrations.py", line 11, in <module>
        from django.db.migrations import Migration
      File "/home/fantao/.local/lib/python3.5/site-packages/django/db/migrations/__init__.py", line 2, in <module>
        from .operations import *  # NOQA
      File "/home/fantao/.local/lib/python3.5/site-packages/django/db/migrations/operations/__init__.py", line 1, in <module>
        from .fields import AddField, AlterField, RemoveField, RenameField
      File "/home/fantao/.local/lib/python3.5/site-packages/django/db/migrations/operations/fields.py", line 2, in <module>
        from django.db.models.fields import NOT_PROVIDED
      File "/home/fantao/.local/lib/python3.5/site-packages/django/db/models/__init__.py", line 10, in <module>
        from django.db.models.enums import *  # NOQA
      File "/home/fantao/.local/lib/python3.5/site-packages/django/db/models/enums.py", line 78, in <module>
        class TextChoices(str, Choices):
      File "/home/fantao/.local/lib/python3.5/site-packages/django/db/models/enums.py", line 81, in TextChoices
        def _generate_next_value_(name, start, count, last_values):
      File "/usr/lib/python3.5/enum.py", line 61, in __setitem__
        raise ValueError('_names_ are reserved for future Enum use')
    ValueError: _names_ are reserved for future Enum use
    
    

    相关文章

      网友评论

          本文标题:ValueError: _names_ are reserved

          本文链接:https://www.haomeiwen.com/subject/wtqcuhtx.html