Comments (18)
thanks a lot @soachishti it worked.....
from autograder.
Hi @DipeshSharma25, Can you share more details of the error or stack trace. It would easier to debug that way.
from autograder.
](url)
from autograder.
these errors I tried to debug it. test-results.log file is empty always
from autograder.
from autograder.
TODO: Disable networking for submission file
# Source: https://gist.github.com/hangtwenty/9200597e3be274c79896
# Source: https://github.com/miketheman/pytest-socket
#import socket
#def guard(*args, **kwargs):
# raise Exception("I told you not to use the Internet!")
#socket.socket = guard
#os.nice()
#os.setuid()
in this section what to do I didn't get exactly. is this a cause of the error
from autograder.
Are you getting any thing in this directory?
from autograder.
TODO: Disable networking for submission file
# Source: https://gist.github.com/hangtwenty/9200597e3be274c79896 # Source: https://github.com/miketheman/pytest-socket #import socket #def guard(*args, **kwargs): # raise Exception("I told you not to use the Internet!") #socket.socket = guard #os.nice() #os.setuid()
in this section what to do I didn't get exactly. is this a cause of the error
Ignore it. This is just a commented code.
from autograder.
no, I am not getting anything in that dictionary. if i add a print statement after that import pytest statement then that print is available in test-result.log file
from autograder.
I am expecting assignment's zip file content there, on which pytest is executed. As this folder is empty pytest isn't generated any result.
Can you please confirm that view.py [L327] is unzipping assignment's content in the directory properly.
Line 327 in 40767cf
from autograder.
yes it is there
from autograder.
Is pytest working in that folder?
from autograder.
no that is a problem pytest is not working in that problem
from autograder.
i tried to change a little code in run_studen_tests() [
then pytest worked in that folder but giving an error after testing database access is not allowed
](url)
from autograder.
but in run_test() pytest is not working
from autograder.
Process Process-1: this is main error as per my debugging @soachishti
from autograder.
This error is showing different variant of pytest. Please remove "pytest-django" and install "pytest", and try again with that.
from autograder.
okh
from autograder.
Related Issues (20)
- Getting Started HOT 1
- Missing requirements
- Remove student form "get_student_latest_submissions" tuple HOT 1
- Resent Email Verification for Sign Up and Reset Password HOT 1
- Error in Moss submission HOT 2
- Assignments for different course can be submitted HOT 1
- Bug in password reset page HOT 2
- Assignment Reports HOT 10
- Course Student List View and Unenroll Student HOT 1
- View Assignment for Instructor HOT 2
- MOSS report doesn't seem to be working HOT 2
- Docker version of AutoGrader HOT 5
- Django-guardian HOT 2
- View assignment file on assignment_report page broken HOT 4
- Course student stats HOT 8
- Module missing in requirements.txt HOT 2
- Wiki Page Updates
- Autograder CL Utils
- Show late days details to students
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from autograder.