physics-data / faq Goto Github PK
View Code? Open in Web Editor NEW实验物理的大数据方法 FAQ
实验物理的大数据方法 FAQ
以 nn
这次作业为例,若我将 nn.py
的内容改为
import time
time.sleep(2)
并运行 grade.py
,期望得到的报错信息是
Testcase data/in_1.hdf5: Time limit exceeded
Testcase data/in_2.hdf5: Time limit exceeded
...
Total Points: 0/100
实际得到的报错信息是
Testcase data/in_1.hdf5: No output file found
Testcase data/in_2.hdf5: No output file found
...
Total Points: 0/100
请问我应该排查其它什么地方?
我本地使用的系统是MacOS, 在本地测试和在git上测试唯一不同的是把所有的wc, cut命令换成了gwc, gcut,还有把sed -i换成了gsed
。在本地使用grade.sh顺利通过了测试,但在git上auto-grade时在task7failed了。
logs_16.zip
这是我在git上测试时的log。
git clone 时报错:
kex_exchange_identification: Connection closed by remote host
fatal: Could not read from remote repository.
网络连接正常,已经连接了sslvpn,之前提交和下载都正常。
.ssh/config 已修改过。
运行 ssh -vT [email protected] 显示:
lizehua@DESKTOP-ULPQBSC:~$ ssh -vT [email protected]
OpenSSH_8.2p1 Ubuntu-4ubuntu0.1, OpenSSL 1.1.1f 31 Mar 2020
debug1: Reading configuration data /home/lizehua/.ssh/config
debug1: /home/lizehua/.ssh/config line 1: Applying options for github.com
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: include /etc/ssh/ssh_config.d/*.conf matched no files
debug1: /etc/ssh/ssh_config line 21: Applying options for *
debug1: Connecting to 166.111.32.43 [166.111.32.43] port 47175.
debug1: Connection established.
debug1: identity file /home/lizehua/.ssh/id_rsa type 0
debug1: identity file /home/lizehua/.ssh/id_rsa-cert type -1
debug1: identity file /home/lizehua/.ssh/id_dsa type -1
debug1: identity file /home/lizehua/.ssh/id_dsa-cert type -1
debug1: identity file /home/lizehua/.ssh/id_ecdsa type -1
debug1: identity file /home/lizehua/.ssh/id_ecdsa-cert type -1
debug1: identity file /home/lizehua/.ssh/id_ecdsa_sk type -1
debug1: identity file /home/lizehua/.ssh/id_ecdsa_sk-cert type -1
debug1: identity file /home/lizehua/.ssh/id_ed25519 type -1
debug1: identity file /home/lizehua/.ssh/id_ed25519-cert type -1
debug1: identity file /home/lizehua/.ssh/id_ed25519_sk type -1
debug1: identity file /home/lizehua/.ssh/id_ed25519_sk-cert type -1
debug1: identity file /home/lizehua/.ssh/id_xmss type -1
debug1: identity file /home/lizehua/.ssh/id_xmss-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_8.2p1 Ubuntu-4ubuntu0.1
kex_exchange_identification: Connection closed by remote host
连接数据库出现类似
Error : object 'xxx' is not exported by 'namespace:xxx'
的问题,我的解决方法是在R里执行
install.packages("tidyverse")
举个栗子:a文件同时依赖于b,c,d三个文件;程序在设计中决定了:b,c,d是被同一个脚本script.sh生成的。如果改动了bcd三个中的任何一个,我们希望改动能够传递给a,因此a的依赖必须写为
a : b c d
这时我们不希望重复运行script.sh,因此在b,c,d三者的依赖关系下的代码中,script.sh只能出现一次。这时应该如何书写b,c,d的依赖关系和对应的代码?
出错信息如下:
hz.h5 是一个正常的文件
vitables hz.h5
Creating the Query results file...
Traceback (most recent call last):
File "/usr/share/vitables/vitables/h5db/dbDoc.py", line 115, in openH5File
h5file = tables.openFile(self.filepath, self.mode)
AttributeError: 'module' object has no attribute 'openFile'
Please, if you think it is a bug, report it to developers.
File creation failed due to unknown reasons!
Please, have a look to the last error displayed in the logger. If you think it's a bug, please report it to developers.
出错信息如下:
已开启 VcXsrv,并配置环境变量 DISPLAY=:0
xeyes
Error: Can't open display: :0
如果可以成功运行 apt install r-bioc-rhdf5
,即可正常使用
若依赖关系过于复杂,则可按以下方案手动安装:
rhdf5
的依赖较多,需从 R 内部安装。
在 Bioconductor 仓库中,需要使用 r-cran-biocmanager
来访问。
apt install r-cran-biocmanager
或者从 R 中安装
> install.packages("BiocManager")
然后在 R 的命令环境中执行
> require(BiocManager)
> BiocManager::install("rhdf5")
这将现场编译一个 rhdf5
的工具库,如果编译器不存在,可以安装
apt install build-essential
来解决
确认安装成功,可用
> require(rhdf5)
1、在终端中cd到grover-sunjy18
2、运行 python3 grade.py
3、报错
Testcase data/oracle_1.py: expect '2', but get ''
Testcase data/oracle_2.py: expect '15', but get ''
Testcase data/oracle_3.py: expect '63', but get ''
Testcase data/oracle_4.py: expect '32', but get ''
Testcase data/oracle_5.py: expect '0', but get ''
Testcase data/oracle_6.py: expect '63', but get ''
Testcase data/oracle_7.py: expect '144', but get ''
Testcase data/oracle_8.py: expect '128', but get ''
Total Points: 0/100
Traceback (most recent call last):
File "grade.py", line 87, in
shutil.rmtree('pycache')
File "/home/sjy/miniconda3/lib/python3.8/shutil.py", line 706, in rmtree
onerror(os.lstat, path, sys.exc_info())
File "/home/sjy/miniconda3/lib/python3.8/shutil.py", line 704, in rmtree
orig_st = os.lstat(path)
FileNotFoundError: [Errno 2] No such file or directory: 'pycache'
备注:
我的程序在别的同学计算机上运行没有出错
我自己重新克隆grover再重新拷贝代码运行依然报错
直接运行程序时存在有效输出
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.