mx.py uses os.symlink, which is not supported on Windows
@ansalond 已经在做这个了。
开始于 2019年1月9日。
评估
这个 Issue 还没有评估数据。
描述
For instance, when running mx build in the graal/vm suite (and after working around https://github.com/oracle/graal/issues/795) I get the error:
Traceback (most recent call last):
File "J:\Projects\mx\mx.py", line 18829, in <module>
main()
File "J:\Projects\mx\mx.py", line 18810, in main
retcode = c(command_args)
File "J:\Projects\mx\mx_commands.py", line 132, in __call__
return self.command_function(*args, **kwargs)
File "J:\Projects\mx\mx.py", line 12626, in build
t.execute()
File "J:\Projects\mx\mx.py", line 905, in execute
self.build()
File "J:\Projects\graal\vm\mx.vm\mx_vm.py", line 437, in build
super(GraalVmLayoutDistributionTask, self).build()
File "J:\Projects\mx\mx.py", line 1897, in build
self.subject.make_archive()
File "J:\Projects\mx\mx.py", line 2561, in make_archive
self._install_source(source, output, destination, arc)
File "J:\Projects\mx\mx.py", line 2514, in _install_source
add_symlink(destination, link_target, absolute_destination, clean_destination)
File "J:\Projects\mx\mx.py", line 2317, in add_symlink
os.symlink(src, abs_dest)
AttributeError: 'module' object has no attribute 'symlink'
java.net.SocketException: Connection reset
at java.net.SocketInputStream.read(SocketInputStream.java:210)
at java.net.SocketInputStream.read(SocketInputStream.java:141)
at sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:284)
at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:326)
at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:178)
at java.io.InputStreamReader.read(InputStreamReader.java:184)
at java.io.BufferedReader.fill(BufferedReader.java:161)
at java.io.BufferedReader.readLine(BufferedReader.java:324)
at java.io.BufferedReader.readLine(BufferedReader.java:389)
at com.oracle.mxtool.compilerserver.CompilerDaemon$Connection.run(CompilerDaemon.java:137)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Which is originating from mx.py.
The problem seems to be that os.symlink is not supported on Windows, at least not before python 3.2 it seems.
Stack Overflow offers some workarounds [1], which I've tested and they seem to work, but later cause problems when trying to use os.unlink on the created links.
- 主要语言
- Python
- 星标
- 205
- 派生
- 131
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
graalvm/mx 的其他 Issue
-
难度 3/5 1-2 天 新手友好度 58/100
-
难度 2/5 1-3 小时 新手友好度 45/100
-
Error while doing maven-install可能重新可做 关联的 PR 已关闭且未合并。 未关闭
难度 3/5 1-2 天 新手友好度 30/100
-
难度 4/5 3-5 天 新手友好度 25/100
-
难度 2/5 1-3 小时 新手友好度 45/100
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 72/100
-
难度 2/5 1-3 小时 新手友好度 72/100
pdm-project/pdm#4042 ·
维护者通常 1 天内回复
-
change relation
难度 1/5 1 小时以内 新手友好度 76/100
globalwordnet/english-wordnet#1467 ·
维护者通常 1 天内回复
-
pr-babysit: the validator reports only the hex part of the harvest fingerprint, so a launch stops review-report-unusable可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭follow-up
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 88/100
521xueweihan/HelloGitHub#4618 ·