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

Missing required files causes File Not Found error #11

Open
mariobadr opened this issue Oct 4, 2021 · 1 comment
Open

Missing required files causes File Not Found error #11

mariobadr opened this issue Oct 4, 2021 · 1 comment

Comments

@mariobadr
Copy link

When performing a 'download_submission_files' action with the default file glob, students who are missing a required file cause a file not found error:

Traceback (most recent call last):
  File "/home/mbadr/.pyenv/versions/3.9.6/bin/markusmoss", line 33, in <module>
    sys.exit(load_entry_point('markusmoss==0.0.1', 'console_scripts', 'markusmoss')())
  File "/home/mbadr/.pyenv/versions/3.9.6/lib/python3.9/site-packages/markusmoss/cli.py", line 62, in cli
    MarkusMoss(**kwargs).run(actions=actions)
  File "/home/mbadr/.pyenv/versions/3.9.6/lib/python3.9/site-packages/markusmoss/markusmoss.py", line 77, in run
    getattr(self, action)()
  File "/home/mbadr/.pyenv/versions/3.9.6/lib/python3.9/site-packages/markusmoss/markusmoss.py", line 121, in run_moss
    self.moss.addFile(filename, os.path.relpath(filename, self.workdir))
  File "/home/mbadr/.pyenv/versions/3.9.6/lib/python3.9/site-packages/mosspy/moss.py", line 82, in addFile
    raise Exception("addFile({}) => File Not Found".format(file_path))
Exception: addFile(/home/mbadr/anita/110-21f/academic-offences/a1/moss/submission_files/STUDENT/a1.pdf) => File Not Found

My configurations (not including priate ones) are:

language="python"
markus_assignment='A1'
actions=['download_submission_files','download_starter_files','run_moss','download_moss_report']

The desired behaviour, in my opinion, would be to simply download all the files that were submitted, regardless of requirements.

@mariobadr
Copy link
Author

Sorry, I had the action wrong. This occurs for the 'run_moss' action. I am not sure what the desired behaviour here would be, but ideally not an error?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant