Advertisement
Guest User

Untitled

a guest
Aug 29th, 2021
42
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.73 KB | None
  1. I requesting for help with writing defenition for python retro game
  2. engine[1].
  3.  
  4. There are steps according to manual to build this engine[2]:
  5.  
  6. 1. Get sources with `git clone https://github.com/kitao/pyxel'
  7. 2. "cd" to this dir
  8. 3. Invoke `guix environment --pure --ad-hoc gcc make python python-pip
  9. coreutils findutils sdl2 sdl2-image'
  10. 4. Appnend this to in file pyxel/core/Makefile on line 50
  11. `-I/gnu/store/flvzd76nb8xzbp1sf5ckkvpwhspz9fqx-sdl-union-1.2.15/include/SDL2'
  12. 5. Invoke `make -C pyxel/core clean all'
  13. 6. Invoke `pip3 install .' to install this package
  14.  
  15. And I got fully functional (according to examples) package in my system,
  16. but when I was tried to write defenition:
  17. ┌────
  18. │ (define-public python-pyxel
  19. │ (package
  20. │ (name "python-pyxel")
  21. │ (version "1.4.3")
  22. │ (source
  23. │ (origin
  24. │ (method url-fetch)
  25. │ (uri "file:///home/lil/src/ring/pyxel" ;; this is version with modified Makefile
  26. │ ;; (pypi-uri "pyxel" version) <- this is original content from $ guix import pypi pyxel
  27. │ )
  28. │ (sha256
  29. │ (base32
  30. │ "1gxvagmj37gs871bh77xafm5jyiaw1hvs76wb97w96kf3g8abhkz"))))
  31. │ (build-system python-build-system)
  32. │ (inputs
  33. │ `(("gifsicle" ,gifsicle)
  34. │ ("sdl2" ,(sdl-union (list sdl2 sdl2-image)))))
  35. │ (home-page "https://github.com/kitao/pyxel")
  36. │ (synopsis "A retro game engine for Python")
  37. │ (description "A retro game engine for Python")
  38. │ (license license:expat)))
  39. └────
  40.  
  41. I was stacked with that error[3]
  42. ┌────
  43. │ starting phase `build'
  44. │ running "python setup.py" with command "build" and parameters ()
  45. │ Traceback (most recent call last):
  46. │ File "<string>", line 1, in <module>
  47. │ File "setup.py", line 2, in <module>
  48. │ from pyxel import VERSION
  49. │ File "/tmp/guix-build-python-pyxel-1.4.3.drv-0/source/pyxel/__init__.py", line 10, in <module>
  50. │ from . import core # type: ignore
  51. │ File "/tmp/guix-build-python-pyxel-1.4.3.drv-0/source/pyxel/core/__init__.py", line 42, in <module>
  52. │ _lib = _load_library()
  53. │ File "/tmp/guix-build-python-pyxel-1.4.3.drv-0/source/pyxel/core/__init__.py", line 39, in _load_library
  54. │ return cdll.LoadLibrary(lib_path)
  55. │ File "/gnu/store/9w9jvy3bgjg4qaqmrij01nbppiccqr7c-python-3.8.2/lib/python3.8/ctypes/__init__.py", line 451, in LoadLibrary
  56. │ return self._dlltype(name)
  57. │ File "/gnu/store/9w9jvy3bgjg4qaqmrij01nbppiccqr7c-python-3.8.2/lib/python3.8/ctypes/__init__.py", line 373, in __init__
  58. │ self._handle = _dlopen(self._name, mode)
  59. │ OSError: libSDL2-2.0.so.0: cannot open shared object file: No such file or directory
  60. │ command "python" "-c" "import setuptools, tokenize;__file__='setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\\r\\n', '\\n');f.close();exec(compile(code, __file__, 'exec'))" "build" failed with status 1
  61. │ builder for `/gnu/store/2v3wlpjg2mg3mllc4qkb22b34cmymiab-python-pyxel-1.4.3.drv' failed with exit code 1
  62. │ build of /gnu/store/2v3wlpjg2mg3mllc4qkb22b34cmymiab-python-pyxel-1.4.3.drv failed
  63. │ View build log at '/var/log/guix/drvs/2v/3wlpjg2mg3mllc4qkb22b34cmymiab-python-pyxel-1.4.3.drv.bz2'.
  64. │ guix build: error: build of `/gnu/store/2v3wlpjg2mg3mllc4qkb22b34cmymiab-python-pyxel-1.4.3.drv' failed
  65. └────
  66.  
  67. As far as I can understand, firstly guix should build C++ dependencies
  68. and /then/ install python package. Isn't it? But I don't know how to do
  69. this.
  70.  
  71.  
  72.  
  73. Footnotes
  74. ─────────
  75.  
  76. [1] <https://github.com/kitao/pyxel> Actually is C++ and Python engine
  77.  
  78. [2]
  79. <https://github.com/kitao/pyxel#execute-the-following-command-in-any-folder>
  80.  
  81. [3] For full error see <https://pastebin.com/d18Wrrq4>
  82.  
Advertisement
RAW Paste Data Copied
Advertisement