Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kali new-setup.sh c++ compliler error #81

Closed
213374um8 opened this issue Oct 11, 2022 · 3 comments
Closed

Kali new-setup.sh c++ compliler error #81

213374um8 opened this issue Oct 11, 2022 · 3 comments

Comments

@213374um8
Copy link

Hi. New Kali build.
Followed the instructions line by line.
Tried on multiple flavors of Linux and receiving the same error. I think it's related to compiler errors. (also gives me a C: path, not sure if that's coming from Wine or something else that's breaking it)

Here's the error -

`Installing build dependencies ... done
Getting requirements to build wheel ... error
ERROR: Command errored out with exit status 1:
command: 'C:\users\root\AppData\Local\Programs\Python\Python38-32\python.exe' 'C:\users\root\AppData\Local\Programs\Python\Python38-32\lib\site-packages
pip_vendor\pep517_in_process.py' get_requires_for_build_wheel 'C:\users\root\Temp\tmpd78p6_qq'
cwd: C:\users\root\Temp\pip-install-17b1_o5h\scipy
Complete output (49 lines):
The Meson build system
Version: 0.63.3
Source dir: C:\users\root\Temp\pip-install-17b1_o5h\scipy
Build dir: C:\users\root\Temp\pip-install-17b1_o5h\scipy.mesonpy-xpthl7yp\build
Build type: native build
Project name: SciPy
Project version: 1.9.2
WARNING: Failed to activate VS environment: Could not find C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe

....\meson.build:1:0: ERROR: Unknown compiler(s): [['icl'], ['cl'], ['cc'], ['gcc'], ['clang'], ['clang-cl'], ['pgcc']]
The following exception(s) were encountered:
Running icl "" gave "[WinError 2] File not found"
Running cl /? gave "[WinError 2] File not found"
Running cc --version gave "[WinError 2] File not found"
Running gcc --version gave "[WinError 2] File not found"
Running clang --version gave "[WinError 2] File not found"
Running clang-cl /? gave "[WinError 2] File not found"
Running pgcc --version gave "[WinError 2] File not found"

A full log can be found at C:\users\root\Temp\pip-install-17b1_o5h\scipy.mesonpy-xpthl7yp\build\meson-logs\meson-log.txt

  • meson setup --native-file=C:\users\root\Temp\pip-install-17b1_o5h\scipy.mesonpy-native-file.ini -Ddebug=false -Doptimization=2 --prefix=C:\users\root\A
    ppData\Local\Programs\Python\Python38-32 C:\users\root\Temp\pip-install-17b1_o5h\scipy C:\users\root\Temp\pip-install-17b1_o5h\scipy.mesonpy-xpthl7yp\build
    Traceback (most recent call last):
    File "C:\users\root\AppData\Local\Programs\Python\Python38-32\lib\site-packages\pip_vendor\pep517_in_process.py", line 280, in
    main()
    File "C:\users\root\AppData\Local\Programs\Python\Python38-32\lib\site-packages\pip_vendor\pep517_in_process.py", line 263, in main
    json_out['return_val'] = hook(**hook_input['kwargs'])
    File "C:\users\root\AppData\Local\Programs\Python\Python38-32\lib\site-packages\pip_vendor\pep517_in_process.py", line 114, in get_requires_for_build_
    wheel
    return hook(config_settings)
    File "C:\users\root\Temp\pip-build-env-ixhw01pn\overlay\Lib\site-packages\mesonpy_init_.py", line 969, in get_requires_for_build_wheel
    with project(config_settings) as project:
    File "C:\users\root\AppData\Local\Programs\Python\Python38-32\lib\contextlib.py", line 113, in enter
    return next(self.gen)
    File "C:\users\root\Temp\pip-build-env-ixhw01pn\overlay\Lib\site-packages\mesonpy_init
    .py", line 948, in project
    with Project.with_temp_working_dir(
    File "C:\users\root\AppData\Local\Programs\Python\Python38-32\lib\contextlib.py", line 113, in enter
    return next(self.gen)
    File "C:\users\root\Temp\pip-build-env-ixhw01pn\overlay\Lib\site-packages\mesonpy_init
    .py", line 777, in with_temp_working_dir
    yield cls(source_dir, tmpdir, build_dir)
    File "C:\users\root\Temp\pip-build-env-ixhw01pn\overlay\Lib\site-packages\mesonpy_init_.py", line 682, in init
    self.configure(reconfigure=bool(build_dir) and not native_file_mismatch)
    File "C:\users\root\Temp\pip-build-env-ixhw01pn\overlay\Lib\site-packages\mesonpy_init
    .py", line 713, in _configure
    self.meson(
    File "C:\users\root\Temp\pip-build-env-ixhw01pn\overlay\Lib\site-packages\mesonpy_init
    .py", line 696, in _meson
    return self.proc('meson', *args)
    File "C:\users\root\Temp\pip-build-env-ixhw01pn\overlay\Lib\site-packages\mesonpy_init
    .py", line 691, in _proc
    subprocess.check_call(list(args))
    File "C:\users\root\AppData\Local\Programs\Python\Python38-32\lib\subprocess.py", line 364, in check_call
    raise CalledProcessError(retcode, cmd)
    subprocess.CalledProcessError: Command '['meson', 'setup', '--native-file=C:\users\root\Temp\pip-install-17b1_o5h\scipy\.mesonpy-native-file.ini', '
    -Ddebug=false', '-Doptimization=2', '--prefix=C:\users\root\AppData\Local\Programs\Python\Python38-32', 'C:\users\root\Temp\pip-install-17b1_o5h
    \scipy', 'C:\users\root\Temp\pip-install-17b1_o5h\scipy\.mesonpy-xpthl7yp\build']' returned non-zero exit status 1.

ERROR: Command errored out with exit status 1: 'C:\users\root\AppData\Local\Programs\Python\Python38-32\python.exe' 'C:\users\root\AppData\Local\Programs\Py
thon\Python38-32\lib\site-packages\pip_vendor\pep517_in_process.py' get_requires_for_build_wheel 'C:\users\root\Temp\tmpd78p6_qq' Check the logs for full
command output.
WARNING: You are using pip version 20.2.3; however, version 22.2.2 is available.
You should consider upgrading via the 'C:\users\root\AppData\Local\Programs\Python\Python38-32\python.exe -m pip install --upgrade pip' command.
Done `

@C1oover
Copy link

C1oover commented Oct 23, 2022

Same here, also had the problem on Ubuntu server and Kali VM.
Have you found the solution?

@samn47
Copy link

samn47 commented Oct 27, 2022

i got the same problem on windows. have you found any solutions?

@MyLittleRunaway
Copy link

@C1oover and @samn47, downgrade the SciPy version in the requirements.txt file.

Also note - Disctopia is now flagged by pretty much every AV out there (which is the part you're getting stuck on... making the .exe)
It's also no longer supported by the dev, so you're better off just looking at the main section of code - seeing what makes it tick and writing your own.

@3ct0s 3ct0s closed this as completed Dec 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants