Skip to content
This repository has been archived by the owner on Jun 18, 2019. It is now read-only.

Package names like 'Django==1.5.12' not supported #26

Open
jblaine opened this issue Jan 7, 2016 · 3 comments
Open

Package names like 'Django==1.5.12' not supported #26

jblaine opened this issue Jan 7, 2016 · 3 comments

Comments

@jblaine
Copy link
Contributor

jblaine commented Jan 7, 2016

Is this syntax for packages supported (and therefore something is going unintentionally wrong), or do I need to break the version information out into a different attribute and use a version property on the resource?

[2016-01-07T12:53:00-05:00] DEBUG: Resource for python_runtime is PoisePython::Resources::PythonRuntime::Resource
[2016-01-07T12:53:00-05:00] DEBUG: [application_python_package[django==1.5.12]] Running python command: /root/hostdb.new/.virtualenv/bin/python - list --outdated django\=\=1.5.12
django (Current: 0 Latest: 1.5.12)

================================================================================
Error executing action `install` on resource 'application_python_package[django==1.5.12]'
================================================================================

Chef::Exceptions::Package
-------------------------
No candidate version available for django==1.5.12

Resource Declaration:
---------------------
# In /var/chef/cache/cookbooks/r701-hostdb/recipes/server.rb

 49:   python_package node['r701-hostdb']['django']['packages']
 50:
@coderanger
Copy link
Member

Yep, you need to use it like a normal package resource:

python_package 'Django' do
  version '1.5.12'
end

Or if you want to drive it from attributes:

python_package node['r701-hostdb']['django']['packages'].keys do
  version node['r701-hostdb']['django']['packages'].values
end

And then put things like {"Django": "1.5.12"} in the node data.

@coderanger coderanger reopened this Jan 7, 2016
@coderanger
Copy link
Member

Going to reopen this actually since I could probably support it. But not on my immediate to-do list :)

@coderanger coderanger changed the title 'No candidate version available', but there IS... Package names like 'Django==1.5.12' not supported Jan 7, 2016
@jblaine
Copy link
Contributor Author

jblaine commented Jan 7, 2016

👍

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants