Skip to content

Commit d61cae5

Browse files
committed
modifying readme wrt to pip and python3
1 parent eb18f2c commit d61cae5

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

data/temporal_example/README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ Before beginning this example walkthrough, it is recommended to have basic knowl
88
- [Docker Compose](https://docs.docker.com/compose/install/)
99
- [Temporal CLI](https://docs.temporal.io/cli#install)
1010
- [Python 3](https://www.python.org/downloads/)
11+
- [pip](https://packaging.python.org/en/latest/tutorials/installing-packages/) (included with Python if you installed via Homebrew or python.org)
1112

1213
## Running this Example
1314

@@ -20,14 +21,14 @@ Follow these steps to run this example:
2021
4. Change to the parent directory: `cd ..`
2122
5. Start a development Temporal Server: `temporal server start-dev`
2223
6. Setup a virtual env: `python3 -m venv env`, then `source env/bin/activate`.
23-
7. Install dependencies: `pip install authzed temporalio psycopg`
24-
8. Setup the Postgres DB and SpiceDB: `python run_migrations.py`
25-
9. Start the Temporal Worker: `python run_worker.py`
24+
7. Install dependencies: `python3 -m pip install authzed temporalio psycopg`
25+
8. Setup the Postgres DB and SpiceDB: `python3 run_migrations.py`
26+
9. Start the Temporal Worker: `python3 run_worker.py`
2627

2728
### Experiencing Temporal
28-
10. Run the Temporal workflow (worker should still be running while you are doing this): `python run_workflow.py --author bob --post some_post`
29+
10. Run the Temporal workflow (worker should still be running while you are doing this): `python3 run_workflow.py --author bob --post some_post`
2930
11. Simulate a Postgres failure by stopping the Docker container running Postgres: `docker stop dev-postgres`
30-
12. Run the Temporal workflow (worker should still be running while you are doing this): `python run_workflow.py --author bob --post another_post`
31+
12. Run the Temporal workflow (worker should still be running while you are doing this): `python3 run_workflow.py --author bob --post another_post`
3132
13. Notice that the initial attempt failed.
3233
14. Restart Postgres: `docker start dev-postgres`
3334
15. Wait a few seconds and notice that the Postgres write activity succeeds and that the workflow succeeds. 😎

0 commit comments

Comments
 (0)