Comments (6)
found Cython version 3.1.0a0
That's not a supported version - please try with the stable 3.0.x series.
error: Couldn't find a setup script in /tmp/easy_install-qvk3o6gl/pygobject-3.48.1.tar.gz
Something is wrong with your environment, it looks like something is trying to install pygobject
- which should already be installed.
The xpra ./setup.py
file does not do that on its own.
xpra/x11/bindings/core.pyx:92:40: undeclared name not builtin: long
Very likely caused by the alpha build of Cython.
return "".join([chr((vid_format.fmt.pix.pixelformat//(2**(8*x))) % 256) for x in range(4)])
Same. Perhaps 0ccc5c8 will help. (untested)
from xpra.
Thank you very much. Will try using the released versions (which was what I was going to attempt anyway.)
Hoping to provide some feedback rather soon. Thank you.
from xpra.
The python setup.py install --minimal
worked on the v5.0.7
tag of the xpra
repository. Not on the latest master
branch. My issue thus seems "temporarily" fixed.
Closing.
Thank you.
from xpra.
Unless you share the problem you encounter with master
, this will not be fixed in future versions.
from xpra.
OK. So I'll try to follow up. In two parts.
Part 1.
TL;DR: Building xpra 5.0.7 against cython 3.0.10 works, but doesn't work against cython 3.0.x (commit b197288e92f, i.e. the 3.1.0a0 cython version which is on the 3.0.x branch). This seems like a cython regression in gestation.
Instructions used for cython: python -m build --wheel
followed by pip install dist/*.whl
.
Instructions used for xpra: python setup.py build
followed by python setup.py install
. (I did not use --minimal
this time.)
Error obtained:
[31/41] Cythonizing xpra/x11/bindings/posix_display_source.pyx
[32/41] Cythonizing xpra/x11/bindings/randr.pyx
Error compiling Cython file:
------------------------------------------------------------
...
assert newf>(<int> f), "end of int not found"
cdef unsigned int unewf = newf
try:
n = int(x[f:unewf])
except (OverflowError, ValueError):
n = long(x[f:unewf])
^
------------------------------------------------------------
xpra/net/bencode/cython_bencode.pyx:48:12: undeclared name not builtin: long
Traceback (most recent call last):
File "/home/mini-me/.pyenv/versions/3.12.2/lib/python3.12/site-packages/Cython/Build/Dependencies.py", line 1247, in cythonize_one_helper
return cythonize_one(*m)
^^^^^^^^^^^^^^^^^
File "/home/mini-me/.pyenv/versions/3.12.2/lib/python3.12/site-packages/Cython/Build/Dependencies.py", line 1237, in cythonize_one
raise CompileError(None, pyx_file)
Cython.Compiler.Errors.CompileError: xpra/net/bencode/cython_bencode.pyx
[33/41] Cythonizing xpra/x11/bindings/res.pyx
[34/41] Cythonizing xpra/x11/bindings/wait_for_x_server.pyx
[35/41] Cythonizing xpra/x11/bindings/window.pyx
[36/41] Cythonizing xpra/x11/bindings/xi2.pyx
[37/41] Cythonizing xpra/x11/bindings/ximage.pyx
[38/41] Cythonizing xpra/x11/bindings/xwait.pyx
[39/41] Cythonizing xpra/x11/bindings/xwayland.pyx
[40/41] Cythonizing xpra/x11/gtk3/gdk_bindings.pyx
Error compiling Cython file:
------------------------------------------------------------
...
return {"YU12" : "YUV420P", "YV12" : "YVU420P", "GREY" : "YUV420P"}.get(fmt, fmt)
cdef parse_pixel_format(self, v4l2_format *vid_format):
if vid_format.fmt.pix.pixelformat==0:
return ""
return "".join([chr((vid_format.fmt.pix.pixelformat//(2**(8*x))) % 256) for x in range(4)])
^
------------------------------------------------------------
xpra/codecs/v4l2/pusher.pyx:356:73: Cannot assign type 'double' to 'int'
[41/41] Cythonizing xpra/x11/gtk3/gdk_display_source.pyx
Traceback (most recent call last):
File "/home/mini-me/.pyenv/versions/3.12.2/lib/python3.12/site-packages/Cython/Build/Dependencies.py", line 1247, in cythonize_one_helper
return cythonize_one(*m)
^^^^^^^^^^^^^^^^^
File "/home/mini-me/.pyenv/versions/3.12.2/lib/python3.12/site-packages/Cython/Build/Dependencies.py", line 1237, in cythonize_one
raise CompileError(None, pyx_file)
Cython.Compiler.Errors.CompileError: xpra/codecs/v4l2/pusher.pyx
Error compiling Cython file:
------------------------------------------------------------
...
else:
keysyms = []
for ks in keysyms_strs:
if ks in (None, ""):
keysym = NoSymbol
elif isinstance(ks, (long, int)):
^
------------------------------------------------------------
xpra/x11/bindings/keyboard.pyx:639:45: undeclared name not builtin: long
Error compiling Cython file:
------------------------------------------------------------
...
cdef Atom xatom(self, str_or_int):
"""Returns the X atom corresponding to the given Python string or Python
integer (assumed to already be an X atom)."""
self.context_check("xatom")
if isinstance(str_or_int, (int, long)):
^
------------------------------------------------------------
xpra/x11/bindings/core.pyx:90:40: undeclared name not builtin: long
Traceback (most recent call last):
File "/home/mini-me/.pyenv/versions/3.12.2/lib/python3.12/site-packages/Cython/Build/Dependencies.py", line 1247, in cythonize_one_helper
return cythonize_one(*m)
^^^^^^^^^^^^^^^^^
File "/home/mini-me/.pyenv/versions/3.12.2/lib/python3.12/site-packages/Cython/Build/Dependencies.py", line 1237, in cythonize_one
raise CompileError(None, pyx_file)
Cython.Compiler.Errors.CompileError: xpra/x11/bindings/keyboard.pyx
Traceback (most recent call last):
File "/home/mini-me/.pyenv/versions/3.12.2/lib/python3.12/site-packages/Cython/Build/Dependencies.py", line 1247, in cythonize_one_helper
return cythonize_one(*m)
^^^^^^^^^^^^^^^^^
File "/home/mini-me/.pyenv/versions/3.12.2/lib/python3.12/site-packages/Cython/Build/Dependencies.py", line 1237, in cythonize_one
raise CompileError(None, pyx_file)
Cython.Compiler.Errors.CompileError: xpra/x11/bindings/core.pyx
multiprocessing.pool.RemoteTraceback:
"""
Traceback (most recent call last):
File "/home/mini-me/.pyenv/versions/3.12.2/lib/python3.12/multiprocessing/pool.py", line 125, in worker
result = (True, func(*args, **kwds))
^^^^^^^^^^^^^^^^^^^
File "/home/mini-me/.pyenv/versions/3.12.2/lib/python3.12/multiprocessing/pool.py", line 48, in mapstar
return list(map(*args))
^^^^^^^^^^^^^^^^
File "/home/mini-me/.pyenv/versions/3.12.2/lib/python3.12/site-packages/Cython/Build/Dependencies.py", line 1247, in cythonize_one_helper
return cythonize_one(*m)
^^^^^^^^^^^^^^^^^
File "/home/mini-me/.pyenv/versions/3.12.2/lib/python3.12/site-packages/Cython/Build/Dependencies.py", line 1237, in cythonize_one
raise CompileError(None, pyx_file)
Cython.Compiler.Errors.CompileError: xpra/net/bencode/cython_bencode.pyx
"""
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/mini-me/home/backyard/hephaestus/xpra-v5.0.7/setup.py", line 2461, in <module>
setup_options["ext_modules"] = cythonize(ext_modules,
^^^^^^^^^^^^^^^^^^^^^^
File "/home/mini-me/.pyenv/versions/3.12.2/lib/python3.12/site-packages/Cython/Build/Dependencies.py", line 1083, in cythonize
result.get(99999) # seconds
^^^^^^^^^^^^^^^^^
File "/home/mini-me/.pyenv/versions/3.12.2/lib/python3.12/multiprocessing/pool.py", line 774, in get
raise self._value
Cython.Compiler.Errors.CompileError: xpra/net/bencode/cython_bencode.pyx
Part 2.a (without the --minimal flag):
TL;DR: Building xpra 5.0.7 against cython 3.0.10 works, and building xpra master
(commit 35ada47) against cython 3.0.10 also does work. The build instructions are the same as in part 1.
Part 2.b (with the --minimal flag):
TL;DR: Works fine too.
I guess my issue is that I was using a --prefix that wasn't very standard.
So all good. I'll keep this issue closed.
Thank you.
from xpra.
This seems like a cython regression in gestation.
Not so much a regression as a long deprecated feature removal.
n = long(x[f:unewf])
xpra/net/bencode/cython_bencode.pyx:48:12: undeclared name not builtin: long
This code has already been removed from xpra v6.
If you want to run bleeding edge Cython, you should probably also run bleeding edge xpra.
return "".join([chr((vid_format.fmt.pix.pixelformat//(2**(8*x))) % 256) for x in range(4)])
xpra/codecs/v4l2/pusher.pyx:356:73: Cannot assign type 'double' to 'int'
As per above, there is a workaround in git master: 0ccc5c8
elif isinstance(ks, (long, int)):
xpra/x11/bindings/keyboard.pyx:639:45: undeclared name not builtin: long
Also already removed from v6: b9ca743
if isinstance(str_or_int, (int, long)):
xpra/x11/bindings/core.pyx:90:40: undeclared name not builtin: long
Also already removed from v6: 52f39ef
I guess my issue is that I was using a --prefix that wasn't very standard.
Makes sense.
from xpra.
Related Issues (20)
- send more than one clipboard target to greedy clients
- xpra client v6 can not attach to the v5 server HOT 2
- Server crash when using IntelliJ IDEA HOT 7
- Can't attach microsoft edge session locally. HOT 3
- clopboard copy returns python "byte" string HOT 3
- Failed to copy from linux to windows HOT 4
- Failed to connect to socket /tmp/dbus-gXpCRTJe1M: Connection refused HOT 7
- blank window in lxqt desktop when attach locally HOT 4
- "Server does not support speaker forwarding" when connected via SSH HOT 1
- Dithering artifacts with PNG 8 bit colour encoding HOT 7
- OpenGL Error on windows 11 in v6.0 client HOT 6
- Opening "Session Info" while "server is not responding, drawing spinners over the windows", can lead to timeout HOT 15
- Xpra Client not reconnecting after Update to Version 12 HOT 7
- App tray icon didn't show on windows HOT 3
- When using HiDPI, in Ghidra, some window content is not scaled up but some are HOT 4
- Distortions to remote windows after update HOT 19
- make it easier to setup a development environment HOT 1
- make it easier to install the xpra.org repositories HOT 1
- VirtualBox context menus disappear HOT 11
- openh264 encoder error `codec bitstream size is larger than Level limitation` HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xpra.