Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Somehow runs on python 2.7 [FIXED] #12

Open
himarange opened this issue Dec 15, 2021 · 1 comment
Open

Somehow runs on python 2.7 [FIXED] #12

himarange opened this issue Dec 15, 2021 · 1 comment

Comments

@himarange
Copy link

himarange commented Dec 15, 2021

I ran sh classification.sh -i Sample.csv -d sc command on Mac 11.6
Then errors:

Traceback (most recent call last):
  File "./python/csv_processing.py", line 8, in <module>
    import pathlib
ImportError: No module named pathlib

Followed by more Java errors. I have all requirements downloaded and installed on Python 3.8. Java version 8+.
Then I print sys.path in pySenti4SD/python/csv_processing.py which gives:

/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python27.zip
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-darwin
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac/lib-scriptpackages
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-old
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload

Missing modules are installed on python 3.8 obviously. All requirements were installed in Python 3.8.
Why does my sys.path include python 2.7?

I suspect this has to do with the following file:
classification.sh I think somehow it alters the file path to the old python version....

Any ideas how I can solve this? Or perhaps could the owner of this repository fix this in the directory?

@himarange
Copy link
Author

I fixed. In the classification.sh one can change the shell commands.
Changing every python instance to python3 did it.

@himarange himarange changed the title Somehow runs on python 2.7 Somehow runs on python 2.7 [FIXED] Dec 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant