Open jaiongit opened 3 years ago
I've discovered that this issue occurs when someone first tries to run the CLI through Python2. This results in creation of Python2 *.pyc
files on the local machine. After this if the those files are not deleted and on running Flask UI through Python3 (which uses old Python2 *.pyc
file), we get the above error. This issue will be fixed if those files are deleted before running the Flask UI through Python3.
@jaiongit I came across this explanation while looking for error you mentioned. Thanks for putting it up here. 💯
Solution: Just delete all
.pyc
files located in the same directory as.py
files.
Hope the issue is resolved.
@Kashish121 So, should this issue be closed? Or we need to delete .pyc
files automatically (if possible).
I think if that's not possible we should mention this in the README.
Raised an issue #150 , keeping this issue open for future references.
While working with Python 3 (version 3.9.1 on my local machine) and checking out to
feature/python3.8
branch the following error occurs when trying to run the Flask UI:I am assuming this is caused due to using more recent Python 3 version than the one specified in README.md.
Mentioning @Kashish121 as stated by @vinitshahdeo.
Originally this issue was discussed here.