Skip to content

make build from source code, reports the wrong binary path error #11

@l1t1

Description

@l1t1

I used the source of pypi site. https://files.pythonhosted.org/packages/e3/7d/9b5e7967626c87fc4e32f1972bdce62ea788216fe3d500b44190f0710e2e/pocketpy_numpy-0.1.0.tar.gz

export PATH=/par/cmake-4.2.3-linux-aarch64/bin:$PATH
root@kylin-pc:/par/pocketpy_numpy-0.1.0# make build


python -m pocketpy_numpy ../test-prime-np.txt

Running cmake --build & --install in /par/pocketpy_numpy-0.1.0/build
[ 15%] Built target lz4
[ 38%] Built target msgpack
[ 53%] Built target pocketpy
[ 69%] Built target numpy
[ 84%] Built target pocketpy_cli
[100%] Built target _core
-- Install configuration: "Release"
-- Up-to-date: /usr/local/lib/python3.14/site-packages/pocketpy_numpy/pocketpy.exe
-- Installing: /usr/local/lib/python3.14/site-packages/pocketpy_numpy/_core.cpython-314-aarch64-linux-gnu.so
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/par/pocketpy_numpy-0.1.0/src/pocketpy_numpy/__main__.py", line 9, in <module>
    sys.exit(subprocess.call([exe, *args]))
             ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.14/subprocess.py", line 395, in call
    with Popen(*popenargs, **kwargs) as p:
         ~~~~~^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.14/subprocess.py", line 1038, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
    ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                        pass_fds, cwd, env,
                        ^^^^^^^^^^^^^^^^^^^
    ...<5 lines>...
                        gid, gids, uid, umask,
                        ^^^^^^^^^^^^^^^^^^^^^^
                        start_new_session, process_group)
                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.14/subprocess.py", line 1874, in _execute_child
    self._posix_spawn(args, executable, env, restore_signals, close_fds,
    ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                      p2cread, p2cwrite,
                      ^^^^^^^^^^^^^^^^^^
                      c2pread, c2pwrite,
                      ^^^^^^^^^^^^^^^^^^
                      errread, errwrite)
                      ^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.14/subprocess.py", line 1818, in _posix_spawn
    self.pid = os.posix_spawn(executable, args, env, **kwargs)
               ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/par/pocketpy_numpy-0.1.0/src/pocketpy_numpy/pocketpy.exe'

in fact, the binary path is /par/pocketpy_numpy-0.1.0/build/pocketpy.exe

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions