State install Tk - anyone have any luck on Windows 10

C:\Users\xxxx\apData\Local\activestate\b381a980\bin>state install Tk
║ Installing Package ║

Installing Runtime
Installing your runtime and dependencies.
View the Build Log to follow the build progress in detail: C:\Users\xxx\AppData\Local\Temp\build-log-2842450936
Building 2/3 [========================>-------------] 67 %
Installing 156/157 [======================================] 99 %

Something Went Wrong
x Could not install dependencies
x Not all artifacts could be installed:
Build failed with error message: One or more artifacts failed to build or were skipped. :: Failed to build “Tk@804.034”, error reported: Builder retur
ned with exit code 2.

[version (e0686162-c207-5f11-8c62-bab13b79cf21)] Build completed successfully
[Tk (74b6e922-0db7-5118-b997-ae9e1b1c1b91)] Build failed with error: Builder returned with exit code 2
[Tk (74b6e922-0db7-5118-b997-ae9e1b1c1b91)] 2021-10-02T14:07:48.165685: Downloading builder for 74b6e922-0db7-5118-b997-ae9e1b1c1b91 from s3://platform-sources/builder/aaae6fc9dec3be7b98fa90ba3dcfe37c5330b5a04fc16b1b77cfbc5bd1693f77/perl-module-builder.tar.gz
[Tk (74b6e922-0db7-5118-b997-ae9e1b1c1b91)] 2021-10-02T14:07:48.310720: Downloading s3://platform-sources/builder/aaae6fc9dec3be7b98fa90ba3dcfe37c5330b5a04fc16b1b77cfbc5bd1693f77/perl-module-builder.tar.gz to C:\Users\ContainerAdministrator\AppData\Local\Temp\perl-module-builder.tar.gz…
[Tk (74b6e922-0db7-5118-b997-ae9e1b1c1b91)] 2021-10-02T14:07:48.411723: Validating C:\Users\ContainerAdministrator\AppData\Local\Temp\perl-module-builder.tar.gz against checksum aaae6fc9dec3be7b98fa90ba3dcfe37c5330b5a04fc16b1b77cfbc5bd1693f77…
[Tk (74b6e922-0db7-5118-b997-ae9e1b1c1b91)] 2021-10-02T14:07:48.418721: Builder downloaded and unpacked.
[Tk (74b6e922-0db7-5118-b997-ae9e1b1c1b91)] 2021-10-02T14:07:48.420728: Downloading ingredient 74b6e922-0db7-5118-b997-ae9e1b1c1b91 from s3://platform-sources/data-acquisition/fea6b144c723528a2206c8cd9175844032ee9c14ee37791f0f151e5e5b293fe2/Tk-804.034.tar.gz
[Tk (74b6e922-0db7-5118-b997-ae9e1b1c1b91)] 2021-10-02T14:07:48.422727: Downloading s3://platform-sources/data-acquisition/fea6b144c723528a2206c8cd9175844032ee9c14ee37791f0f151e5e5b293fe2/Tk-804.034.tar.gz to C:\Users\ContainerAdministrator\AppData\Local\Temp\Tk-804.034.tar.gz…
[Tk (74b6e922-0db7-5118-b997-ae9e1b1c1b91)] 2021-10-02T14:07:48.650687: Validating C:\Users\ContainerAdministrator\AppData\Local\Temp\Tk-804.034.tar.gz against checksum fea6b144c723528a2206c8cd9175844032ee9c14ee37791f0f151e5e5b293fe2…

Hi @rsenright,

Thanks for writing! Can you share additional details, such as what version of Perl you installed with the state tool and what steps you took before encountering this error?


Perl version 5.32.1 was installed on 2 machines but ‘state install Tk’ does not function.

See build log.

Binary build 32.1r9 (for the Perl install)

I tried this on a Dell Inspiron and Thinkpag T430.



(Attachment build-log-2421450006 is missing)


This is a known issue that I’m currently working on. We need to import a newer version of Tk onto the platform and include some missing dependencies.

I’ll follow up here once the ingredient is building properly.

1 Like

Tk 804.036 is now imported onto the platform and successfully builds for Windows and Linux.

Please let me know if you continue to experience any problems with it.


1 Like

Thank you very much. I was able to get this installed!!

Are you able to look at Win32-API?

State install Win32-API

║ Installing Package ║
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xc0000005 code=0x0 addr=0x0 pc=0x1475b36]

goroutine 450 [running]:
github/ActiveState/cli/pkg/platform/model.resolveSolverError(0x1cd56e0, 0xc0004b6b70, 0xc000a52d80, 0x406)
D:/a/cli/cli/pkg/platform/model/recipe.go:225 +0x356
github/ActiveState/cli/pkg/platform/model.FetchRecipe(0xc000a02960, 0x24, 0xc0000d77c1, 0x9, 0xc0000d77cb, 0x4, 0x26d3090, 0x7, 0x1a59959, 0x8)
D:/a/cli/cli/pkg/platform/model/recipe.go:181 +0x2d3
github/ActiveState/cli/internal/runners/packages.executePackageOperation(0x1cfc138, 0xc0001b4600, 0xc0000340d0, 0x9, 0x0, 0x0, 0x1a5504a, 0x5, 0x1a584dc, 0x7, …)
D:/a/cli/cli/internal/runners/packages/packages.go:116 +0x58d
github/ActiveState/cli/internal/runners/packages.(*Install).Run(0xc00023b820, 0xc0000340d0, 0x9, 0x0, 0x0, 0x1a584dc, 0x7, 0x1a59959, 0x8, 0xc01f18aba4, …)
D:/a/cli/cli/internal/runners/packages/install.go:26 +0xd3
github/ActiveState/cli/cmd/state/internal/cmdtree.newInstallCommand.func1(0xc00008a000, 0xc000970800, 0x1, 0x1, 0x1, 0xad28fd)
D:/a/cli/cli/cmd/state/internal/cmdtree/packages.go:72 +0x8c
github/ActiveState/cli/internal/captain.(*Command).runner.func1(0x0, 0x0)
D:/a/cli/cli/internal/captain/command.go:537 +0xea
github/ActiveState/cli/internal/sighandler.(*sigHandler).WaitForFunc.func1(0xc00057c180, 0xc000516ab0)
D:/a/cli/cli/internal/sighandler/awaiting.go:46 +0x5a
created by github/ActiveState/cli/internal/sighandler.(*sigHandler).WaitForFunc
D:/a/cli/cli/internal/sighandler/awaiting.go:44 +0xb8


That looks like a bug in the state tool itself rather than with WIn32-API.

I haven’t been able to reproduce it on my side, but I’ll send it over to the team that is responsible for that code.

Actually, now I have reproduced it.

I’ll let you know what the developers find.

Ok, so there’s two issues here.

  1. You’re attempting to add a Windows only package to a project that contains a Linux version. If you did it on the platform website, you’d see a solver error.

You can see it if you try it here:

  1. The state tool is handling the solver error badly. This piece will need to wait for the state tool developers.

There’s a few methods for handling the solver error.

  1. Create a separate project for Windows
  2. Create a separate branch for Windows
  3. Add the “Win32” bundle to the project in the UI.

The Win32 bundle will add Win32::API in a conditional manner that excludes it from the Linux platform.

Try running:
state bundles install Win32

Thank you I did remove ‘Linux’ from the project. Not sure if that would help.

I will try your options.
Thank you so much.

Thank you so much that was very much helpful.
My next issue is with DBD-Pg
Can you try to install this? It installs but the call to utilize it does not work.
use DBD::Pg;

Can’t load ‘C:/Users/asus/AppData/Local/ActiveState/cache/00ad50ac/site/lib/auto/DBD/Pg/Pg.dll’ for module DBD::Pg: load_file:The specified module could not be found at C:/Users/asus/AppData/Local/ActiveState/cache/00ad50ac/lib/ line 193.
at AlarmReport.plw line 16.
Compilation failed in require at AlarmReport.plw line 16.
BEGIN failed–compilation aborted at AlarmReport.plw line 16.

It looks like some sort of dll issue.
Thanks again.

I just responded on the other thread.

Thank you I figured it was a different issue so I should open it’s own dialogue.