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

module 'aim' has no attribute 'Run' #1536

Open
KumoLiu opened this issue Sep 28, 2023 · 2 comments · Fixed by #1537
Open

module 'aim' has no attribute 'Run' #1536

KumoLiu opened this issue Sep 28, 2023 · 2 comments · Fixed by #1537
Labels
bug Something isn't working

Comments

@KumoLiu
Copy link
Contributor

KumoLiu commented Sep 28, 2023

07:00:29  /usr/local/lib/python3.10/dist-packages/papermill/iorw.py:153: UserWarning: the file is not specified with any extension : -
07:00:29    warnings.warn(
07:00:29  Traceback (most recent call last):
07:00:29    File "/usr/local/bin/papermill", line 8, in <module>
07:00:29      sys.exit(papermill())
07:00:29    File "/usr/local/lib/python3.10/dist-packages/click/core.py", line 1157, in __call__
07:00:29      return self.main(*args, **kwargs)
07:00:29    File "/usr/local/lib/python3.10/dist-packages/click/core.py", line 1078, in main
07:00:29      rv = self.invoke(ctx)
07:00:29    File "/usr/local/lib/python3.10/dist-packages/click/core.py", line 1434, in invoke
07:00:29      return ctx.invoke(self.callback, **ctx.params)
07:00:29    File "/usr/local/lib/python3.10/dist-packages/click/core.py", line 783, in invoke
07:00:29      return __callback(*args, **kwargs)
07:00:29    File "/usr/local/lib/python3.10/dist-packages/click/decorators.py", line 33, in new_func
07:00:29      return f(get_current_context(), *args, **kwargs)
07:00:29    File "/usr/local/lib/python3.10/dist-packages/papermill/cli.py", line 250, in papermill
07:00:29      execute_notebook(
07:00:29    File "/usr/local/lib/python3.10/dist-packages/papermill/execute.py", line 128, in execute_notebook
07:00:29      raise_for_execution_errors(nb, output_path)
07:00:29    File "/usr/local/lib/python3.10/dist-packages/papermill/execute.py", line 232, in raise_for_execution_errors
07:00:29      raise error
07:00:29  papermill.exceptions.PapermillExecutionError: 
07:00:29  ---------------------------------------------------------------------------
07:00:29  Exception encountered at "In [6]":
07:00:29  ---------------------------------------------------------------------------
07:00:29  AttributeError                            Traceback (most recent call last)
07:00:29  Cell In[6], line 8
07:00:29        5 track_locally = True
07:00:29        7 if track_locally:
07:00:29  ----> 8     aim_run = aim.Run(experiment=experiment_name)
07:00:29        9 else:
07:00:29       10     remote_tracking_server = "aim://0.0.0.0:53800"
07:00:29  
07:00:29  AttributeError: module 'aim' has no attribute 'Run'
@KumoLiu KumoLiu assigned KumoLiu and unassigned KumoLiu Sep 28, 2023
@KumoLiu KumoLiu added the bug Something isn't working label Sep 28, 2023
@KumoLiu
Copy link
Contributor Author

KumoLiu commented Sep 28, 2023

May related to their new release.
https://pypi.org/project/aim/#history

Do we want to stick to the old version or update to the new version?

wyli pushed a commit that referenced this issue Sep 28, 2023
Fixes #1536

### Description
Stick aim==3.17.5 as a workaround.

### Checks
<!--- Put an `x` in all the boxes that apply, and remove the not
applicable items -->
- [x] Avoid including large-size files in the PR.
- [x] Clean up long text outputs from code cells in the notebook.
- [ ] For security purposes, please check the contents and remove any
sensitive info such as user names and private key.
- [ ] Ensure (1) hyperlinks and markdown anchors are working (2) use
relative paths for tutorial repo files (3) put figure and graphs in the
`./figure` folder
- [ ] Notebook runs automatically `./runner.sh -t <path to .ipynb file>`

Signed-off-by: KumoLiu <[email protected]>
@wyli
Copy link
Contributor

wyli commented Sep 28, 2023

currently a workaround is added (#1537), we can consider a fix following the latest usage https://github.com/aimhubio/aim/blob/eae9c2989717a8eb8c3e90c5e3c8e75789eaf320/README.md?plain=1#L350-L353

@wyli wyli reopened this Sep 28, 2023
boneseva pushed a commit to boneseva/MONAI-tutorials that referenced this issue Apr 21, 2024
Fixes Project-MONAI#1536

### Description
Stick aim==3.17.5 as a workaround.

### Checks
<!--- Put an `x` in all the boxes that apply, and remove the not
applicable items -->
- [x] Avoid including large-size files in the PR.
- [x] Clean up long text outputs from code cells in the notebook.
- [ ] For security purposes, please check the contents and remove any
sensitive info such as user names and private key.
- [ ] Ensure (1) hyperlinks and markdown anchors are working (2) use
relative paths for tutorial repo files (3) put figure and graphs in the
`./figure` folder
- [ ] Notebook runs automatically `./runner.sh -t <path to .ipynb file>`

Signed-off-by: KumoLiu <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants