LorenEteval / Furious

A GUI proxy client based on PySide6. Support Xray-core & hysteria
GNU General Public License v3.0
968 stars 86 forks source link

Xray-core Build error #122

Closed qilegeguai-rgb closed 4 days ago

qilegeguai-rgb commented 1 week ago

go version go1.22.8 windows/amd64 g++ (GCC) 11.5.0 cmake version 3.31.0 windows 10 企业版 LTSC python3.11.9 64bit

(.venv) PS F:\Furious> pip install Xray-core Looking in indexes: http://mirrors.aliyun.com/pypi/simple Collecting Xray-core Using cached http://mirrors.aliyun.com/pypi/packages/a4/29/4d2ffc691fa50404cdb85fb64c31d43f7261ed5dacc032b8a5ab3cc35785/Xray-core-1.8.24.tar.gz (855 kB) Preparing metadata (setup.py) ... done Building wheels for collected packages: Xray-core Building wheel for Xray-core (setup.py) ... error error: subprocess-exited-with-error

× python setup.py bdist_wheel did not run successfully. │ exit code: 1 ╰─> [66 lines of output] running bdist_wheel running build running build_py creating build\lib\xray copying xray__init__.py -> build\lib\xray running egg_info writing Xray_core.egg-info\PKG-INFO writing dependency_links to Xray_core.egg-info\dependency_links.txt writing top-level names to Xray_core.egg-info\top_level.txt reading manifest file 'Xray_core.egg-info\SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no files found matching 'xray.*' under directory 'xray' adding license file 'LICENSE' writing manifest file 'Xray_core.egg-info\SOURCES.txt' F:\Furious.venv\Lib\site-packages\setuptools_distutils\cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. !!

          ********************************************************************************
          Please avoid running ``setup.py`` directly.
          Instead, use pypa/build, pypa/installer or other
          standards-based tools.

          See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.
          ********************************************************************************

  !!
    self.initialize_options()
  installing to build\bdist.win-amd64\wheel
  running install
  runtime/cgo: C:\Program Files\Go\pkg\tool\windows_amd64\cgo.exe: exit status 2
  Traceback (most recent call last):
    File "<string>", line 2, in <module>
    File "<pip-setuptools-caller>", line 34, in <module>
    File "C:\Users\qi\AppData\Local\Temp\pip-install-tze2dpj9\xray-core_f927519c2e954f3d89c77f0e76cccf9b\setup.py", line 82, in <module>
      setup(
    File "F:\Furious\.venv\Lib\site-packages\setuptools\__init__.py", line 117, in setup
      return distutils.core.setup(**attrs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "F:\Furious\.venv\Lib\site-packages\setuptools\_distutils\core.py", line 183, in setup
      return run_commands(dist)
             ^^^^^^^^^^^^^^^^^^
    File "F:\Furious\.venv\Lib\site-packages\setuptools\_distutils\core.py", line 199, in run_commands
      dist.run_commands()
    File "F:\Furious\.venv\Lib\site-packages\setuptools\_distutils\dist.py", line 954, in run_commands
      self.run_command(cmd)
    File "F:\Furious\.venv\Lib\site-packages\setuptools\dist.py", line 994, in run_command
      super().run_command(command)
    File "F:\Furious\.venv\Lib\site-packages\setuptools\_distutils\dist.py", line 973, in run_command
      cmd_obj.run()
    File "F:\Furious\.venv\Lib\site-packages\setuptools\command\bdist_wheel.py", line 418, in run
      self.run_command("install")
    File "F:\Furious\.venv\Lib\site-packages\setuptools\_distutils\cmd.py", line 316, in run_command
      self.distribution.run_command(command)
    File "F:\Furious\.venv\Lib\site-packages\setuptools\dist.py", line 994, in run_command
      super().run_command(command)
    File "F:\Furious\.venv\Lib\site-packages\setuptools\_distutils\dist.py", line 973, in run_command
      cmd_obj.run()
    File "C:\Users\qi\AppData\Local\Temp\pip-install-tze2dpj9\xray-core_f927519c2e954f3d89c77f0e76cccf9b\setup.py", line 72, in run
      buildXrayCore()
    File "C:\Users\qi\AppData\Local\Temp\pip-install-tze2dpj9\xray-core_f927519c2e954f3d89c77f0e76cccf9b\setup.py", line 27, in buildXrayCore
      runCommand(
    File "C:\Users\qi\AppData\Local\Temp\pip-install-tze2dpj9\xray-core_f927519c2e954f3d89c77f0e76cccf9b\setup.py", line 21, in runCommand
      subprocess.run(command, check=True)
    File "D:\Program Files\Python3119-64\Lib\subprocess.py", line 571, in run
      raise CalledProcessError(retcode, process.args,
  subprocess.CalledProcessError: Command '['go', 'build', '-C', 'xray-go', '-o', 'C:\\Users\\qi\\AppData\\Local\\Temp\\pip-install-tze2dpj9\\x

ray-core_f927519c2e954f3d89c77f0e76cccf9b\gobuild\xray.lib', '-buildmode=c-archive', '-trimpath', '-ldflags', '-s -w -buildid=', './main']' retu rned non-zero exit status 1. [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for Xray-core Running setup.py clean for Xray-core Failed to build Xray-core ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (Xray-core)