PS E:\test> python -V
Python 3.11.4
PS E:\test> ls -r
目录: E:\test
Mode LastWriteTime Length Name
---- ------------- ------ ----
d----- 2024/3/30 18:23 patches
-a---- 2023/4/24 0:31 60641 GTNH-Java17.json
-a---- 2023/4/24 0:31 7527 json转换脚本.py
-a---- 2023/4/24 0:34 806 使用说明.txt
目录: E:\test\patches
Mode LastWriteTime Length Name
---- ------------- ------ ----
-a---- 2024/3/18 13:47 1402 me.eigenraven.lwjgl3ify.forgepatches.json
-a---- 2024/3/18 13:47 17100 net.minecraft.json
-a---- 2024/3/18 13:47 2305 net.minecraftforge.json
-a---- 2024/3/18 13:47 40014 org.lwjgl3.json
PS E:\test> python .\json转换脚本.py
looking... 1 lwjgl3ify-1.5.7-forgePatches.jar
looking... 2 forge-1.7.10-10.13.4.1614-1.7.10-universal.jar
looking... 3 akka-actor_2.11-2.3.3.jar
looking... 4 config-1.2.1.jar
looking... 5 scala-actors-migration_2.11-1.1.0.jar
looking... 6 scala-compiler-2.11.1.jar
looking... 7 scala-continuations-library_2.11-1.0.2.jar
looking... 8 scala-continuations-plugin_2.11.1-1.0.2.jar
looking... 9 scala-library-2.11.1.jar
looking... 10 scala-parser-combinators_2.11-1.0.1.jar
looking... 11 scala-reflect-2.11.1.jar
looking... 12 scala-swing_2.11-1.0.1.jar
looking... 13 scala-xml_2.11-1.0.2.jar
looking... 14 lzma-0.0.1.jarTraceback (most recent call last):
File "E:\test\json转换脚本.py", line 234, in <module>
addLib('patches\\net.minecraftforge.json')
File "E:\test\json转换脚本.py", line 210, in addLib
req = getLibJarFile(
^^^^^^^^^^^^^^
File "E:\test\json转换脚本.py", line 144, in getLibJarFile
req = requests.get(url)
^^^^^^^^^^^^^^^^^
File "F:\-ENV\Python311\Lib\site-packages\requests\api.py", line 73, in get
return request("get", url, params=params, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "F:\-ENV\Python311\Lib\site-packages\requests\api.py", line 59, in request
return session.request(method=method, url=url, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "F:\-ENV\Python311\Lib\site-packages\requests\sessions.py", line 575, in request
prep = self.prepare_request(req)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "F:\-ENV\Python311\Lib\site-packages\requests\sessions.py", line 486, in prepare_request
p.prepare(
File "F:\-ENV\Python311\Lib\site-packages\requests\models.py", line 368, in prepare
self.prepare_url(url, params)
File "F:\-ENV\Python311\Lib\site-packages\requests\models.py", line 439, in prepare_url
raise MissingSchema(
requests.exceptions.MissingSchema: Invalid URL '': No scheme supplied. Perhaps you meant https://?