Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Hi. some update....i still did not succeed but have some more inputs...After thinking/digging it seems to me that the need is to name a class.... Therefore i tried with the following relationship declaration :

Package["fake"]->Class['python'] which fails with Error 400 on SERVER: Could not find resource 'Class[Python]' for relationship

Package["fake"]->Class['python::pip'] which fails with Error 400 on SERVER: Could not find resource 'Class[Python::Pip]' for relationship

Package["fake"]->Class['::python::pip'] which fails with Error 400 on SERVER: Could not find resource 'Class[::Python::Pip]' for relationship

Means i am on the wrong way again! I have to admin that i am not 100% clear about classes... I am for instance surprised because if i remove this relationship the code aiming at installing some package with pip (python::pip {'jupyter' : pkgname => 'jupyter', }) works well! (which means that the class/resource python::pip is well declared, no ?

Hi. some update....i still did not succeed but have some more inputs...After thinking/digging it seems to me that the need is to name a class.... Therefore Last update, i tried with the following relationship declaration finally succeeded :

Package["fake"]->Class['python']

which fails with Error 400 on SERVER: Could not find resource 'Class[Python]' for relationship

$piplist = ['jupyter','numpy']

Package["fake"]->Class['python::pip'] which fails with Error 400 on SERVER: Could not find resource 'Class[Python::Pip]' for relationshippython::pip { $piplist:

Package["fake"]->Class['::python::pip'] which fails with Error 400 on SERVER: Could not find resource 'Class[::Python::Pip]' for relationshipensure => 'present',

Means i am on the wrong way again! I have to admin that i am not 100% clear about classes... I am for instance surprised because if i remove this relationship the code aiming at installing some package with pip (python::pip {'jupyter' : pkgname => 'jupyter', }) works well! (which means that the class/resource python::pip is well declared, no ?}

Package["python3-pip"]->python::pip[$piplist]