Xpra-org / xpra

Persistent remote applications for X11; screen sharing for X11, MacOS and MSWindows.
https://xpra.org/
GNU General Public License v2.0
1.98k stars 169 forks source link

Build error for Windows 11 with msys2 #4364

Closed unisons closed 1 month ago

unisons commented 1 month ago

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?

totaam commented 1 month ago

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.

unisons commented 1 month ago

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 commented 1 month ago

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

pacman -S mingw-w64-x86_64-python-pywin32
unisons commented 1 month ago

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 commented 1 month ago

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 commented 1 month ago

Not heard back.