Package Details: virtualfish 2.5.7-4

Git Clone URL: https://aur.archlinux.org/virtualfish.git (read-only, click to copy)
Package Base: virtualfish
Description: Fish shell tool for managing Python virtual environments
Upstream URL: https://github.com/justinmayer/virtualfish
Keywords: environment fish python virtual
Licenses: MIT
Submitter: XenGi
Maintainer: XenGi
Last Packager: XenGi
Votes: 10
Popularity: 0.52
First Submitted: 2017-09-24 15:17 (UTC)
Last Updated: 2024-04-15 09:38 (UTC)

Latest Comments

1 2 3 4 Next › Last »

ruahcra commented on 2024-03-18 01:12 (UTC) (edited on 2024-03-18 01:12 (UTC) by ruahcra)

@XenGi I think this needs 'python-poetry-core' added to makedepends

==> Extracting sources...
...
ModuleNotFoundError: No module named 'poetry'

ERROR Backend 'poetry.core.masonry.api' is not available.
==> ERROR: A failure occurred in build().
    Aborting...

s1zed commented on 2022-11-05 20:30 (UTC)

Setting up vf for the first time. Get the following message: Virtual environment activated but not shown in shell prompt. To fix, see: https://virtualfish.readthedocs.io/en/latest/install.html#customizing-your-fish-prompt Follow the instructions at that link, can cat out the fish prompt config, file is successfully modified. Run exec fish to reset things, then use vf again. Nothing has changed, prompt is no different and message still present. This happening for anyone else?

s1zed commented on 2022-11-05 20:30 (UTC)

Setting up vf for the first time. Get the following message: Virtual environment activated but not shown in shell prompt. To fix, see: https://virtualfish.readthedocs.io/en/latest/install.html#customizing-your-fish-prompt Follow the instructions at that link, can cat out the fish prompt config, file is successfully modified. Run exec fish to reset things, then use vf again. Nothing has changed, prompt is no different and message still present. This happening for anyone else?

XenGi commented on 2022-10-07 14:27 (UTC)

Thx for the hint. I fixed that.

ruahcra commented on 2022-10-07 12:10 (UTC) (edited on 2022-10-07 12:11 (UTC) by ruahcra)

Seems like the fix from this commit was accidentally removed:

https://aur.archlinux.org/cgit/aur.git/commit/?h=virtualfish&id=f4831688be183e0fb450e95e4745870e1d1bf65f

python-setuptools is still needed at runtime so it should be in depends (virtualfish will install but fail to run after installing in a new chroot)

ruahcra commented on 2021-12-09 14:00 (UTC)

Just realised this after trying to install this as one of the first packages on a fresh Arch install: "python-setuptools" is missing from depends. virtualfish uses it at runtime, e.g.: https://github.com/justinmayer/virtualfish/blob/7d63a1cfcf111de140d09b0ef0cf39e94ef80685/virtualfish/loader/__init__.py#L4 (pkg_resources is from setuptools)

XenGi commented on 2020-11-27 12:34 (UTC)

Ah OK. I didn't connect these two issues. Sure the version requirement could just be removed. I'll probably do that anyway but it would be nicer to understand how epochs work and do this "properly".

ruahcra commented on 2020-11-27 12:07 (UTC) (edited on 2020-11-27 12:08 (UTC) by ruahcra)

It's the version check that is failing to handle the epoch so putting it in package() still ends up with the same problem. Since the program itself still runs and gracefully exits with a user friendly error message when not running in fish or with fish < 3.1 (https://github.com/justinmayer/virtualfish/blob/1764c07829ffe8bdf11396ff5009ca5f4198b24a/virtualfish/loader/cli.py#L37), I think it's OK to leave out the version requirement if there's no other way around the issue with the version check for fish-git. Also another thing to consider, isn't it more likely someone has fish-git installed rather than fish < 3.1 which is will soon be more one year old? Anyway I'm content with using the virtualfish-git package for now. I would rather like to find out the proper way to handle the epoch situation in the first place - we just need someone more knowledgeable to show us the way.

XenGi commented on 2020-11-27 10:11 (UTC) (edited on 2020-11-27 10:37 (UTC) by XenGi)

I'm still not sure what the use-case for virtualfish without fish would be, so I just tried using it in bash with this result.

bash $ vf
VirtualFish isn't compatible with bash, only Fish 3.1.0+.

The upstream author also says that it requires fish>=3.1 to work, so I will keep the fish dependency in the package until someone comes up with a convincing reason to remove it.

What I did is moving fish to a runtime dependency. Because what @ruahcra said is true. The package doesn't need fish to build, it only needs it to run. I hope this solves your problem.