finos / finos/htc-grid

ModuleNotFoundError: No module named 'privateapi.api'

Open
#49 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
66
Forks
36
PR merge metrics
No merged PRs in 30d

Description

I am trying to set up the HTC system with latest version 0.3.4. I have tracked down to following error with both workshop and github installation. Can you take a look what is missing?

It happened when running the command: kubectl logs job/single-task -f

aws-htc-grid-0.3.4/examples/client/python $ python3 ./client.py --help
20:08:27 - INFO - in_out_manager.py - - 23 - Init AWS Grid Connector
Traceback (most recent call last):
File "./client.py", line 5, in
from api.connector import AWSConnector
File "/home/ec2-user/environment/aws-htc-grid-0.3.4/venv/lib/python3.7/site-packages/api/connector.py", line 20, in
from privateapi.api import default_api
ModuleNotFoundError: No module named 'privateapi.api'
(venv) Admin:~/environment/aws-htc-grid-0.3.4/examples/client/python $ ls /home/ec2-user/environment/aws-htc-grid-0.3.4/venv/lib/python3.7/site-packages/privateapi/
api_client.py configuration.py __init__.py models __pycache__ schemas.py
apis exceptions.py model paths rest.py

Contributor guide

Open the contributing guide

Research direction

Start with examples/client/python/client.py and the installed api/connector.py, then compare the privateapi package contents shown in the report with the import it attempts. Check the installation or packaging path that creates privateapi and reproduce the failure with kubectl logs job/single-task -f and python3 ./client.py --help. Done means the command runs without ModuleNotFoundError for privateapi.api.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, kubernetes, python
Domain
cloud, devops
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.