miracle-qsh / OnlineJudge

一款基于 Windows 的 OnlinJudge 系统(SSM框架 + Python)
7 stars 0 forks source link

运行答题提交显示500 #2

Open LilyJay6 opened 4 years ago

LilyJay6 commented 4 years ago

请问显示500是怎么回事呢,一提交就报错

miracle-qsh commented 4 years ago

请问显示500是怎么回事呢,一提交就报错

您可以先本地测试一下评测程序(judger.py)看一下是否出现了问题,如果无误,则有可能是评测程序的路径没有改过来,相关代码在src/main/java/com/newoj/controller/JudgerController.java下,您会从中发现多处类似c:\c:\OnlineJudge\.....这样的绝对路径,将其改变为您的计算机中对应的绝对路径即可(因为之前只是为了应付学校作业,所以这里写成绝对路径之后没有改成相对路径) 如果仍然不能解决问题,欢迎您再来call我!

LilyJay6 commented 4 years ago

路径我已经都改了,因为没有用过PYthon,不知道评测程序有没有错误,可以留下你的VX交流下吗

------------------ 原始邮件 ------------------ 发件人: "Shiheng Qi"<notifications@github.com>; 发送时间: 2020年3月8日(星期天) 晚上10:03 收件人: "miracle-qsh/OnlineJudge"<OnlineJudge@noreply.github.com>; 抄送: "李立杰"<975832315@qq.com>;"Author"<author@noreply.github.com>; 主题: Re: [miracle-qsh/OnlineJudge] 运行答题提交显示500 (#2)

请问显示500是怎么回事呢,一提交就报错

您可以先本地测试一下评测程序(judger.py)看一下是否出现了问题,如果无误,则有可能是评测程序的路径没有改过来,相关代码在src/main/java/com/newoj/controller/JudgerController.java下,您会从中发现多处类似c:\c:\OnlineJudge.....这样的绝对路径,将其改变为您的计算机中对应的绝对路径即可(因为之前只是为了应付学校作业,所以这里写成绝对路径之后没有改成相对路径) 如果仍然不能解决问题,欢迎您再来call我!

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

LilyJay6 commented 4 years ago

显示的状态是这样子的

------------------ 原始邮件 ------------------ 发件人: "Shiheng Qi"<notifications@github.com>; 发送时间: 2020年3月8日(星期天) 晚上10:03 收件人: "miracle-qsh/OnlineJudge"<OnlineJudge@noreply.github.com>; 抄送: "LilyJay"<975832315@qq.com>;"Author"<author@noreply.github.com>; 主题: Re: [miracle-qsh/OnlineJudge] 运行答题提交显示500 (#2)

请问显示500是怎么回事呢,一提交就报错

您可以先本地测试一下评测程序(judger.py)看一下是否出现了问题,如果无误,则有可能是评测程序的路径没有改过来,相关代码在src/main/java/com/newoj/controller/JudgerController.java下,您会从中发现多处类似c:\c:\OnlineJudge.....这样的绝对路径,将其改变为您的计算机中对应的绝对路径即可(因为之前只是为了应付学校作业,所以这里写成绝对路径之后没有改成相对路径) 如果仍然不能解决问题,欢迎您再来call我!

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.