Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

new_school #1060

Open
1 task done
XrisafisGiou opened this issue Dec 4, 2023 · 0 comments
Open
1 task done

new_school #1060

XrisafisGiou opened this issue Dec 4, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@XrisafisGiou
Copy link

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

  • I agree to follow Semester.ly's Code of Conduct
@XrisafisGiou XrisafisGiou added the bug Something isn't working label Dec 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant