Giter Club home page Giter Club logo

faq's People

Contributors

aannaazh avatar berrysoft avatar circuitcoder avatar dachengx avatar dubaib avatar erelihy avatar fei127 avatar harry-chen avatar heroxbd avatar jiegec avatar joanna-zhang-03 avatar laplacianspell avatar mhliu0001 avatar tuzhibaevsky avatar yfzhao20 avatar yihui-liu avatar zenithalhourlyrate avatar zhangshi20 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

faq's Issues

部分作业 grade.py 在代码超时后的报错信息有误

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

求助:讲台上的计算机经常断网

  1. 试着看了网络配置,断网时 IP 地址还在
  2. 断网时无法访问 auth4.tsinghua.edu.cn
  3. 一般来说,五分钟之内会恢复

请问我应该排查其它什么地方?

求助:ssh 连接出错

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")

关于Make:多个文件由同一个脚本生成产生的困难

举个栗子: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的依赖关系和对应的代码?

Debian Buster Vitables 无效

出错信息如下:

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.

wsl2 在使用 X11 时出错

出错信息如下:
已开启 VcXsrv,并配置环境变量 DISPLAY=:0

xeyes
Error: Can't open display: :0

安装 rhdf5

  1. 如果可以成功运行 apt install r-bioc-rhdf5 ,即可正常使用

  2. 若依赖关系过于复杂,则可按以下方案手动安装:

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)

求助:grover算法作业的检测程序grade.py出现问题

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再重新拷贝代码运行依然报错
直接运行程序时存在有效输出

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.