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

use python API to setup code #695

Closed

Conversation

superstar54
Copy link
Member

No description provided.

@superstar54 superstar54 marked this pull request as draft April 29, 2024 13:55
@superstar54
Copy link
Member Author

This raises an error related to the thread, and I don't find a good solution for the moment.

Object '<DbUser at 0x7f08ab67a280>' is already attached to session '4' (this is '2')

Replaed this with #706 .

@danielhollas
Copy link
Contributor

I think the issue here might be that the User instanced is cached, so reloading the profile is not enough. You probably need to bust the cache manually somehow.

@superstar54
Copy link
Member Author

It seems that aside-core does not support creating a new session in a different thread.

@danielhollas
Copy link
Contributor

Maybe a question for @sphuber

@unkcpz
Copy link
Member

unkcpz commented May 9, 2024

It seems that aside-core does not support creating a new session in a different thread.

Exactly, we had a long discussion and struggling that we have to replace the direct use of aiida Node as trait for widgets to using UUID because of the similar problem.

@superstar54 good if you can check this PR aiidalab/aiidalab-widgets-base#543. The _get_code is the function that calls the setup_code if I remember correctly. I think the error "Object '<DbUser at 0x7f08ab67a280>' is already attached" is releted.

@unkcpz unkcpz mentioned this pull request Aug 13, 2024
4 tasks
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

Successfully merging this pull request may close these issues.

3 participants