Issue with when I create SQLite

$ python xblock-sdk/manage.py migrate
Traceback (most recent call last):
File “C:\Program Files\Python38\lib\logging\config.py”, line 563, in configure
handler = self.configure_handler(handlers[name])
File “C:\Program Files\Python38\lib\logging\config.py”, line 744, in configure_handler
result = factory(**kwargs)
File “C:\Program Files\Python38\lib\logging\handlers.py”, line 148, in init
BaseRotatingHandler.init(self, filename, mode, encoding, delay)
File “C:\Program Files\Python38\lib\logging\handlers.py”, line 55, in init
logging.FileHandler.init(self, filename, mode, encoding, delay)
File “C:\Program Files\Python38\lib\logging_init_.py”, line 1143, in init
StreamHandler.init(self, self.open())
File "C:\Program Files\Python38\lib\logging_init
.py", line 1172, in _open
return open(self.baseFilename, self.mode, encoding=self.encoding)
FileNotFoundError: [Errno 2] No such file or directory: ‘F:\Xblock_dev\var\workbench.log’

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File “xblock-sdk/manage.py”, line 12, in
execute_from_command_line(sys.argv)
File “F:\Xblock_dev\venv\lib\site-packages\django\core\management_init_.py”, line 419, in execute_from_command_line
utility.execute()
File “F:\Xblock_dev\venv\lib\site-packages\django\core\management_init_.py”, line 395, in execute
django.setup()
File “F:\Xblock_dev\venv\lib\site-packages\django_init_.py”, line 19, in setup
configure_logging(settings.LOGGING_CONFIG, settings.LOGGING)
File “F:\Xblock_dev\venv\lib\site-packages\django\utils\log.py”, line 75, in configure_logging
logging_config_func(logging_settings)
File “C:\Program Files\Python38\lib\logging\config.py”, line 808, in dictConfig
dictConfigClass(config).configure()
File “C:\Program Files\Python38\lib\logging\config.py”, line 570, in configure
raise ValueError('Unable to configure handler ’
ValueError: Unable to configure handler ‘logfile’
(venv)

@braden

Hello @srivarshith_daladuli

Please tell us what your issue is properly, you can go through How to get help to know how to structure a question more properly.

Also please refrain from tagging people, you’ll get desired help once people are available and have had a look at the question.

As for your query, from the error it looks like you are facing the error becuase

FileNotFoundError: [Errno 2] No such file or directory: ‘F:\Xblock_dev\var\workbench.log’

Probably file is not available or it might not have permission to access the file.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.