Closed gavindsouza closed 2 years ago
Can you please try changing that line to:
raise OSError(f'Unable to locate executables directory: {exe_dir}')
Can you please try changing that line to:
raise OSError(f'Unable to locate executables directory: {exe_dir}')
I'm getting
OSError: Unable to locate executables directory: /tmp/tmpaesfdfz6/ix1I/bin
Dropped a breakpoint, self.__dict__
looked like:
{'_env_vars_to_restore': {'PATH':
'/home/frappe/.pyenv/plugins/pyenv-virtualenv/shims:/home/frappe/.pyenv/shims:/home/frappe/.pyenv/bin:/home/frappe/.npm-global/bin:/home/frappe/.local/bin:/home/frappe/.nix-p
rofile/bin:/nix/var/nix/profiles/default/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/frappe/.antigen/bundles/
robbyrussell/oh-my-zsh/lib:/home/frappe/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/git:/home/frappe/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/sudo:/home/frappe/.an
tigen/bundles/robbyrussell/oh-my-zsh/plugins/pip:/home/frappe/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/command-not-found:/home/frappe/.antigen/bundles/zsh-users/zsh-sy
ntax-highlighting:/home/frappe/.antigen/bundles/zsh-users/zsh-completions:/home/frappe/.antigen/bundles/zsh-users/zsh-autosuggestions',
'VIRTUAL_ENV': None},
'_executables_directory': None,
'directory': Path('/tmp/tmp7ty7an6e/TW_6'),
'parent_dir': <TemporaryDirectory '/tmp/tmp7ty7an6e'>,
'parent_python': '/usr/bin/python3.10',
'platform': <hatch.utils.platform.Platform object at 0x7f1e00a23790>,
'python_info': <hatch.utils.env.PythonInfo object at 0x7f1e0053de40>,
'verbosity': 0}
Let me know if I can do anything else to help
Thank you! Can you see what's in parent_dir
?
Thank you! Can you see what's in
parent_dir
?
<TemporaryDirectory '/tmp/tmp3wgxc2dl'>
I cannot reproduce.
cc @gaborbernat Do you know why virtualenv is creating that extra local
directory? Hatch looks for <venv>/{bin,Scripts}
not <venv>/local/{bin,Scripts}
I tried passing similar args as hatch to virtualenv's cli_run
(20.16.2) and got an env with a similar structure: <venv>/local/{bin,lib}
from @uranusjr in Discord:
Sounds like Debian? They hard-code
local
in the scheme so usingsysconfig
outside a virtual environment with a custom{base}
etc. is totally broken https://salsa.debian.org/cpython-team/python3/-/blob/master/debian/patches/sysconfig-debian-schemes.diff#L22
Similar: https://github.com/python-poetry/poetry/issues/5925
Thanks for this @ofek 🚀
Anytime, and thanks for debugging!
license = "GPL-3.0-only" "License :: OSI Approved :: GNU Affero General Public License v3",
I came across this issue during a search and noted the above lines in your generated pyproject.toml
. Are these two lines not in conflict. The first refers to the GPLv3 but the second to AGPLv3, no?
Steps
hatch new --init
over project [ref: https://github.com/frappe/bench]pyproject.toml
file generated (which is pretty sick btw)hatch build
throws the following errorGenerated
pyproject.toml
file:Am I missing something? Followed the docs until this point.