Giter Site home page Giter Site logo

pipenv.utils.convert_deps_to_pip removed about shub HOT 3 OPEN

wRAR avatar wRAR commented on July 18, 2024 3
pipenv.utils.convert_deps_to_pip removed

from shub.

Comments (3)

elacuesta avatar elacuesta commented on July 18, 2024

#418 released with shub==2.14.1 as a workaround, let's keep this issue open as a task for replacing these functions with pipenv's public API.

from shub.

alepuccetti avatar alepuccetti commented on July 18, 2024

I am using shub==2.14.2 and when trying to deploy with a Pipfile I get this error:

File "~/.local/share/virtualenvs/my-project-4mAwm4Xi/lib/python3.9/site-packages/shub/deploy.py", line 193, in _get_pipfile_requirements
    return open(_add_sources(convert_deps_to_pip(deps), _sources=sources.encode(), tmpdir=tmpdir), 'rb')
  File "~/.local/share/virtualenvs/my-project-4mAwm4Xi/lib/python3.9/site-packages/shub/deploy.py", line 199, in _add_sources
    with open(_reqs_file, 'rb') as f:
TypeError: expected str, bytes or os.PathLike object, not list

I did some digging and it seems that convert_deps_to_pip(deps) returns a list into _reqs_file (fisrt argument of _add_sources) and this makes fail the open as in the error stack I provided above.
The error happen before reaching the cloud in the preparation stage. The only workaround I found was to create a requirements.txt file and run shub deploy using that file.

from shub.

elacuesta avatar elacuesta commented on July 18, 2024

Please try again with v2.14.3

from shub.

Related Issues (20)

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.