Closed hatimmakki closed 2 years ago
now for some reason I am getting this error:
AttributeError: cffi library '_openssl' has no function, constant or global variable named '__spec__'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "manage.py", line 26, in <module>
execute_from_command_line(sys.argv)
File "/data/www/***/venv/lib/python3.7/site-packages/django/core/management/__init__.py", line 381, in execute_from_command_line
System check identified no issues (0 silenced).
utility.execute()
File "/data/www/***/venv/lib/python3.7/site-packages/django/core/management/__init__.py", line 375, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/data/www/***/venv/lib/python3.7/site-packages/django/core/management/base.py", line 323, in run_from_argv
self.execute(*args, **cmd_options)
File "/data/www/***/venv/lib/python3.7/site-packages/django/core/management/commands/runserver.py", line 60, in execute
super().execute(*args, **options)
File "/data/www/***/venv/lib/python3.7/site-packages/django/core/management/base.py", line 364, in execute
output = self.handle(*args, **options)
File "/data/www/***/venv/lib/python3.7/site-packages/django/core/management/commands/runserver.py", line 95, in handle
self.run(**options)
File "/data/www/***/venv/lib/python3.7/site-packages/django/core/management/commands/runserver.py", line 102, in run
autoreload.run_with_reloader(self.inner_run, **options)
File "/data/www/***/venv/lib/python3.7/site-packages/django/utils/autoreload.py", line 598, in run_with_reloader
start_django(reloader, main_func, *args, **kwargs)
File "/data/www/***/venv/lib/python3.7/site-packages/django/utils/autoreload.py", line 583, in start_django
reloader.run(django_main_thread)
File "/data/www/***/venv/lib/python3.7/site-packages/django/utils/autoreload.py", line 301, in run
self.run_loop()
File "/data/www/***/venv/lib/python3.7/site-packages/django/utils/autoreload.py", line 307, in run_loop
next(ticker)
File "/data/www/***/venv/lib/python3.7/site-packages/django/utils/autoreload.py", line 347, in tick
for filepath, mtime in self.snapshot_files():
File "/data/www/***/venv/lib/python3.7/site-packages/django/utils/autoreload.py", line 363, in snapshot_files
for file in self.watched_files():
File "/data/www/***/venv/lib/python3.7/site-packages/django/utils/autoreload.py", line 262, in watched_files
yield from iter_all_python_module_files()
File "/data/www/***/venv/lib/python3.7/site-packages/django/utils/autoreload.py", line 103, in iter_all_python_module_files
return iter_modules_and_files(modules, frozenset(_error_files))
File "/data/www/***/venv/lib/python3.7/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
Sorry for you, but I think you'd rather search for help in the general Django support channels, unless you can show that django-tinymce is at fault.
Hi
I followed all the steps for my Django project, but I am still getting errors when running the app.
I didn't update the model code yet
steps: