robocorp / rcc

Repeatable, movable and isolated Python environments for your automation. 🚀
https://robocorp.com/docs/
Apache License 2.0
461 stars 97 forks source link

Error building with uv `0.1.38`. RCC version: `v17.28.4` #62

Closed fabioz closed 6 months ago

fabioz commented 6 months ago

conda.yaml:

channels:
- conda-forge
dependencies:
- python=3.11
- uv=0.1.38
- robocorp-truststore=0.8.0
- pip:
  - --use-feature=truststore
  - sema4ai-actions==0.3.1
  - pydantic==2.7.1
  - untangle==1.2.1

Error message:


Robocorp Code: Unable to create environment
=============================================

There was an error creating the environment for:

"C:\Users\fabio\AppData\Local\robocorp\.robocorp_code\pkg-to-conda\84f8ca17eff6\conda.yaml"

The full output to diagnose the issue is shown below.
The most common reasons and fixes for this failure are:

1. Dependencies specified are not resolvable.

    In this case, open "C:\Users\fabio\AppData\Local\robocorp\.robocorp_code\pkg-to-conda\84f8ca17eff6\conda.yaml"
    and update the dependencies accordingly (after saving
    the environment will be automatically updated).

2. There's some intermittent network failure or some active firewall.

    In this case, fix the network connectivity issue and chose one of the options below:

    - Retry restarting VSCode using the command:

      "Developer: Reload Window"

    - Clear all environments and restart Robocorp code (advised if you suspect
      that some environment was partially created and is corrupt):

      "Robocorp: Clear Robocorp (RCC) environments and restart Robocorp Code"

If you still can't get it to work, please submit an issue to Robocorp using the command:

  "Robocorp: Submit issue to Robocorp".

Full error message
====================

Error running: c:\Users\fabio\.vscode\extensions\robocorp.robocorp-code-1.22.0-win32-x64\bin\rcc.exe holotree variables --space vscode-01 C:\Users\fabio\AppData\Local\robocorp\.robocorp_code\pkg-to-conda\84f8ca17eff6\conda.yaml --json --no-retry-build --no-pyc-management --controller RobocorpCode.
ROBOCORP_HOME: 

Stdout: 
Stderr: Note! For now, resolved effective environment configuration file is "C:\\Users\\fabio\\AppData\\Local\\robocorp\\.robocorp_code\\pkg-to-conda\\84f8ca17eff6\\conda.yaml".
####  Progress: 00/15  v17.28.4     0.126s  Context: "Fabio Zadrozny" <THINK_RYZEN\fabio@think_ryzen> [windows_amd64/Microsoft Windows [Version 10.0.22631.3447]].
####  Progress: 01/15  v17.28.4     0.014s  Fresh [shared mode] holotree environment 70401c93-6643-fbe3-9e72-25b2bcc73269. (parent/pid: 23088/14296)
####  Progress: 02/15  v17.28.4     0.014s  Holotree blueprint is "144453f712ab2674" [windows_amd64 with 11 workers on 12 CPUs from "144453f712ab2674"].
FINAL unified conda environment descriptor:
---
channels:
- conda-forge
dependencies:
- python=3.11
- uv=0.1.38
- robocorp-truststore=0.8.0
- pip:
  - --use-feature=truststore
  - sema4ai-actions==0.3.1
  - pydantic==2.7.1
  - untangle==1.2.1
  - --use-feature=truststore
---
####  Progress: 03/15  v17.28.4     0.001s  Fill hololib from RCC_REMOTE_ORIGIN skipped. RCC_REMOTE_ORIGIN was not defined.
####  Progress: 04/15  v17.28.4     0.000s  Cleanup holotree stage for fresh install.
####  Progress: 05/15  v17.28.4     0.001s  Build environment into holotree stage "c:\\ProgramData\\robocorp\\ht\\h545e18d_44412bd2016a11t".
####  Progress: 06/15  v17.28.4     0.001s  Restore partial environment into holotree stage "c:\\ProgramData\\robocorp\\ht\\h545e18d_44412bd2016a11t".
####  Progress: 07/15  v17.28.4     0.107s  Running micromamba phase. (micromamba v1.5.8) [layer: 322568f54ff3fbb2]
####  Progress: 08/15  v17.28.4    45.726s  Running uv install phase. (uv v0.1.38) [layer: 144453f712ab2674]
Process 18888: exit status 2, command: c:\ProgramData\robocorp\ht\h545e18d_44412bd2016a11t\Library\bin\uv.exe [pip install --link-mode copy --color never --cache-dir C:\Users\fabio\AppData\Local\robocorp\uvcache --find-links C:\Users\fabio\AppData\Local\robocorp\wheels --requirement C:\Users\fabio\AppData\Local\robocorp\temp\e8146abc19d63bb0\require_66353341.txt] [v17.28.4/14296]
Fatal [uv [2/2]]: exit status 2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@  From rcc "v17.28.4" (controller: "RobocorpCode") point of view, "uv install" was FAILURE, reason: "exit status 2". See details above.  @@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
---  installation plan "330a486fb9462601" 2024-05-03T15:56:01-03:00 [force: false, fresh: true| rcc v17.28.4]  ---

---  plan blueprint @0.000s  ---

channels:
- conda-forge
dependencies:
- python=3.11
- uv=0.1.38
- robocorp-truststore=0.8.0
- pip:
  - --use-feature=truststore
  - sema4ai-actions==0.3.1
  - pydantic==2.7.1
  - untangle==1.2.1
  - --use-feature=truststore

---  micromamba plan @0.043s  ---

Transaction

  Prefix: C:\ProgramData\robocorp\ht\h545e18d_44412bd2016a11t

  Updating specs:

   - python=3.11
   - uv=0.1.38
   - robocorp-truststore=0.8.0

  Package                     Version  Build               Channel           Size
-----------------------------------------------------------------------------------
  Install:
-----------------------------------------------------------------------------------

  + libexpat                    2.6.2  h63175ca_0          conda-forge      139kB
  + ucrt                 10.0.22621.0  h57928b3_0          conda-forge     Cached
  + ca-certificates          2024.2.2  h56e8100_0          conda-forge     Cached
  + vc14_runtime          14.38.33130  h82b7239_18         conda-forge     Cached
  + vs2015_runtime        14.38.33130  hcb4865c_18         conda-forge     Cached
  + vc                           14.3  hcf57466_18         conda-forge     Cached
  + tk                         8.6.13  h5226925_1          conda-forge     Cached
  + openssl                     3.3.0  hcfcfb64_0          conda-forge     Cached
  + libzlib                    1.2.13  hcfcfb64_5          conda-forge     Cached
  + libffi                      3.4.2  h8ffe710_5          conda-forge     Cached
  + bzip2                       1.0.8  hcfcfb64_5          conda-forge     Cached
  + libsqlite                  3.45.3  hcfcfb64_0          conda-forge     Cached
  + xz                          5.2.6  h8d14728_0          conda-forge     Cached
  + uv                         0.1.38  ha08ef0e_0          conda-forge        7MB
  + tzdata                      2024a  h0c530f3_0          conda-forge     Cached
  + python                     3.11.9  h631f459_0_cpython  conda-forge       18MB
  + wheel                      0.43.0  pyhd8ed1ab_1        conda-forge     Cached
  + setuptools                 69.5.1  pyhd8ed1ab_0        conda-forge     Cached
  + pip                          24.0  pyhd8ed1ab_0        conda-forge     Cached
  + robocorp-truststore         0.8.0  pyhd8ed1ab_0        conda-forge       21kB

  Summary:

  Install: 20 packages

  Total download: 26MB

-----------------------------------------------------------------------------------

Transaction starting
Linking libexpat-2.6.2-h63175ca_0
Linking ucrt-10.0.22621.0-h57928b3_0
Linking ca-certificates-2024.2.2-h56e8100_0
Linking vc14_runtime-14.38.33130-h82b7239_18
Linking vs2015_runtime-14.38.33130-hcb4865c_18
Linking vc-14.3-hcf57466_18
Linking tk-8.6.13-h5226925_1
Linking openssl-3.3.0-hcfcfb64_0
Linking libzlib-1.2.13-hcfcfb64_5
Linking libffi-3.4.2-h8ffe710_5
Linking bzip2-1.0.8-hcfcfb64_5
Linking libsqlite-3.45.3-hcfcfb64_0
Linking xz-5.2.6-h8d14728_0
Linking uv-0.1.38-ha08ef0e_0
Linking tzdata-2024a-h0c530f3_0
Linking python-3.11.9-h631f459_0_cpython
Linking wheel-0.43.0-pyhd8ed1ab_1
Linking setuptools-69.5.1-pyhd8ed1ab_0
Linking pip-24.0-pyhd8ed1ab_0
Linking robocorp-truststore-0.8.0-pyhd8ed1ab_0

Transaction finished

To activate this environment, use:

    micromamba activate C:\ProgramData\robocorp\ht\h545e18d_44412bd2016a11t

Or to execute a single command in this environment, use:

    micromamba run -p C:\ProgramData\robocorp\ht\h545e18d_44412bd2016a11t mycommand

---  micromamba layer complete [on layered holotree]  ---

---  uv plan @45.453s  ---

Command ["c:\\ProgramData\\robocorp\\ht\\h545e18d_44412bd2016a11t\\Library\\bin\\uv.exe" "pip" "install" "--link-mode" "copy" "--color" "never" "--cache-dir" "C:\\Users\\fabio\\AppData\\Local\\robocorp\\uvcache" "--find-links" "C:\\Users\\fabio\\AppData\\Local\\robocorp\\wheels" "--requirement" "C:\\Users\\fabio\\AppData\\Local\\robocorp\\temp\\e8146abc19d63bb0\\require_66353341.txt"] at "c:\\ProgramData\\robocorp\\ht\\h545e18d_44412bd2016a11t":
error: Unexpected '-', expected '-c', '-e', '-r' or the start of a requirement at C:\Users\fabio\AppData\Local\robocorp\temp\e8146abc19d63bb0\require_66353341.txt:1:1

####  Progress: 15/15  v17.28.4     0.030s  Fresh holotree done [with 11 workers on 12 CPUs].
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@  From rcc "v17.28.4" (controller: "RobocorpCode") point of view, "environment creation" was FAILURE, reason: "Failed to create environment, reason Could not create environment..". See details above.  @@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Failed to create environment, reason Could not create environment..
[rcc] exit status will be: 6!

Error running: c:\Users\fabio\.vscode\extensions\robocorp.robocorp-code-1.22.0-win32-x64\bin\rcc.exe holotree variables --space vscode-01 C:\Users\fabio\AppData\Local\robocorp\.robocorp_code\pkg-to-conda\84f8ca17eff6\conda.yaml --json --no-retry-build --no-pyc-management --controller RobocorpCode.
ROBOCORP_HOME: 

Stdout: 
Stderr: Note! For now, resolved effective environment configuration file is "C:\\Users\\fabio\\AppData\\Local\\robocorp\\.robocorp_code\\pkg-to-conda\\84f8ca17eff6\\conda.yaml".
####  Progress: 00/15  v17.28.4     0.126s  Context: "Fabio Zadrozny" <THINK_RYZEN\fabio@think_ryzen> [windows_amd64/Microsoft Windows [Version 10.0.22631.3447]].
####  Progress: 01/15  v17.28.4     0.014s  Fresh [shared mode] holotree environment 70401c93-6643-fbe3-9e72-25b2bcc73269. (parent/pid: 23088/14296)
####  Progress: 02/15  v17.28.4     0.014s  Holotree blueprint is "144453f712ab2674" [windows_amd64 with 11 workers on 12 CPUs from "144453f712ab2674"].
FINAL unified conda environment descriptor:
---
channels:
- conda-forge
dependencies:
- python=3.11
- uv=0.1.38
- robocorp-truststore=0.8.0
- pip:
  - --use-feature=truststore
  - sema4ai-actions==0.3.1
  - pydantic==2.7.1
  - untangle==1.2.1
  - --use-feature=truststore
