You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To install dependencies required for data processing modules use:
51
-
```
52
-
pip install labelbox[data]
53
-
```
54
-
### Note for Windows users
55
-
The package `rasterio` installed by `labelbox[data]` relies on GDAL which could be difficult to install on Microsoft Windows.
56
-
57
-
You may see the following error message:
58
49
59
50
```
60
-
INFO:root:Building on Windows requires extra options to setup.py to locate needed GDAL files. More information is available in the README.
61
-
62
-
ERROR: A GDAL API version must be specified. Provide a path to gdal-config using a GDAL_CONFIG environment variable or use a GDAL_VERSION environment variable.
51
+
pip3 install -r requirements.txt
63
52
```
64
53
65
-
As a workaround:
66
-
67
-
1. Download the binary files for GDAL and rasterio:
68
-
69
-
a. From https://www.lfd.uci.edu/~gohlke/pythonlibs/#gdal, download `GDAL‑3.3.2‑cp38‑cp38‑win_amd64.wh`
70
-
71
-
b. From https://www.lfd.uci.edu/~gohlke/pythonlibs/#rasterio, download `rasterio‑1.2.9‑cp38‑cp38‑win_amd64.whl`
72
-
73
-
Note: You need to download the right files for your Python version. In the files above `cp38` means CPython 3.8.
74
-
75
-
2. After downloading the files, please run the following commands, in this particular order.
54
+
To install dependencies required for data processing modules use:
1. Update the `Makefile` with your `local`, `staging`, `prod` API key. Ensure that docker has been installed on your system. Make sure the key is not from a free tier account.
120
98
2. To test on `local`:
99
+
121
100
```
122
101
user@machine:~$ export LABELBOX_TEST_API_KEY_LOCAL="<your local api key here>"
123
102
make test-local # with an optional flag: PATH_TO_TEST=tests/integration/...etc LABELBOX_TEST_API_KEY_LOCAL=specify_here_or_export_me
124
103
```
125
104
126
105
3. To test on `staging`:
106
+
127
107
```
128
108
user@machine:~$ export LABELBOX_TEST_API_KEY_STAGING="<your staging api key here>"
129
109
make test-staging # with an optional flag: PATH_TO_TEST=tests/integration/...etc LABELBOX_TEST_API_KEY_STAGING=specify_here_or_export_me
130
110
```
131
111
132
112
4. To test on `prod`:
113
+
133
114
```
134
115
user@machine:~$ export LABELBOX_TEST_API_KEY_PROD="<your prod api key here>"
135
116
make test-prod # with an optional flag: PATH_TO_TEST=tests/integration/...etc LABELBOX_TEST_API_KEY_PROD=specify_here_or_export_me
136
117
```
137
118
138
119
5. If you make any changes and need to rebuild the image used for testing, force a rebuild with the `-B` flag
0 commit comments