errors in code
rahuldwivedi2 opened this issue · 3 comments
Traceback (most recent call last):
File "manage.py", line 22, in
execute_from_command_line(sys.argv)
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\core\management_init_.py", line 401, in execute_from_command_line
utility.execute()
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\core\management_init_.py", line 345, in execute
settings.INSTALLED_APPS
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\conf_init_.py", line 76, in getattr
self.setup(name)
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\conf_init.py", line 63, in setup
self.wrapped = Settings(settings_module)
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\conf_init.py", line 142, in init
mod = importlib.import_module(self.SETTINGS_MODULE)
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\importlib_init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1014, in _gcd_import
File "", line 991, in _find_and_load
File "", line 975, in _find_and_load_unlocked
File "", line 671, in _load_unlocked
File "", line 783, in exec_module
File "", line 219, in _call_with_frames_removed
File "C:\Users\rd875\OneDrive\Documents\croma-master\src\croma\settings.py", line 6, in
import environ
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\environ.py", line 114
raise ValueError, "No frame marked with %s." % fname
^
SyntaxError: invalid syntax
C:\Users\rd875\OneDrive\Documents\croma-master\src>pip install sys
ERROR: Could not find a version that satisfies the requirement sys (from versions: none)
ERROR: No matching distribution found for sys
C:\Users\rd875\OneDrive\Documents\croma-master\src>pip install system
ERROR: Could not find a version that satisfies the requirement system (from versions: none)
ERROR: No matching distribution found for system
C:\Users\rd875\OneDrive\Documents\croma-master\src>python manage.py runserver
Watching for file changes with StatReloader
Exception in thread django-main-thread:
Traceback (most recent call last):
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\threading.py", line 932, in _bootstrap_inner
self.run()
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\threading.py", line 870, in run
self._target(*self.args, **self.kwargs)
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\utils\autoreload.py", line 53, in wrapper
fn(*args, **kwargs)
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\core\management\commands\runserver.py", line 109, in inner_run
autoreload.raise_last_exception()
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\utils\autoreload.py", line 76, in raise_last_exception
raise exception[1]
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\core\management_init.py", line 357, in execute
autoreload.check_errors(django.setup)()
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\utils\autoreload.py", line 53, in wrapper
fn(*args, **kwargs)
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django_init.py", line 24, in setup
apps.populate(settings.INSTALLED_APPS)
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\apps\registry.py", line 91, in populate
app_config = AppConfig.create(entry)
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\apps\config.py", line 90, in create
module = import_module(entry)
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\importlib_init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1014, in _gcd_import
File "", line 991, in find_and_load
File "", line 973, in find_and_load_unlocked
ModuleNotFoundError: No module named 'compressor'
Traceback (most recent call last):
File "manage.py", line 22, in
execute_from_command_line(sys.argv)
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\core\management_init.py", line 401, in execute_from_command_line
utility.execute()
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\core\management_init.py", line 395, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\core\management\base.py", line 328, in run_from_argv
self.execute(*args, **cmd_options)
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\core\management\commands\runserver.py", line 60, in execute
super().execute(*args, **options)
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\core\management\base.py", line 369, in execute
output = self.handle(*args, **options)
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\core\management\commands\runserver.py", line 95, in handle
self.run(**options)
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\core\management\commands\runserver.py", line 102, in run
autoreload.run_with_reloader(self.inner_run, **options)
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\utils\autoreload.py", line 599, in run_with_reloader
start_django(reloader, main_func, *args, **kwargs)
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\utils\autoreload.py", line 584, in start_django
reloader.run(django_main_thread)
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\utils\autoreload.py", line 299, in run
self.run_loop()
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\utils\autoreload.py", line 305, in run_loop
next(ticker)
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\utils\autoreload.py", line 345, in tick
for filepath, mtime in self.snapshot_files():
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\utils\autoreload.py", line 361, in snapshot_files
for file in self.watched_files():
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\utils\autoreload.py", line 260, in watched_files
yield from iter_all_python_module_files()
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\utils\autoreload.py", line 105, in iter_all_python_module_files
return iter_modules_and_files(modules, frozenset(_error_files))
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\utils\autoreload.py", line 141, in iter_modules_and_files
resolved_path = path.resolve(strict=True).absolute()
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\pathlib.py", line 1172, in resolve
s = self._flavour.resolve(self, strict=strict)
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\pathlib.py", line 200, in resolve
return self._ext_to_normal(_getfinalpathname(s))
OSError: [WinError 123] The filename, directory name, or volume label syntax is incorrect: ''
C:\Users\rd875\OneDrive\Documents\croma-master\src>python manage.py runserver
Watching for file changes with StatReloader
Exception in thread django-main-thread:
Traceback (most recent call last):
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\threading.py", line 932, in _bootstrap_inner
self.run()
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\threading.py", line 870, in run
self._target(*self.args, **self.kwargs)
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\utils\autoreload.py", line 53, in wrapper
fn(*args, **kwargs)
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\core\management\commands\runserver.py", line 109, in inner_run
autoreload.raise_last_exception()
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\utils\autoreload.py", line 76, in raise_last_exception
raise exception[1]
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\core\management_init.py", line 357, in execute
autoreload.check_errors(django.setup)()
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\utils\autoreload.py", line 53, in wrapper
fn(*args, **kwargs)
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django_init.py", line 24, in setup
apps.populate(settings.INSTALLED_APPS)
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\apps\registry.py", line 91, in populate
app_config = AppConfig.create(entry)
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\apps\config.py", line 90, in create
module = import_module(entry)
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\importlib_init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1014, in _gcd_import
File "", line 991, in find_and_load
File "", line 973, in find_and_load_unlocked
ModuleNotFoundError: No module named 'compressor'
Traceback (most recent call last):
File "manage.py", line 22, in
execute_from_command_line(sys.argv)
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\core\management_init.py", line 401, in execute_from_command_line
utility.execute()
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\core\management_init.py", line 395, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\core\management\base.py", line 328, in run_from_argv
self.execute(*args, **cmd_options)
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\core\management\commands\runserver.py", line 60, in execute
super().execute(*args, **options)
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\core\management\base.py", line 369, in execute
output = self.handle(*args, **options)
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\core\management\commands\runserver.py", line 95, in handle
self.run(**options)
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\core\management\commands\runserver.py", line 102, in run
autoreload.run_with_reloader(self.inner_run, **options)
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\utils\autoreload.py", line 599, in run_with_reloader
start_django(reloader, main_func, *args, **kwargs)
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\utils\autoreload.py", line 584, in start_django
reloader.run(django_main_thread)
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\utils\autoreload.py", line 299, in run
self.run_loop()
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\utils\autoreload.py", line 305, in run_loop
next(ticker)
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\utils\autoreload.py", line 345, in tick
for filepath, mtime in self.snapshot_files():
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\utils\autoreload.py", line 361, in snapshot_files
for file in self.watched_files():
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\utils\autoreload.py", line 260, in watched_files
yield from iter_all_python_module_files()
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\utils\autoreload.py", line 105, in iter_all_python_module_files
return iter_modules_and_files(modules, frozenset(_error_files))
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\utils\autoreload.py", line 141, in iter_modules_and_files
resolved_path = path.resolve(strict=True).absolute()
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\pathlib.py", line 1172, in resolve
s = self._flavour.resolve(self, strict=strict)
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\pathlib.py", line 200, in resolve
return self._ext_to_normal(_getfinalpathname(s))
OSError: [WinError 123] The filename, directory name, or volume label syntax is incorrect: ''
C:\Users\rd875\OneDrive\Documents\croma-master\src>python manage.py runserver
Watching for file changes with StatReloader
Exception in thread django-main-thread:
Traceback (most recent call last):
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\threading.py", line 932, in _bootstrap_inner
self.run()
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\threading.py", line 870, in run
self._target(*self.args, **self.kwargs)
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\utils\autoreload.py", line 53, in wrapper
fn(*args, **kwargs)
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\core\management\commands\runserver.py", line 109, in inner_run
autoreload.raise_last_exception()
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\utils\autoreload.py", line 76, in raise_last_exception
raise exception[1]
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\core\management_init.py", line 357, in execute
autoreload.check_errors(django.setup)()
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\utils\autoreload.py", line 53, in wrapper
fn(*args, **kwargs)
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django_init.py", line 24, in setup
apps.populate(settings.INSTALLED_APPS)
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\apps\registry.py", line 91, in populate
app_config = AppConfig.create(entry)
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\apps\config.py", line 90, in create
module = import_module(entry)
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\importlib_init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1014, in _gcd_import
File "", line 991, in find_and_load
File "", line 973, in find_and_load_unlocked
ModuleNotFoundError: No module named 'compressor'
Traceback (most recent call last):
File "manage.py", line 22, in
execute_from_command_line(sys.argv)
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\core\management_init.py", line 401, in execute_from_command_line
utility.execute()
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\core\management_init.py", line 395, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\core\management\base.py", line 328, in run_from_argv
self.execute(*args, **cmd_options)
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\core\management\commands\runserver.py", line 60, in execute
super().execute(*args, **options)
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\core\management\base.py", line 369, in execute
output = self.handle(*args, **options)
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\core\management\commands\runserver.py", line 95, in handle
self.run(**options)
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\core\management\commands\runserver.py", line 102, in run
autoreload.run_with_reloader(self.inner_run, **options)
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\utils\autoreload.py", line 599, in run_with_reloader
start_django(reloader, main_func, *args, **kwargs)
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\utils\autoreload.py", line 584, in start_django
reloader.run(django_main_thread)
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\utils\autoreload.py", line 299, in run
self.run_loop()
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\utils\autoreload.py", line 305, in run_loop
next(ticker)
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\utils\autoreload.py", line 345, in tick
for filepath, mtime in self.snapshot_files():
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\utils\autoreload.py", line 361, in snapshot_files
for file in self.watched_files():
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\utils\autoreload.py", line 260, in watched_files
yield from iter_all_python_module_files()
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\utils\autoreload.py", line 105, in iter_all_python_module_files
return iter_modules_and_files(modules, frozenset(_error_files))
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\utils\autoreload.py", line 141, in iter_modules_and_files
resolved_path = path.resolve(strict=True).absolute()
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\pathlib.py", line 1172, in resolve
s = self._flavour.resolve(self, strict=strict)
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\pathlib.py", line 200, in resolve
return self._ext_to_normal(_getfinalpathname(s))
OSError: [WinError 123] The filename, directory name, or volume label syntax is incorrect: ''
what version of Django are you using?
This project runs on Django 1.11. You need to install the required dependencies available in requirements.txt.
The best way is:
To create virtualenv in your project directory, activate it and then install the requirements.txt
. Then run the project
Here are the commands:-
- Install virtualenv
pip install virtualenv
-
Change the directory the project directory.
-
Create virtualenv
virtualenv .
- Activate it: Run the activate available in scripts
.\Scripts\activate
- Install dependencies
pip install -r requirements.txt
- Run your project.