mx.py uses os.symlink, which is not supported on Windows
@ansalond đang làm issue này rồi.
Từ ngày 9/1/2019.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
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.
- Ngôn ngữ chính
- Python
- Star
- 205
- Fork
- 131
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của graalvm/mx
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 58/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 45/100
-
Error while doing maven-installCó thể làm lại được Pull request cho issue này đã bị đóng mà không được merge. Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 30/100
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
-
Use --depth 1 on "git clone"sĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 45/100
Issue tương tự
-
[Suggestion]: Build a Zero-Dependency Python Supply-Chain, SBOM, & MCP Security Verifier CLIĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
-
pr-babysit: the validator reports only the hex part of the harvest fingerprint, so a launch stops review-report-unusableCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mởfollow-up
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Web download page shows a file as Completed when its download from S3 fails with an error responseĐang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 77/100
awslabs/visual-asset-management-system#2097 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
compiler-explorer/compiler-explorer#9738 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
openfoodfacts/openfoodfacts-python#573 ·
Maintainer thường phản hồi trong vòng 2 ngày