Python storj sdk doesnt support

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

  1. Installed GO from Download and install - The Go Programming Language
  2. Installed git
winget install Git.Git
  1. Installed Visual Studio Build Tools
winget install  Microsoft.VisualStudio.2022.BuildTools
  1. Installed python from MS Store
  2. Installed TDM-GCC 10.3.0 release | tdm-gcc (jmeubank.github.io)
  3. Installed uplink-python
pip install uplink-python
  1. 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
  1. Copied libuplinkc.so to the python310\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.

1 Like