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

Inversion setup error in example_swinvert_workflow.ipynb #11

Open
Akumarres opened this issue Jan 5, 2024 · 3 comments
Open

Inversion setup error in example_swinvert_workflow.ipynb #11

Akumarres opened this issue Jan 5, 2024 · 3 comments

Comments

@Akumarres
Copy link

I am getting an error in the Inversion setup.

Screenshot 2024-01-05 at 10-31-54 example_swinvert_workflow - Jupyter Notebook

Thank you

@jpvantassel
Copy link
Owner

Hi @Akumarres,
Please try again, removing “SyntaxError” on Line 87.
Please let me know if that works, thanks!

@Matypetzold
Copy link

I removed the "SyntaxError," and now I am getting the following error:

AttributeError Traceback (most recent call last)
Input In [7], in
92 full=os.getcwd()
93 left, right = full[:21], full[20:]
---> 94 usr=ag.profiles.get()["username"]
95 if left != "/home/jupyter/MyData/":
96 msg = f"Unexpected file structure. Expected '/home/jupyter/MyData/' found '{left}'"

File ~/.local/lib/python3.9/site-packages/agavepy/agave.py:974, in Resource.getattr(self, attr)
973 def getattr(self, attr):
--> 974 return Operation(self.resource, attr, client=self.client)

File ~/.local/lib/python3.9/site-packages/agavepy/agave.py:1000, in Operation.init(self, resource, operation, client)
998 self.operation = operation
999 self.client = client
-> 1000 self.models = self.get_models()
1001 self.return_type = self.get_return_type()

File ~/.local/lib/python3.9/site-packages/agavepy/agave.py:1017, in Operation.get_models(self)
1014 """Get JSON with all the models declarations."""
1016 base = self.get_base()
-> 1017 return getattr(base, self.resource).json['api_declaration']['models']

AttributeError: 'NoneType' object has no attribute 'profiles'

@jpvantassel
Copy link
Owner

Hi @Akumarres,

Are you running this code on DesignSafe, this code will only run on DesignSafe? If so, what Jupyter notebook image are you using?

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

3 participants