ConsensusGroup / Haystack

An IOTA based anonymous and secure messaging application
MIT License
2 stars 1 forks source link

Python2 vs Python3 #18

Open woywoy123 opened 4 years ago

woywoy123 commented 4 years ago

An issue has been reported where running the code with python3 will result in an error similar to;

Traceback (most recent call last): File "main.py", line 6, in from HayStack_API import HayStack, Run_HayStack_Client File "/home/XXX/github/Haystack/Test_Clients/a/HayStack_API.py", line 6, in from DynamicPublicLedger_Module import Dynamic_Public_Ledger File "/home/XXX/github/Haystack/Test_Clients/a/DynamicPublicLedger_Module.py", line 6, in from User_Modules import User_Profile File "/home/XXX/github/Haystack/Test_Clients/a/User_Modules.py", line 10, in class Initialization(Configuration, Tools): TypeError: Cannot create a consistent method resolution order (MRO) for bases Configuration, Tools

This error is from the fact that in python2 the representation of string is different than to python3.

ouya99 commented 4 years ago

btw python2 is only supported until end of 2019

woywoy123 commented 4 years ago

Will try to first implement most of the features and then rewrite the code in python 3