[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Request for help with writing defenition for pyxel.

From: Dmitry Polyakov
Subject: Request for help with writing defenition for pyxel.
Date: Sun, 29 Aug 2021 22:07:29 +0500

I requesting for help with writing defenition for python retro game 

There are steps according to manual to build this engine[fn:2]:

1. Get sources with ~git clone
2. "cd" to this dir
3. Invoke ~guix environment --pure --ad-hoc gcc make python python-pip
   coreutils findutils sdl2 sdl2-image~
4. Appnend this to in file pyxel/core/Makefile on line 50
5. Invoke ~make -C pyxel/core clean all~
6. Invoke ~pip3 install .~ to install this package

And I got fully functional (according to examples) package in my
system, but when I was tried to write defenition:
#+begin_src scheme
(define-public python-pyxel
   (name "python-pyxel")
   (version "1.4.3")
     (method url-fetch)
     (uri "file:///home/lil/src/ring/pyxel" ;; this is version with modified 
          ;; (pypi-uri "pyxel" version) <- this is original content from $ guix 
import pypi pyxel
   (build-system python-build-system)
    `(("gifsicle" ,gifsicle)
      ("sdl2" ,(sdl-union (list sdl2 sdl2-image)))))
   (home-page "";)
   (synopsis "A retro game engine for Python")
   (description "A retro game engine for Python")
   (license license:expat)))

I was stacked with that error[fn:3]
#+begin_src bash
starting phase `build'
running "python" with command "build" and parameters ()
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "", line 2, in <module>
    from pyxel import VERSION
  File "/tmp/guix-build-python-pyxel-1.4.3.drv-0/source/pyxel/", 
line 10, in <module>
    from . import core  # type: ignore
"/tmp/guix-build-python-pyxel-1.4.3.drv-0/source/pyxel/core/", line 
42, in <module>
    _lib = _load_library()
"/tmp/guix-build-python-pyxel-1.4.3.drv-0/source/pyxel/core/", line 
39, in _load_library
    return cdll.LoadLibrary(lib_path)
 line 451, in LoadLibrary
    return self._dlltype(name)
 line 373, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: cannot open shared object file: No such file or 
command "python" "-c" "import setuptools, 
tokenize;__file__='';f=getattr(tokenize, 'open', 
'\\n');f.close();exec(compile(code, __file__, 'exec'))" "build" failed with 
status 1
builder for 
`/gnu/store/2v3wlpjg2mg3mllc4qkb22b34cmymiab-python-pyxel-1.4.3.drv' failed 
with exit code 1
build of /gnu/store/2v3wlpjg2mg3mllc4qkb22b34cmymiab-python-pyxel-1.4.3.drv 
View build log at 
guix build: error: build of 
`/gnu/store/2v3wlpjg2mg3mllc4qkb22b34cmymiab-python-pyxel-1.4.3.drv' failed

As far as I can understand, firstly guix should build C++ dependencies
and /then/ install python package. Isn't it? But I don't know how to do

* Footnotes

[fn:1] Actually is C++ and Python engine


[fn:3] For full error see


reply via email to

[Prev in Thread] Current Thread [Next in Thread]