---
####  Progress: 03/15  v17.28.4     0.001s  Fill hololib from RCC_REMOTE_ORIGIN skipped. RCC_REMOTE_ORIGIN was not defined.
####  Progress: 04/15  v17.28.4     0.000s  Cleanup holotree stage for fresh install.
####  Progress: 05/15  v17.28.4     0.001s  Build environment into holotree stage "c:\\ProgramData\\robocorp\\ht\\h545e18d_44412bd2016a11t".
####  Progress: 06/15  v17.28.4     0.001s  Restore partial environment into holotree stage "c:\\ProgramData\\robocorp\\ht\\h545e18d_44412bd2016a11t".
####  Progress: 07/15  v17.28.4     0.107s  Running micromamba phase. (micromamba v1.5.8) [layer: 322568f54ff3fbb2]
####  Progress: 08/15  v17.28.4    45.726s  Running uv install phase. (uv v0.1.38) [layer: 144453f712ab2674]
Process 18888: exit status 2, command: c:\ProgramData\robocorp\ht\h545e18d_44412bd2016a11t\Library\bin\uv.exe [pip install --link-mode copy --color never --cache-dir C:\Users\fabio\AppData\Local\robocorp\uvcache --find-links C:\Users\fabio\AppData\Local\robocorp\wheels --requirement C:\Users\fabio\AppData\Local\robocorp\temp\e8146abc19d63bb0\require_66353341.txt] [v17.28.4/14296]
Fatal [uv [2/2]]: exit status 2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@  From rcc "v17.28.4" (controller: "RobocorpCode") point of view, "uv install" was FAILURE, reason: "exit status 2". See details above.  @@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
---  installation plan "330a486fb9462601" 2024-05-03T15:56:01-03:00 [force: false, fresh: true| rcc v17.28.4]  ---

---  plan blueprint @0.000s  ---

channels:
- conda-forge
dependencies:
- python=3.11
- uv=0.1.38
- robocorp-truststore=0.8.0
- pip:
  - --use-feature=truststore
  - sema4ai-actions==0.3.1
  - pydantic==2.7.1
  - untangle==1.2.1
  - --use-feature=truststore

---  micromamba plan @0.043s  ---

Transaction

  Prefix: C:\ProgramData\robocorp\ht\h545e18d_44412bd2016a11t

  Updating specs:

   - python=3.11
   - uv=0.1.38
   - robocorp-truststore=0.8.0

  Package                     Version  Build               Channel           Size
-----------------------------------------------------------------------------------
  Install:
-----------------------------------------------------------------------------------

  + libexpat                    2.6.2  h63175ca_0          conda-forge      139kB
  + ucrt                 10.0.22621.0  h57928b3_0          conda-forge     Cached
  + ca-certificates          2024.2.2  h56e8100_0          conda-forge     Cached
  + vc14_runtime          14.38.33130  h82b7239_18         conda-forge     Cached
  + vs2015_runtime        14.38.33130  hcb4865c_18         conda-forge     Cached
  + vc                           14.3  hcf57466_18         conda-forge     Cached
  + tk                         8.6.13  h5226925_1          conda-forge     Cached
  + openssl                     3.3.0  hcfcfb64_0          conda-forge     Cached
  + libzlib                    1.2.13  hcfcfb64_5          conda-forge     Cached
  + libffi                      3.4.2  h8ffe710_5          conda-forge     Cached
  + bzip2                       1.0.8  hcfcfb64_5          conda-forge     Cached
  + libsqlite                  3.45.3  hcfcfb64_0          conda-forge     Cached
  + xz                          5.2.6  h8d14728_0          conda-forge     Cached
  + uv                         0.1.38  ha08ef0e_0          conda-forge        7MB
  + tzdata                      2024a  h0c530f3_0          conda-forge     Cached
  + python                     3.11.9  h631f459_0_cpython  conda-forge       18MB
  + wheel                      0.43.0  pyhd8ed1ab_1        conda-forge     Cached
  + setuptools                 69.5.1  pyhd8ed1ab_0        conda-forge     Cached
  + pip                          24.0  pyhd8ed1ab_0        conda-forge     Cached
  + robocorp-truststore         0.8.0  pyhd8ed1ab_0        conda-forge       21kB

  Summary:

  Install: 20 packages

  Total download: 26MB

-----------------------------------------------------------------------------------

Transaction starting
Linking libexpat-2.6.2-h63175ca_0
Linking ucrt-10.0.22621.0-h57928b3_0
Linking ca-certificates-2024.2.2-h56e8100_0
Linking vc14_runtime-14.38.33130-h82b7239_18
Linking vs2015_runtime-14.38.33130-hcb4865c_18
Linking vc-14.3-hcf57466_18
Linking tk-8.6.13-h5226925_1
Linking openssl-3.3.0-hcfcfb64_0
Linking libzlib-1.2.13-hcfcfb64_5
Linking libffi-3.4.2-h8ffe710_5
Linking bzip2-1.0.8-hcfcfb64_5
Linking libsqlite-3.45.3-hcfcfb64_0
Linking xz-5.2.6-h8d14728_0
Linking uv-0.1.38-ha08ef0e_0
Linking tzdata-2024a-h0c530f3_0
Linking python-3.11.9-h631f459_0_cpython
Linking wheel-0.43.0-pyhd8ed1ab_1
Linking setuptools-69.5.1-pyhd8ed1ab_0
Linking pip-24.0-pyhd8ed1ab_0
Linking robocorp-truststore-0.8.0-pyhd8ed1ab_0

Transaction finished

To activate this environment, use:

    micromamba activate C:\ProgramData\robocorp\ht\h545e18d_44412bd2016a11t

Or to execute a single command in this environment, use:

    micromamba run -p C:\ProgramData\robocorp\ht\h545e18d_44412bd2016a11t mycommand

---  micromamba layer complete [on layered holotree]  ---

---  uv plan @45.453s  ---

Command ["c:\\ProgramData\\robocorp\\ht\\h545e18d_44412bd2016a11t\\Library\\bin\\uv.exe" "pip" "install" "--link-mode" "copy" "--color" "never" "--cache-dir" "C:\\Users\\fabio\\AppData\\Local\\robocorp\\uvcache" "--find-links" "C:\\Users\\fabio\\AppData\\Local\\robocorp\\wheels" "--requirement" "C:\\Users\\fabio\\AppData\\Local\\robocorp\\temp\\e8146abc19d63bb0\\require_66353341.txt"] at "c:\\ProgramData\\robocorp\\ht\\h545e18d_44412bd2016a11t":
error: Unexpected '-', expected '-c', '-e', '-r' or the start of a requirement at C:\Users\fabio\AppData\Local\robocorp\temp\e8146abc19d63bb0\require_66353341.txt:1:1

####  Progress: 15/15  v17.28.4     0.030s  Fresh holotree done [with 11 workers on 12 CPUs].
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@  From rcc "v17.28.4" (controller: "RobocorpCode") point of view, "environment creation" was FAILURE, reason: "Failed to create environment, reason Could not create environment..". See details above.  @@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Failed to create environment, reason Could not create environment..
[rcc] exit status will be: 6!
fabioz commented 6 months ago

Actually, I see the error on the Robocorp Code side. It shouldn't add --use-feature=truststore