Coder Social home page Coder Social logo

Comments (18)

domoritz avatar domoritz commented on July 17, 2024 2

Ah, looks like my mistake was in the testfolder. My Pipfile was corrupted. It works for me now. Thanks for bearing with me and thanks for the plugin!

from fish-pipenv.

sentriz avatar sentriz commented on July 17, 2024

can this be closed now?

from fish-pipenv.

domoritz avatar domoritz commented on July 17, 2024

I just provided the installation instructions in the PR but it's not working for me as expected. Can you give it a try?

from fish-pipenv.

sentriz avatar sentriz commented on July 17, 2024

sorry I misread. it is working for me with fundle. let me try omf

from fish-pipenv.

domoritz avatar domoritz commented on July 17, 2024

Thanks!

from fish-pipenv.

sentriz avatar sentriz commented on July 17, 2024

tested out omf in a container.
it looks like maybe omf doesn't recognise the conf.d layout of this plugin. eg. it works if you symlink ~/.local/share/omf/pkg/fish-pipenv/conf.d/pipenv.fish to ~/.local/share/omf/pkg/fish-pipenv/init.fish.
so I wonder if there is a layout we could use that both omf plus fisher/fundle/etc understand

from fish-pipenv.

sentriz avatar sentriz commented on July 17, 2024

it looks like just having an init.fish in the root of this repo will work for

  • oh my fish
  • fundle
  • fisher
  • are there more?

from fish-pipenv.

domoritz avatar domoritz commented on July 17, 2024

I think https://github.com/oh-my-fish/oh-my-fish is pretty popular. It would be super sweet if it was supported. I'm not aware of any other popular fish plugin managers.

from fish-pipenv.

sentriz avatar sentriz commented on July 17, 2024

ok for the meantime I've moved to init.fish. can you try uninstall what you currently have and try that omf install command again? (or maybe an upgrade might work) and exec fish

from fish-pipenv.

domoritz avatar domoritz commented on July 17, 2024

Hmm, maybe I'm holding it wrong but it doesn't seem to work for me.

> omf install https://github.com/sentriz/fish-pipenv
> ls dir
Pipfile Pipfile.lock
> cd dir
... nothing happens

from fish-pipenv.

sentriz avatar sentriz commented on July 17, 2024

did you exec fish after the omf install?

from fish-pipenv.

domoritz avatar domoritz commented on July 17, 2024

Yes

from fish-pipenv.

sentriz avatar sentriz commented on July 17, 2024

strange. it's working for me. can you ls ~/.local/share/omf/pkg/fish-pipenv/?
also for me it didn't work straight away. had to do a $ cd ..; cd - once or twice

from fish-pipenv.

domoritz avatar domoritz commented on July 17, 2024
> ls ~/.local/share/omf/pkg/fish-pipenv/                                                                                                                                               
README.md init.fish

from fish-pipenv.

domoritz avatar domoritz commented on July 17, 2024

I must be doing something wrong because it also doesn't work for me if I use fisher. I'll reinstall some things and see what happens.

from fish-pipenv.

sentriz avatar sentriz commented on July 17, 2024

here it seems to be working a fresh alpine docker

manjaro, ~, sudo docker run -it alpine /bin/sh
/ # apk add python3 fish curl git
OK: 95 MiB in 36 packages
/ # pip3 install --user pipenv
Collecting pipenv
Successfully installed certifi-2019.9.11 pipenv-2018.11.26 virtualenv-16.7.5 virtualenv-clone-0.5.3
/ # exec fish
Welcome to fish, the friendly interactive shell
root@9f06f765deba /# curl -L https://get.oh-my.fish | fish
Updating https://github.com/oh-my-fish/packages-main master... Done!
Installing package default
✔ default successfully installed.
Installation successful!
Welcome to fish, the friendly interactive shell
⋊> / set -U fish_user_paths ~/.local/bin $fish_user_paths
⋊> / cd
⋊> ~ mkdir testrepo
⋊> ~ cd testrepo/
⋊> ~/testrepo pipenv install
Pipfile: /root/testrepo/Pipfile
Using /usr/bin/python3.7 (3.7.3) to create virtualenv…
⠦ Creating virtual environment...Already using interpreter /usr/bin/python3.7
Installing setuptools, pip, wheel...
done.
✔ Successfully created virtual environment! 
Virtualenv location: /root/.local/share/virtualenvs/testrepo-kSern7h6
Creating a Pipfile for this project…
Pipfile.lock not found, creating…
⋊> ~/testrepo cd
⋊> ~ omf install https://github.com/sentriz/fish-pipenv
✔ fish-pipenv successfully installed.
⋊> ~ ll ~/.local/share/omf/pkg/fish-pipenv/
total 8K     
-rw-r--r--    1 root     root        2.8K Sep 18 21:36 README.md
-rw-r--r--    1 root     root        1.3K Sep 18 21:36 init.fish
⋊> ~ exec fish
⋊> ~ cd testrepo/
Launching subshell in virtual environment…
Welcome to fish, the friendly interactive shell
⋊> ~/testrepo  source /root/.local/share/virtualenvs/testrepo-kSern7h6/bin/activate.fish
(testrepo) ⋊> ~/testrepo echo $VIRTUAL_ENV
/root/.local/share/virtualenvs/testrepo-kSern7h6
(testrepo) ⋊> ~/testrepo cd
⋊> ~ echo $VIRTUAL_ENV

⋊> ~   

edit: I've just run the same test for fisher and that is working too

from fish-pipenv.

domoritz avatar domoritz commented on July 17, 2024

Ah, not corrupted. I just didn't have a corresponding virtual environment yet. 🤦‍♂

from fish-pipenv.

jorgebucaran avatar jorgebucaran commented on July 17, 2024

Note: Fisher instructions should be fisher install sentriz/fish-pipenv. 😄 @domoritz

from fish-pipenv.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.