The issue that it tries to do a cross-platform build, thus it wants to have a runtime/cgo
module enabled.
And since the error have not changed, it’s still trying.
I tried to build uplink-c and have not had any problems.
Windows 11
- Installed GO from Download and install - The Go Programming Language
- Installed git
winget install Git.Git
- Installed Visual Studio Build Tools
winget install Microsoft.VisualStudio.2022.BuildTools
- Installed python from MS Store
- Installed TDM-GCC 10.3.0 release | tdm-gcc (jmeubank.github.io)
- Installed uplink-python
pip install uplink-python
- built
libuplinkc.so
git clone -b v1.2.2 https://github.com/storj/uplink-c
cd uplink-c
go build -o libuplinkc.so -buildmode=c-shared
- Copied
libuplinkc.so
to thepython310\site-packages\uplink-python
(C:\users\user\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages\uplink_python
in my case)
Then updated hello_storj.py
from the package with actual API Key, and filename (I used the hello_storj.py
file) and successfully run it.