Closed jgawad-nlmk closed 3 years ago
Hello @jgawad-nlmk apologies for the late reply and thank you for raising this issue to us. I can understand that this issue that you encountered might have taken you a bit of time to figure out why that ValueError exception was raised.
I will tackle this issue and get a fix as soon as possible!
Hello again, I just wanted to give you some more information about this issue. We have just merged a fix to both the documentation and the codebase.
The documentation now clearly mentions that the environment name must be lowercase (this was added to different places in the documentation).
We will also lowercase the name when creating a new environment - this is also documented just in case folks expect a different environment name (since uppercase letters where used).
Again thank you so much for reporting this issue to us and for figuring out what was happening with that error. This fix will be available on the next release, so I'm going to close this issue now, but feel free to comment here or open a new one if you encounter any issues.
Hello @FabioRosado, many thanks for fixing this!
I am trying to create a software environment using Python API, and I encounter problems.
The code below terminates with an exception:
The exception is:
It seems the problem is related to the uploading of the image. Below the printout of the last operations emitted by the call to
create_software_environment
:It looks like a result of (too) restrictive validation on the environment name, which does not permit uppercase letters. The code below, which differs only in the name of the environment (
ml-test
in place ofML-test
), succeeds:I cannot find any restrictions on the software environment name mentioned in the documentation of software environments. Perhaps they should be explicitly stated in the docs? Or maybe they would be automatically enforced by converting software environment name to lowercase? I guess the restriction comes from naming rules of image registry. Still, an end-user should not be bothered by peculiarities of technologies that Coiled uses under the hood.