You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "paleolimbot (via GitHub)" <gi...@apache.org> on 2024/11/19 16:21:10 UTC
[I] Editable install of Python package fails if reloaded [arrow-nanoarrow]
paleolimbot opened a new issue, #684:
URL: https://github.com/apache/arrow-nanoarrow/issues/684
I think meson is trying to rebuild the package when the underlying source files change? This is not necessarily a bad thing and it's cool if it works, but currently it gives me quite a lot of this in local development (since I switch branches often!):
```
ImportError while importing test module '/home/dewey/gh/arrow-nanoarrow/python/tests/test_visitor.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
.venv/lib/python3.10/site-packages/_nanoarrow_editable_loader.py:345: in _rebuild
subprocess.run(self._build_cmd, cwd=self._build_path, env=env, stdout=subprocess.DEVNULL, check=True)
/usr/lib/python3.10/subprocess.py:526: in run
raise CalledProcessError(retcode, process.args,
E subprocess.CalledProcessError: Command '['/usr/bin/ninja']' returned non-zero exit status 1.
The above exception was the direct cause of the following exception:
/usr/lib/python3.10/importlib/__init__.py:126: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
python/tests/test_visitor.py:18: in <module>
from nanoarrow.c_buffer import CBuffer
.venv/lib/python3.10/site-packages/_nanoarrow_editable_loader.py:311: in find_spec
tree = self._rebuild()
.venv/lib/python3.10/site-packages/_nanoarrow_editable_loader.py:347: in _rebuild
raise ImportError(f're-building the {self._name} meson-python editable wheel package failed') from exc
E ImportError: re-building the nanoarrow meson-python editable wheel package failed
------------------------------- Captured stderr --------------------------------
/bin/sh: 1: /tmp/pip-build-env-3l1dj0lp/overlay/bin/meson: not found
ninja: error: rebuilding 'build.ninja': subcommand failed
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Editable install of Python package fails if reloaded [arrow-nanoarrow]
Posted by "WillAyd (via GitHub)" <gi...@apache.org>.
WillAyd commented on issue #684:
URL: https://github.com/apache/arrow-nanoarrow/issues/684#issuecomment-2486193712
I don't think you can use editable installs with build isolation. Have you tried `python -m pip install -e --no-build-isolation`?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Editable install of Python package fails if reloaded [arrow-nanoarrow]
Posted by "WillAyd (via GitHub)" <gi...@apache.org>.
WillAyd closed issue #684: Editable install of Python package fails if reloaded
URL: https://github.com/apache/arrow-nanoarrow/issues/684
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org