-
Notifications
You must be signed in to change notification settings - Fork 1
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
Remove the need for tracking maap.cfg file location #909
Comments
@sujen1412, @grallewellyn mentioned in #801 that you wanted to work on this. I already have a working solution, if you're interested. As I mentioned in #801, it's a matter of making |
We can add the maap.cfg as a package resource to provide valid defaults. Although thinking further ahead we were wondering if we need a maap.cfg ? We were thinking that other than providing defaults, the config values in maap.cfg should ideally be advertised by the api its pointing to. |
So we can proceed with #801 by packaging maap.cfg as a resource and in this ticket I can address the part where the api can advertise the config to its clients. |
Sounds good to me. I'll help with #801. |
@grallewellyn, I believe my work on MAAP-Project/maap-py#78 addressed this issue. Does that suffice to close this issue as complete? |
Yes, closed |
In the ADE trying to run
we are getting
I am running an image right now attempting to fix this by commenting out: https://github.com/MAAP-Project/maap-py/blob/develop/maap/config_reader.py#L41 cc @chuckwondo |
Removing this line: https://github.com/MAAP-Project/maap-py/blob/develop/maap/config_reader.py#L41 worked |
@grallewellyn, offhand, I'd say I need a bit more information, but that perhaps the env var |
MAAP_CONF is currently being set in all envs. |
I am building test images right now removing MAAP_CONF from all envs |
Removing MAAP_CONF from the envs worked and I can successfully instantiate maap-py and use its functions |
Great to hear! To clarify, it's not that it shouldn't be set, but more specifically, that it shouldn't be set to a place where a By default, it shouldn't be set by the environment because |
Thank you for clarifying! |
Had to undo this change because it was causing a bug for the v3.1.5 release, we will issue with the next release |
@grallewellyn can you clarify? What happened? |
This is the ticket what we made to address the bug that was arising from maap-py: #965 The changes Brian proposed and we implemented for v3.1.5:
https://github.com/MAAP-Project/jupyter-server-extension/tree/bsatoriu-patch-dit
This is the maap-py fix we merged to solve the error: MAAP-Project/maap-py#89 |
But what exactly was the problem and how did it show up? I feel like we are now unfortunately losing the non-trivial benefits that came with properly handling |
Since you commented on the issue I made explaining the bug which specifically highlighted the upgrade of maap-py from v3.1.4 to v3.1.5 being the source of the bug, I thought you were aware of the situation, my apologies I should have reached out to you directly. We also decided that extracting maap.cfg out was a rather large change and it might be better suited for our next platform release which will be 4.0.0. The problem was manifesting as not being able to view your jobs in the Jobs UI which was a result of not successfully getting the user profile which was a result of maap-py and jupyter server extension not being properly activated. We were unable to find very useful details in the logs, so we just tested images reverting back maap-py to discover that was the issue and then tried to narrow it down from there |
Unfortunately, in the issue you linked, it was not at all obvious to me that it had anything to do with the maap.cfg changes. |
If we move the config to the API in this next release (like we are planning to do), this issue would no longer be relevant |
Right now, our environment.yml needs to set the environment variable
MAAP_CONF: '/maap-py/'
to be able to instantiate MAAP() in a notebook in the ADEThe text was updated successfully, but these errors were encountered: