Contact Details
No response
Describe the Bug
I want to add a new school but when I run the command:
python manage.py makeschool --name "Aristotle University of Thessaloniki" --code "auth" --regex "([A-Z]{2,8}\s\d{3})"
I get the following error:
Traceback (most recent call last):
File "manage.py", line 22, in
execute_from_command_line(sys.argv)
File "/usr/local/lib/python3.8/site-packages/django/core/management/init.py", line 419, in execute_from_command_line
utility.execute()
File "/usr/local/lib/python3.8/site-packages/django/core/management/init.py", line 413, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/local/lib/python3.8/site-packages/django/core/management/base.py", line 354, in run_from_argv
self.execute(*args, **cmd_options)
File "/usr/local/lib/python3.8/site-packages/django/core/management/base.py", line 398, in execute
output = self.handle(*args, **options)
File "/code/parsing/management/commands/makeschool.py", line 107, in handle
with open(active_schools_path, "r") as file:
FileNotFoundError: [Errno 2] No such file or directory: '/code/parsing/schools/auth/active'
I tried creating the directory it states but then it returns that it already exists. What am I missing here?
How can we reproduce the problem?
makeschool command
Expected Behavior
Creation of the new school's directory
OS Version
Windows
Which browsers are you seeing the problem on?
Chrome
Additional Information
No response
Code of Conduct
Contact Details
No response
Describe the Bug
I want to add a new school but when I run the command:
python manage.py makeschool --name "Aristotle University of Thessaloniki" --code "auth" --regex "([A-Z]{2,8}\s\d{3})"
I get the following error:
Traceback (most recent call last):
File "manage.py", line 22, in
execute_from_command_line(sys.argv)
File "/usr/local/lib/python3.8/site-packages/django/core/management/init.py", line 419, in execute_from_command_line
utility.execute()
File "/usr/local/lib/python3.8/site-packages/django/core/management/init.py", line 413, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/local/lib/python3.8/site-packages/django/core/management/base.py", line 354, in run_from_argv
self.execute(*args, **cmd_options)
File "/usr/local/lib/python3.8/site-packages/django/core/management/base.py", line 398, in execute
output = self.handle(*args, **options)
File "/code/parsing/management/commands/makeschool.py", line 107, in handle
with open(active_schools_path, "r") as file:
FileNotFoundError: [Errno 2] No such file or directory: '/code/parsing/schools/auth/active'
I tried creating the directory it states but then it returns that it already exists. What am I missing here?
How can we reproduce the problem?
makeschool command
Expected Behavior
Creation of the new school's directory
OS Version
Windows
Which browsers are you seeing the problem on?
Chrome
Additional Information
No response
Code of Conduct