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

Try to move Image Scoring plugin to Python 3.10 #13

Open
joestubbs opened this issue Mar 20, 2023 · 3 comments
Open

Try to move Image Scoring plugin to Python 3.10 #13

joestubbs opened this issue Mar 20, 2023 · 3 comments
Assignees

Comments

@joestubbs
Copy link
Contributor

No description provided.

@joestubbs joestubbs self-assigned this Mar 20, 2023
@sowbaranika1302 sowbaranika1302 self-assigned this Apr 6, 2023
@sowbaranika1302
Copy link
Collaborator

In order to upgrade the Image scoring plugin to Python 3.10, I made changes to the image-scoring file as tapis/image_scoring_plugin_py instead of tapis/image_scoring_plugin_py_3.8. After executing, I found an additional error message (Screenshot attached).

image

The current code reflects Image scoring with Python 3.10 to check if it gives the same error.

@khsa1
Copy link
Collaborator

khsa1 commented Jul 5, 2023

@sowbaranika1302 Which branch/commit did you apply your python 3.10 changes to?

I am using branch main, then modified Makefile and releases/latest/docker-compose.yml to use Dockerfile instead of Dockerfile-3.8 to build tapis/image_scoring_plugin_py, but I get this error at runtime:

image_scoring            | Traceback (most recent call last):
image_scoring            |   File "image_scoring_plugin.py", line 14, in <module>
image_scoring            |     from camera_traps_MD.run_detector import load_and_run_detector
image_scoring            | ModuleNotFoundError: No module named 'camera_traps_MD'
image_scoring exited with code 1

@khsa1
Copy link
Collaborator

khsa1 commented Jul 6, 2023

I was able to reproduce the humanfriendly error with tapis/image_scoring_plugin_py. In my image it looks like it's still using python 3.8 instead of python 3.10:

Python 3.8.10
pip 21.1.3 from /usr/local/lib/python3.8/site-packages/pip (python 3.8)
Package           Version
----------------- -------
asttokens         2.2.1
backcall          0.2.0
decorator         5.1.1
executing         1.2.0
flatbuffers       23.5.26
ipython           8.12.2
jedi              0.18.2
matplotlib-inline 0.1.6
parso             0.8.3
pexpect           4.8.0
pickleshare       0.7.5
pip               21.1.3
prompt-toolkit    3.0.38
ptyprocess        0.7.0
pure-eval         0.2.2
Pygments          2.15.1
pyzmq             25.0.0
setuptools        57.0.0
six               1.16.0
stack-data        0.6.2
traitlets         5.9.0
typing-extensions 4.7.0
wcwidth           0.2.6
wheel             0.36.2
zmq               0.0.0
WARNING: You are using pip version 21.1.3; however, version 23.1.2 is available.
You should consider upgrading via the '/usr/local/bin/python -m pip install --upgrade pip' command.
Traceback (most recent call last):
  File "image_scoring_plugin.py", line 14, in <module>
    from camera_traps_MD.run_detector import load_and_run_detector
  File "/camera_traps_MD/run_detector.py", line 10, in <module>
    import humanfriendly
ModuleNotFoundError: No module named 'humanfriendly'

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

3 participants