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

Jenkins build fails due to old python version #256

Open
hrshdhgd opened this issue Sep 26, 2024 · 7 comments
Open

Jenkins build fails due to old python version #256

hrshdhgd opened this issue Sep 26, 2024 · 7 comments

Comments

@hrshdhgd
Copy link
Contributor

hrshdhgd commented Sep 26, 2024

Error:

10:16:18    File "/var/lib/jenkins/workspace/edge-graph-hub_kg-microbe_master/gitrepo/venv/lib/python3.9/site-packages/kg_microbe/utils/pandas_utils.py", line 104, in establish_transitive_relationship
10:16:18      zip(subject_intermediate_df["object"], subject_intermediate_df["subject"], strict=False)
10:16:18  TypeError: zip() takes no keyword arguments

Cause: Jenkins may be using an older version of Python (3.9).

Could the python version be updated in code of does it need to be a setup thing?

Attn: @caufieldjh , @justaddcoffee @realmarcin @bsantan

@caufieldjh
Copy link
Contributor

It's going to depend on the Docker image - the one it's using, caufieldjh/ubuntu20-python-3-9-14-dev:2, is just python 3.9, and I don't think I have one ready to go with 3.10.

I'll make a new one for KG builds following these instructions (but without mysql/postgres): Knowledge-Graph-Hub/kg-idg#107 (comment)

@hrshdhgd
Copy link
Contributor Author

hrshdhgd commented Sep 27, 2024

but without mysql/postgres

It will have sqlite3 though, correct? We'll need it for oaklib's SQLiteImplementation use.

@caufieldjh
Copy link
Contributor

sqlite3 is usually included with a python3 install, but I'll make sure it's included

@caufieldjh
Copy link
Contributor

The image ID in the Jenkinsfile should be replaced with caufieldjh/kg-hub-3_10:1. The Jenkinsfile may also require some updates to avoid specifying python3.9

@caufieldjh
Copy link
Contributor

OK, looks like the new Docker image works except for this detail:

This is what it should do:

[Pipeline] sh ([hide](https://build.berkeleybop.io/job/knowledge-graph-hub/job/kg-microbe/job/master/260/consoleFull#))
10:25:19  + id
10:25:19  uid=114(jenkinsuser) gid=120 groups=120
[Pipeline] sh
10:25:20  + whoami
10:25:20  jenkinsuser

but this is what it does instead:

[Pipeline] sh
15:49:56  + id
15:49:56  uid=114 gid=120 groups=120
[Pipeline] sh
15:49:57  + whoami
15:49:57  whoami: cannot find name for user ID 114

@caufieldjh
Copy link
Contributor

I think the username for jenkinsuser just isn't getting set as expected. Will push a fix.

@caufieldjh
Copy link
Contributor

The image caufieldjh/kg-hub-3_10:2 should work now

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

2 participants