Commit 7708429
authored
Merge pull request #930 from marceloneppel/fix-asyncio-on-readme
#930
#### Description
The following error is thrown if we run the example code from README.
```sh
Traceback (most recent call last):
File "/home/ubuntu/main.py", line 6, in <module>
from juju import asyncio
ImportError: cannot import name 'asyncio' from 'juju' (/home/linuxbrew/.linuxbrew/Cellar/python@3.11/3.11.4_1/lib/python3.11/site-packages/juju/__init__.py)
```
It fails because it should be using `jasyncio`, which is the correct module to import. The the other examples from the `examples` folder are using the correct module.
#### QA Steps
Add the code from README to a file named `main.py` and run it with `python3 main.py`. The ubuntu charm should be correctly deployed.1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
| 54 | + | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
92 | | - | |
| 92 | + | |
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
| |||
0 commit comments