Python SDK installation on Oracle Linux 8

Checking how to install the Python SDK on an Oracle Linux 8 machine

This is what I did that seemed to work

sudo dnf install python39-pip

python3.9 -m pip install openziti

However, something went wrong as I get errors running the following commands

python3 ziti-echo-server.py "$HOME/public.dns.client.json" golanghttp

Traceback (most recent call last):
File "ziti-echo-server.py", line 39, in
run(sys.argv[1], sys.argv[2])
File "ziti-echo-server.py", line 20, in run
ztx = openziti.load(ziti_id)
AttributeError: module 'openziti' has no attribute 'load'

python3 ziti-http-server.py "$HOME/public.dns.client.json" golanghttp

Traceback (most recent call last):
File "ziti-http-server.py", line 27, in
openziti.monkeypatch(bindings={(hostName, serverPort): cfg})
AttributeError: module 'openziti' has no attribute 'monkeypatch'

PS.. these commands dont generate the errors when I run them locally on a MacOS.. so something has happened with the install.. / config.

let me know if you have any tips

The version from open ziti shows:

versioneer-0.22 (GitHub - python-versioneer/python-versioneer: version-string management for VCS-controlled trees)

the version from linux side (i am using ubuntu 20.04) is:

print (openziti.version)
0.1.0
openziti.load (".")
Traceback (most recent call last):
File "", line 1, in
AttributeError: module 'openziti' has no attribute 'load'
dir(openziti)
['author', 'builtins', 'cached', 'doc', 'file', 'loader', 'meta', 'name', 'package', 'path', 'spec', 'version']

I didn't run on MacOS, maybe MacOS has newer version of openziti module.

Please update to latest.

pip install --upgrade openziti

Are you on Windows? it is not supported yet.

1 Like

Hi Eugene, i am not getting any newer versions on linux.

~$ pip3 install --upgrade openziti
Requirement already up-to-date: openziti in ./.local/lib/python3.8/site-packages (0.1.0)

Confirming all working now after the upgrade :slight_smile:

1 Like

I was using an Oracle Linux 8 micro compute.