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

chore: be sure to have keyring installed #258

Merged
merged 1 commit into from
Sep 21, 2023
Merged

Conversation

bcm-at-zama
Copy link
Collaborator

@bcm-at-zama bcm-at-zama commented Sep 20, 2023

we have seen that, sometimes, keyring was not available, for no obvious reason. I am not able to say when keyring is or is not installed, so let's be sure it's here, by running installation when it's needed (will not do anything if it's already installed)

closes #https://github.com/zama-ai/concrete-ml-internal/issues/3950

we have seen that, sometimes, keyring was not available, for no obvious reason

closes #3950
@bcm-at-zama bcm-at-zama requested a review from a team as a code owner September 20, 2023 08:13
@cla-bot cla-bot bot added the cla-signed label Sep 20, 2023
Copy link
Collaborator

@RomanBredehoft RomanBredehoft left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

keyring is a dev dependency in pyproject.toml, could that be the issue (and thus we should put it as a real dependency) ?

@bcm-at-zama
Copy link
Collaborator Author

keyring is a dev dependency in pyproject.toml, could that be the issue (and thus we should put it as a real dependency) ?

  • I would not be against moving it to real dependency
  • but, I mean, to make docker_start etc, you're already supposed to be a dev, and still, I saw the error
  • and remark that we already have some strange keyring install in the makefile
setup_env:
	@# The keyring install is to allow pip to fetch credentials for our internal repo if needed
       (...) 
	poetry run python -m pip install keyring

So, what should I do? Not sure your solution would make it better, since I am already a dev with a dev setting, and still, I see (sometimes) the problem.

@RomanBredehoft
Copy link
Collaborator

RomanBredehoft commented Sep 20, 2023

I'm not too familiar with this but could it be that we need keyring before installing dependencies or something like this ?

It just feels weird to "blindly" add lines like this without knowing the issue !

@bcm-at-zama
Copy link
Collaborator Author

It just feels weird to "blindly" add lines like this without knowing the issue !

I agree but I have not a 100% reproducible setting for the issue. And here, I thought adding this was better than having the error popping from time to time.

@bcm-at-zama
Copy link
Collaborator Author

@andrei-stoian-zama / @fd0r , what would you do for this issue / PR?

@fd0r
Copy link
Collaborator

fd0r commented Sep 20, 2023

Well it can't hurt to install it 🤷🏼

If it's already installed nothing will changed, if it isn't it will fix the issue.

Copy link
Collaborator

@RomanBredehoft RomanBredehoft left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unblocking this PR as I don't have much more to say

@bcm-at-zama
Copy link
Collaborator Author

Let's give the final word to @andrei-stoian-zama

Copy link
Collaborator

@andrei-stoian-zama andrei-stoian-zama left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, looks good to me

@andrei-stoian-zama
Copy link
Collaborator

@bcm-at-zama bcm-at-zama merged commit dcf011d into main Sep 21, 2023
@bcm-at-zama bcm-at-zama deleted the keyring_problems_3950 branch September 21, 2023 07:52
@bcm-at-zama
Copy link
Collaborator Author

Does it close zama-ai/concrete-ml-internal#3950 ?

yes. I had written

closes #https://github.com/zama-ai/concrete-ml-internal/issues/3950

but apparently that's not the right syntax, I have to learn it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants