AttributeError: cffi library '_constant_time' has no function, constant or global variable named '__spec__'

58 views
Skip to first unread message

Abhishek Sharma

unread,
Oct 20, 2019, 10:57:48 AM10/20/19
to Django users
I'm using Django and while run code getting below error, please help out on it

AttributeError: cffi library '_constant_time' has no function, constant or global variable named '__spec__'

Abhishek Sharma

unread,
Oct 20, 2019, 10:58:29 AM10/20/19
to Django users
During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "manage.py", line 21, in <module>
    main()
  File "manage.py", line 17, in main
    execute_from_command_line(sys.argv)
  File "C:\Python35\lib\site-packages\django\core\management\__init__.py", line 381, in execute_from_command_line
    utility.execute()
  File "C:\Python35\lib\site-packages\django\core\management\__init__.py", line 375, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "C:\Python35\lib\site-packages\django\core\management\base.py", line 323, in run_from_argv
    self.execute(*args, **cmd_options)
  File "C:\Python35\lib\site-packages\django\core\management\commands\runserver.py", line 60, in execute
    super().execute(*args, **options)
  File "C:\Python35\lib\site-packages\django\core\management\base.py", line 364, in execute
    output = self.handle(*args, **options)
  File "C:\Python35\lib\site-packages\django\core\management\commands\runserver.py", line 95, in handle
    self.run(**options)
  File "C:\Python35\lib\site-packages\django\core\management\commands\runserver.py", line 102, in run
    autoreload.run_with_reloader(self.inner_run, **options)
  File "C:\Python35\lib\site-packages\django\utils\autoreload.py", line 598, in run_with_reloader
    start_django(reloader, main_func, *args, **kwargs)
  File "C:\Python35\lib\site-packages\django\utils\autoreload.py", line 583, in start_django
    reloader.run(django_main_thread)
  File "C:\Python35\lib\site-packages\django\utils\autoreload.py", line 301, in run
    self.run_loop()
  File "C:\Python35\lib\site-packages\django\utils\autoreload.py", line 307, in run_loop
    next(ticker)
  File "C:\Python35\lib\site-packages\django\utils\autoreload.py", line 347, in tick
    for filepath, mtime in self.snapshot_files():
  File "C:\Python35\lib\site-packages\django\utils\autoreload.py", line 363, in snapshot_files
    for file in self.watched_files():
  File "C:\Python35\lib\site-packages\django\utils\autoreload.py", line 262, in watched_files
    yield from iter_all_python_module_files()
  File "C:\Python35\lib\site-packages\django\utils\autoreload.py", line 103, in iter_all_python_module_files
    return iter_modules_and_files(modules, frozenset(_error_files))
  File "C:\Python35\lib\site-packages\django\utils\autoreload.py", line 124, in iter_modules_and_files
    if getattr(module, '__spec__', None) is None:
SystemError: <built-in function getattr> returned a result with an error set

Jorge Gimeno

unread,
Oct 21, 2019, 7:26:09 PM10/21/19
to django...@googlegroups.com
Searches to both of your error messages suggested a mismatch in .so objects. I would uninstall and reinstall Django and see if that helps.


-Jorge


The information in this e-mail and any attachments is confidential and may be legally privileged. It is intended solely for the addressee or addressee's. If you are not an intended recipient, please delete the message and any attachments and notify the sender of nondelivery. Any use or disclosure of the contents of either is unauthorised and may be unlawful. All liability for viruses is excluded to the fullest extent permitted by law. Any views expressed in this message are those of the individual sender, except where the sender states them, with requisite authority, to be those of the organisation.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/e98263bd-05b9-4d7c-bbc7-bd1ebf9a4a83%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages