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

Build error for Windows 11 with msys2 #4364

Closed
unisons opened this issue Sep 20, 2024 · 6 comments
Closed

Build error for Windows 11 with msys2 #4364

unisons opened this issue Sep 20, 2024 · 6 comments
Labels
bug Something isn't working packaging win32 MS Windows OS

Comments

@unisons
Copy link
Contributor

unisons commented Sep 20, 2024

I tried to setup msys2 but there was some problem.

$ ./packaging/MSWindows/SETUP.sh
...
ERROR: Cannot install pyvda==0.0.1, pyvda==0.0.2, pyvda==0.0.3, pyvda==0.0.4, pyvda==0.0.5, pyvda==0.0.6, pyvda==0.0.7, pyvda==0.0.8, pyvda==0.1.0, pyvda==0.1.1, pyvda==0.2.0, pyvda==0.2.1, pyvda==0.2.2, pyvda==0.2.3, pyvda==0.2.4, pyvda==0.2.5, pyvda==0.2.6, pyvda==0.2.7, pyvda==0.2.8, pyvda==0.2.9, pyvda==0.3.0, pyvda==0.3.1, pyvda==0.3.2, pyvda==0.4.0, pyvda==0.4.1, pyvda==0.4.2 and pyvda==0.4.3 because these package versions have conflicting dependencies.

The conflict is caused by:
    pyvda 0.4.3 depends on pywin32
    pyvda 0.4.2 depends on pywin32
    pyvda 0.4.1 depends on pywin32
    pyvda 0.4.0 depends on pywin32
    pyvda 0.3.2 depends on pywin32
    pyvda 0.3.1 depends on pywin32
    pyvda 0.3.0 depends on pywin32
    pyvda 0.2.9 depends on pywin32
    pyvda 0.2.8 depends on pywin32
    pyvda 0.2.7 depends on pywin32
    pyvda 0.2.6 depends on pywin32
    pyvda 0.2.5 depends on pywin32
    pyvda 0.2.4 depends on pywin32
    pyvda 0.2.3 depends on pywin32
    pyvda 0.2.2 depends on pywin32
    pyvda 0.2.1 depends on pywin32
    pyvda 0.2.0 depends on pywin32
    pyvda 0.1.1 depends on pywin32
    pyvda 0.1.0 depends on pywin32
    pyvda 0.0.8 depends on pywin32
    pyvda 0.0.7 depends on pywin32
    pyvda 0.0.6 depends on pywin32
    pyvda 0.0.5 depends on pywin32
    pyvda 0.0.4 depends on pywin32
    pyvda 0.0.3 depends on pywin32
    pyvda 0.0.2 depends on pywin32
    pyvda 0.0.1 depends on pywin32

To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip to attempt to solve the dependency conflict

ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts

By the way, can I build window client on Ubuntu?

@unisons unisons added the bug Something isn't working label Sep 20, 2024
@totaam
Copy link
Collaborator

totaam commented Sep 20, 2024

Cannot install pyvda

I think you can install it manually.
This is only required for virtual desktop support.

By the way, can I build window client on Ubuntu?

Possibly, but you will be missing some features as some of the installers probably won't run, even through wine.

@totaam totaam added win32 MS Windows OS packaging labels Sep 20, 2024
@unisons
Copy link
Contributor Author

unisons commented Sep 20, 2024

When I tried to install pyvda, I had same error logs.

$ pip3 install pyvda
Collecting pyvda
  Using cached pyvda-0.4.3-py3-none-any.whl.metadata (1.9 kB)
INFO: pip is looking at multiple versions of pyvda to determine which version is compatible with other requirements. This could take a while.
  Using cached pyvda-0.4.2-py3-none-any.whl.metadata (1.9 kB)
  Using cached pyvda-0.4.1-py3-none-any.whl.metadata (1.9 kB)
  Using cached pyvda-0.4.0-py3-none-any.whl.metadata (1.9 kB)
  Using cached pyvda-0.3.2-py3-none-any.whl.metadata (1.9 kB)
  Using cached pyvda-0.3.1-py3-none-any.whl.metadata (1.9 kB)
  Using cached pyvda-0.3.0-py3-none-any.whl.metadata (1.9 kB)
  Using cached pyvda-0.2.9-py3-none-any.whl.metadata (1.9 kB)
INFO: pip is still looking at multiple versions of pyvda to determine which version is compatible with other requirements. This could take a while.
  Using cached pyvda-0.2.8-py3-none-any.whl.metadata (1.8 kB)
  Using cached pyvda-0.2.7-py3-none-any.whl.metadata (1.8 kB)
  Using cached pyvda-0.2.6-py3-none-any.whl.metadata (1.8 kB)
  Using cached pyvda-0.2.5-py3-none-any.whl.metadata (1.8 kB)
  Using cached pyvda-0.2.4-py3-none-any.whl.metadata (1.8 kB)
INFO: This is taking longer than usual. You might need to provide the dependency resolver with stricter constraints to reduce runtime. See https://pip.pypa.io/warnings/backtracking for guidance. If you want to abort this run, press Ctrl + C.
  Using cached pyvda-0.2.3-py3-none-any.whl.metadata (1.8 kB)
  Using cached pyvda-0.2.2-py3-none-any.whl.metadata (1.8 kB)
  Using cached pyvda-0.2.1-py3-none-any.whl.metadata (1.8 kB)
  Using cached pyvda-0.2.0-py3-none-any.whl.metadata (1.8 kB)
  Using cached pyvda-0.1.1-py3-none-any.whl.metadata (1.8 kB)
  Using cached pyvda-0.1.0-py3-none-any.whl.metadata (1.8 kB)
  Using cached pyvda-0.0.8-py3-none-any.whl.metadata (2.7 kB)
  Using cached pyvda-0.0.7-py3-none-any.whl.metadata (2.3 kB)
  Using cached pyvda-0.0.6-py3-none-any.whl.metadata (1.7 kB)
  Using cached pyvda-0.0.5-py3-none-any.whl.metadata (1.7 kB)
  Using cached pyvda-0.0.4-py3-none-any.whl.metadata (1.7 kB)
  Using cached pyvda-0.0.3-py3-none-any.whl.metadata (1.6 kB)
  Using cached pyvda-0.0.2-py3-none-any.whl.metadata (620 bytes)
  Using cached pyvda-0.0.1-py3-none-any.whl.metadata (602 bytes)
ERROR: Cannot install pyvda==0.0.1, pyvda==0.0.2, pyvda==0.0.3, pyvda==0.0.4, pyvda==0.0.5, pyvda==0.0.6, pyvda==0.0.7, pyvda==0.0.8, pyvda==0.1.0, pyvda==0.1.1, pyvda==0.2.0, pyvda==0.2.1, pyvda==0.2.2, pyvda==0.2.3, pyvda==0.2.4, pyvda==0.2.5, pyvda==0.2.6, pyvda==0.2.7, pyvda==0.2.8, pyvda==0.2.9, pyvda==0.3.0, pyvda==0.3.1, pyvda==0.3.2, pyvda==0.4.0, pyvda==0.4.1, pyvda==0.4.2 and pyvda==0.4.3 because these package versions have conflicting dependencies.

The conflict is caused by:
    pyvda 0.4.3 depends on pywin32
    pyvda 0.4.2 depends on pywin32
    pyvda 0.4.1 depends on pywin32
    pyvda 0.4.0 depends on pywin32
    pyvda 0.3.2 depends on pywin32
    pyvda 0.3.1 depends on pywin32
    pyvda 0.3.0 depends on pywin32
    pyvda 0.2.9 depends on pywin32
    pyvda 0.2.8 depends on pywin32
    pyvda 0.2.7 depends on pywin32
...
To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip to attempt to solve the dependency conflict

ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts

And installing pywin32 is failed

$ pip3 install pywin32
ERROR: Could not find a version that satisfies the requirement pywin32 (from versions: none)
ERROR: No matching distribution found for pywin32

@unisons
Copy link
Contributor Author

unisons commented Sep 20, 2024

After installing pywin32 with pacman as below, I can install pyvda.

pacman -S mingw-w64-x86_64-python-pywin32

@unisons
Copy link
Contributor Author

unisons commented Sep 20, 2024

During the build, I faced this error.

$ DO_DOC=0 ./packaging/MSWindows/BUILD.sh
find: ‘/c/Program Files/Microsoft Policy Platform/authorityDb’: Permission denied
find: ‘/c/Program Files/Windows Defender Advanced Threat Protection/Classification/Configuration’: Permission denied
find: ‘/c/Program Files/WindowsApps’: Permission denied
ERROR: recording build info

@totaam
Copy link
Collaborator

totaam commented Sep 20, 2024

pacman -S mingw-w64-x86_64-python-pywin32

No, don't do that. We don't want to have pywin32 installed.
This will cause problems.

During the build, I faced this error.
ERROR: recording build info

Try:

rm xpra/build_info.py xpra/src_info.py
fs/bin/add_build_info.py

@totaam
Copy link
Collaborator

totaam commented Oct 9, 2024

Not heard back.

@totaam totaam closed this as not planned Won't fix, can't repro, duplicate, stale Oct 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working packaging win32 MS Windows OS
Projects
None yet
Development

No branches or pull requests

2 participants