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

[BUG] Installation fails #130

Open
dkr91 opened this issue Feb 8, 2024 · 4 comments
Open

[BUG] Installation fails #130

dkr91 opened this issue Feb 8, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@dkr91
Copy link

dkr91 commented Feb 8, 2024

Expected Behavior

pip install succesfully

Current Behavior

pip failes

~\repos\yasb main ❯ gsudo pip install -r .\requirements.txt                                                                                                                                                                                                                                                                   21:04:10
Collecting BlurWindow==1.2.1 (from -r .\requirements.txt (line 1))
  Using cached BlurWindow-1.2.1-py3-none-any.whl (4.4 kB)
Collecting Cerberus==1.3.4 (from -r .\requirements.txt (line 2))
  Using cached Cerberus-1.3.4.tar.gz (63 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Installing backend dependencies ... done
  Preparing metadata (pyproject.toml) ... done
Collecting cssutils==2.5.1 (from -r .\requirements.txt (line 3))
  Using cached cssutils-2.5.1-py3-none-any.whl (399 kB)
Collecting humanize==4.3.0 (from -r .\requirements.txt (line 4))
  Using cached humanize-4.3.0-py3-none-any.whl (106 kB)
Collecting psutil==5.9.1 (from -r .\requirements.txt (line 5))
  Using cached psutil-5.9.1.tar.gz (479 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Installing backend dependencies ... done
  Preparing metadata (pyproject.toml) ... done
Collecting PyQt6==6.3.1 (from -r .\requirements.txt (line 6))
  Using cached PyQt6-6.3.1-cp37-abi3-win_amd64.whl (6.3 MB)
Collecting pytz==2022.1 (from -r .\requirements.txt (line 7))
  Using cached pytz-2022.1-py2.py3-none-any.whl (503 kB)
Collecting pywin32==306 (from -r .\requirements.txt (line 8))
  Using cached pywin32-306-cp312-cp312-win_amd64.whl (9.2 MB)
Collecting PyYAML==6.0 (from -r .\requirements.txt (line 9))
  Using cached PyYAML-6.0.tar.gz (124 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... error
  error: subprocess-exited-with-error

  × Getting requirements to build wheel did not run successfully.
  │ exit code: 1
  ╰─> [54 lines of output]
      running egg_info
      writing lib\PyYAML.egg-info\PKG-INFO
      writing dependency_links to lib\PyYAML.egg-info\dependency_links.txt
      writing top-level names to lib\PyYAML.egg-info\top_level.txt
      Traceback (most recent call last):
        File "C:\Users\Besitzer\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 353, in <module>
          main()
        File "C:\Users\Besitzer\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 335, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "C:\Users\Besitzer\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 118, in get_requires_for_build_wheel
          return hook(config_settings)
                 ^^^^^^^^^^^^^^^^^^^^^
        File "C:\Users\Besitzer\AppData\Local\Temp\pip-build-env-woiuul4c\overlay\Lib\site-packages\setuptools\build_meta.py", line 325, in get_requires_for_build_wheel
          return self._get_build_requires(config_settings, requirements=['wheel'])
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "C:\Users\Besitzer\AppData\Local\Temp\pip-build-env-woiuul4c\overlay\Lib\site-packages\setuptools\build_meta.py", line 295, in _get_build_requires
          self.run_setup()
        File "C:\Users\Besitzer\AppData\Local\Temp\pip-build-env-woiuul4c\overlay\Lib\site-packages\setuptools\build_meta.py", line 311, in run_setup
          exec(code, locals())
        File "<string>", line 288, in <module>
        File "C:\Users\Besitzer\AppData\Local\Temp\pip-build-env-woiuul4c\overlay\Lib\site-packages\setuptools\__init__.py", line 103, in setup
          return distutils.core.setup(**attrs)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "C:\Users\Besitzer\AppData\Local\Temp\pip-build-env-woiuul4c\overlay\Lib\site-packages\setuptools\_distutils\core.py", line 185, in setup
          return run_commands(dist)
                 ^^^^^^^^^^^^^^^^^^
        File "C:\Users\Besitzer\AppData\Local\Temp\pip-build-env-woiuul4c\overlay\Lib\site-packages\setuptools\_distutils\core.py", line 201, in run_commands
          dist.run_commands()
        File "C:\Users\Besitzer\AppData\Local\Temp\pip-build-env-woiuul4c\overlay\Lib\site-packages\setuptools\_distutils\dist.py", line 969, in run_commands
          self.run_command(cmd)
        File "C:\Users\Besitzer\AppData\Local\Temp\pip-build-env-woiuul4c\overlay\Lib\site-packages\setuptools\dist.py", line 963, in run_command
          super().run_command(command)
        File "C:\Users\Besitzer\AppData\Local\Temp\pip-build-env-woiuul4c\overlay\Lib\site-packages\setuptools\_distutils\dist.py", line 988, in run_command
          cmd_obj.run()
        File "C:\Users\Besitzer\AppData\Local\Temp\pip-build-env-woiuul4c\overlay\Lib\site-packages\setuptools\command\egg_info.py", line 321, in run
          self.find_sources()
        File "C:\Users\Besitzer\AppData\Local\Temp\pip-build-env-woiuul4c\overlay\Lib\site-packages\setuptools\command\egg_info.py", line 329, in find_sources
          mm.run()
        File "C:\Users\Besitzer\AppData\Local\Temp\pip-build-env-woiuul4c\overlay\Lib\site-packages\setuptools\command\egg_info.py", line 551, in run
          self.add_defaults()
        File "C:\Users\Besitzer\AppData\Local\Temp\pip-build-env-woiuul4c\overlay\Lib\site-packages\setuptools\command\egg_info.py", line 589, in add_defaults
          sdist.add_defaults(self)
        File "C:\Users\Besitzer\AppData\Local\Temp\pip-build-env-woiuul4c\overlay\Lib\site-packages\setuptools\command\sdist.py", line 112, in add_defaults
          super().add_defaults()
        File "C:\Users\Besitzer\AppData\Local\Temp\pip-build-env-woiuul4c\overlay\Lib\site-packages\setuptools\_distutils\command\sdist.py", line 251, in add_defaults
          self._add_defaults_ext()
        File "C:\Users\Besitzer\AppData\Local\Temp\pip-build-env-woiuul4c\overlay\Lib\site-packages\setuptools\_distutils\command\sdist.py", line 336, in _add_defaults_ext
          self.filelist.extend(build_ext.get_source_files())
                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "<string>", line 204, in get_source_files
        File "C:\Users\Besitzer\AppData\Local\Temp\pip-build-env-woiuul4c\overlay\Lib\site-packages\setuptools\_distutils\cmd.py", line 107, in __getattr__
          raise AttributeError(attr)
      AttributeError: cython_sources
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

Possible Solution

fix the requierments

Steps to Reproduce

seen above

Context (Environment)

Python 3.12.1

@dkr91 dkr91 added the bug Something isn't working label Feb 8, 2024
@Zerogaku
Copy link

occurs for me too, I'm using version 3.12.2 of python

@Zerogaku
Copy link

The solution appears to be to install version 3.9 of python, it's able to install successfully but when attempting to run I get this error instead

PS C:\Users\Null\Downloads\yasb-main\yasb-main\src> python .\main.py
Traceback (most recent call last):
  File "C:\Users\Null\Downloads\yasb-main\yasb-main\src\main.py", line 2, in <module>
    from PyQt6.QtWidgets import QApplication
ImportError: DLL load failed while importing QtCore: The specified procedure could not be found.         python .\main.pyl\Downloads\yasb-main\yasb-main\src>
Traceback (most recent call last):
  File "C:\Users\Null\Downloads\yasb-main\yasb-main\src\main.py", line 2, in <module>
    from PyQt6.QtWidgets import QApplication
ImportError: DLL load failed while importing QtCore: The specified procedure could not be found.

@Zerogaku
Copy link

The solution appears to be to install version 3.9 of python, it's able to install successfully but when attempting to run I get this error instead

PS C:\Users\Null\Downloads\yasb-main\yasb-main\src> python .\main.py
Traceback (most recent call last):
  File "C:\Users\Null\Downloads\yasb-main\yasb-main\src\main.py", line 2, in <module>
    from PyQt6.QtWidgets import QApplication
ImportError: DLL load failed while importing QtCore: The specified procedure could not be found.         python .\main.pyl\Downloads\yasb-main\yasb-main\src>
Traceback (most recent call last):
  File "C:\Users\Null\Downloads\yasb-main\yasb-main\src\main.py", line 2, in <module>
    from PyQt6.QtWidgets import QApplication
ImportError: DLL load failed while importing QtCore: The specified procedure could not be found.

I found the solution for that in #120

@zkdrift
Copy link

zkdrift commented Jun 29, 2024

Cerberus==1.3.5
cssutils==2.11.1
humanize==4.9.0
psutil==6.0.0
PyQt6==6.7.0
pytz==2024.1
pywin32==306
PyYAML==6.0.1
tzlocal==5.2
watchdog==4.0.1
winsdk==1.0.0b10

will work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants