I've simply install xid using command pip install xid
then created a simple file to check if it's working fine or not.
first.py
from xid import Xid
guid = Xid()
print(guid.string())
and then run it as below, but could not run and getting the exception as below.
root@f0b2d7f8a449:/demo# python first.py
Traceback (most recent call last):
File "first.py", line 2, in <module>
guid = Xid()
File "/usr/local/lib/python3.8/site-packages/xid.py", line 92, in __init__
id = generate_new_xid()
File "/usr/local/lib/python3.8/site-packages/xid.py", line 71, in generate_new_xid
id[4] = machineID[0]
TypeError: 'map' object is not subscriptable
root@f0b2d7f8a449:/demo#
If any one can check and help me to fix this issue would be great. tx.
I've simply install xid using command
pip install xidthen created a simple file to check if it's working fine or not.
first.py
and then run it as below, but could not run and getting the exception as below.
If any one can check and help me to fix this issue would be great. tx.