poise / poise-python

A Chef cookbook to provide a unified interface for installing Python, managing Python packages, and creating virtualenvs.
Apache License 2.0
124 stars 108 forks source link

Gives an: No metadata file found for python error, when trying add this through Vagrant's Cheffile #119

Closed hayetech closed 6 years ago

hayetech commented 6 years ago

Hi,

Upon trying to install this cookbook directly through 'python', :git => 'https://github.com/poise/poise-python.git' in Cheffile

It gives the following error, whenever I try to vagrant up,

No metadata file found for python from https://github.com/poise/poise-python.git#master! If this should be a cookbook, you might consider contributing a metadata file upstream or forking the cookbook to add your own metadata file. (Librarian::Error)

I'm trying to setup django environment in ubuntu through vagrant and virtual box (following this tutorial).

Note: The above linked tutorial follows this deprecated version of python cookbook and upon viewing this stackflow answer, I just changed the URL for python in the cheffile of this tutorial.

Am I doing this right or is there another way to alter the deprecated python cookbook? @coderanger

coderanger commented 6 years ago

So my cookbooks aren't usable directly for a variety of complex reasons. The way you use them is from the Chef Supermarket. You can pull from git, but you need a special Berkshelf plugin and there is no equivalent for Librarian.

Related: Librarian is super duper dead and you should very not be using it. At a minimum use Berkshelf, but probably look at using Policyfiles :)

merteroglu01 commented 6 years ago

How can we solve this problem ?

hayetech commented 6 years ago

By reconfiguring your vagrantfile to use berkshelf and in the process inflicting the required changes in the cheffile, if needed.