JiveyGuy / Meteorite_Data_Mine

For NMSU CS 488
The Unlicense
2 stars 0 forks source link

Installing dependencies breaks on Linux #1

Closed RustyRaptor closed 1 year ago

RustyRaptor commented 1 year ago

I realize its only been tested on windows. I'm just submitting this for documentation reasons.

When installing the dependencies using pip on linux the project breaks. Here is the output.


2023-09-13 13:02:12.584 [info]   Downloading pytz-2023.3-py2.py3-none-any.whl (502 kB)

2023-09-13 13:02:12.656 [info]      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 502.3/502.3 kB 7.4 MB/s eta 0:00:00
2023-09-13 13:02:12.657 [info] 

2023-09-13 13:02:12.824 [info] Collecting pyvista==0.41.1 (from -r /home/ugrad10/zarafat/src/Metorite_Data_Mine/requirements_widnows11.txt (line 48))

2023-09-13 13:02:12.824 [info]   Obtaining dependency information for pyvista==0.41.1 from https://files.pythonhosted.org/packages/70/3f/88bae63eee660f28d5f648d3026fb8a9b125c067cdd956c57bebfa67de91/pyvista-0.41.1-py3-none-any.whl.metadata

2023-09-13 13:02:12.844 [info]   Downloading pyvista-0.41.1-py3-none-any.whl.metadata (13 kB)

2023-09-13 13:02:12.951 [info] ERROR: Ignored the following versions that require a different python version: 1.21.2 Requires-Python >=3.7,<3.11; 1.21.3 Requires-Python >=3.7,<3.11; 1.21.4 Requires-Python >=3.7,<3.11; 1.21.5 Requires-Python >=3.7,<3.11; 1.21.6 Requires-Python >=3.7,<3.11

2023-09-13 13:02:12.952 [info] ERROR: Could not find a version that satisfies the requirement pywin32==306 (from versions: none)

2023-09-13 13:02:12.952 [info] ERROR: No matching distribution found for pywin32==306

2023-09-13 13:02:13.151 [info] Traceback (most recent call last):
  File "/home/ugrad10/zarafat/.vscode-server/extensions/ms-python.python-2023.16.0/pythonFiles/create_venv.py", line 77, in run_process

2023-09-13 13:02:13.151 [info]     subprocess.run(args, cwd=os.getcwd(), check=True)
  File "/usr/lib64/python3.11/subprocess.py", line 571, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['/home/ugrad10/zarafat/src/Metorite_Data_Mine/.venv/bin/python', '-m', 'pip', 'install', '-r', '/home/ugrad10/zarafat/src/Metorite_Data_Mine/requirements_widnows11.txt']' returned non-zero exit status 1.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/ugrad10/zarafat/.vscode-server/extensions/ms-python.python-2023.16.0/pythonFiles/create_venv.py", line 232, in <module>

2023-09-13 13:02:13.151 [info]     main(sys.argv[1:])
  File "/home/ugrad10/zarafat/.vscode-server/extensions/ms-python.python-2023.16.0/pythonFiles/create_venv.py", line 228, in main
    install_requirements(venv_path, args.requirements)
  File "/home/ugrad10/zarafat/.vscode-server/extensions/ms-python.python-2023.16.0/pythonFiles/create_venv.py", line 97, in install_requirements

2023-09-13 13:02:13.152 [info]     run_process(
  File "/home/ugrad10/zarafat/.vscode-server/extensions/ms-python.python-2023.16.0/pythonFiles/create_venv.py", line 79, in run_process
    raise VenvError(error_message)
VenvError: CREATE_VENV.PIP_FAILED_INSTALL_REQUIREMENTS

2023-09-13 13:02:13.165 [error] Error while running venv creation script:  CREATE_VENV.PIP_FAILED_INSTALL_REQUIREMENTS
2023-09-13 13:02:13.165 [error] CREATE_VENV.PIP_FAILED_INSTALL_REQUIREMENTS
RustyRaptor commented 1 year ago

Ok so apparently just removing the pywin32 dependency fixes this. So the solution is to add a second requirements.txt without pywin32 labeled for Linux. I will work on this.

JiveyGuy commented 1 year ago

Great work! Yeah, I am windows most of the time, maybe we should only use Linux for the remainder of the project to nip any OS-related issues in the bud.