Skip to content

Commit 038eef3

Browse files
authored
Fix Nucleus Model Server for Python 3.9 (#10)
* Update Jinja2 * Remove pip version lock * Fix Nucleus model server configuration schema * Update patch version
1 parent 3d927c0 commit 038eef3

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ Some of Nucleus's features include:
6060
<!-- UPDATE THIS VERSION ON EACH RELEASE (it's better than using "master") -->
6161

6262
```bash
63-
pip install git+https://github.com/cortexlabs/nucleus.git@0.2.1
63+
pip install git+https://github.com/cortexlabs/nucleus.git@0.2.2
6464
```
6565

6666
## Example usage
@@ -120,6 +120,7 @@ env: # environment variables to be exported to the model server (optional)
120120
config: # dictionary config to be passed to the model server's constructor (optional)
121121
# <string: value> # arbitrary dictionary passed to the constructor of the Handler class
122122
python_path: <string> # path to the root of your Python folder that will be appended to PYTHONPATH (default: folder containing the model server config) (required)
123+
path: <string> # path to the Python handler script containing the Handler class relative to the <python_path> path (required)
123124
protobuf_path: <string> # path to a protobuf file relative to your project dir (required if using gRPC)
124125
models: # use this to serve one or more models with live reloading for the tensorflow type (required for tensorflow type, not supported for python type)
125126
path: <string> # S3 path to an exported model directory (e.g. s3://my-bucket/exported_model/) (either this, 'dir', or 'paths' must be provided if 'models' is specified)

nucleus/templates/handler.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ RUN curl "https://repo.anaconda.com/miniconda/Miniconda3-4.7.12.1-Linux-x86_64.s
3535
rm -rf ~/.cache ~/miniconda.sh
3636

3737
# split the conda installations to reduce memory usage when building the image
38-
RUN /opt/conda/bin/conda create -n env -c conda-forge python=$PYTHONVERSION pip=19.* && \
38+
RUN /opt/conda/bin/conda create -n env -c conda-forge python=$PYTHONVERSION pip && \
3939
/opt/conda/bin/conda clean -a && \
4040
ln -s /opt/conda/etc/profile.d/conda.sh /etc/profile.d/conda.sh && \
4141
echo ". /opt/conda/etc/profile.d/conda.sh" > ~/.env && \

src/cortex/cortex_internal.requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
grpcio==1.36.0
22
boto3==1.14.53
33
dill>=0.3.1.1
4-
jinja2==2.11.3
4+
jinja2==3.1.2
55
fastapi==0.61.1
66
pyyaml==5.4
77
python-json-logger==2.0.1

0 commit comments

Comments
 (0)