Thanks, but unfortunately it’s still not working after updating all of the library versions. My model is just a week old.
Here is the error output from Render:
Jun 19 03:47:15 PM #10 2.951 Traceback (most recent call last):
Jun 19 03:47:15 PM #10 2.951 File “app/server.py”, line 48, in
Jun 19 03:47:15 PM #10 2.951 learn = loop.run_until_complete(asyncio.gather(*tasks))[0]
Jun 19 03:47:15 PM #10 2.951 File “/usr/local/lib/python3.7/asyncio/base_events.py”, line 587, in run_until_complete
Jun 19 03:47:15 PM #10 2.951 return future.result()
Jun 19 03:47:15 PM #10 2.951 File “app/server.py”, line 35, in setup_learner
Jun 19 03:47:15 PM #10 2.951 learn = load_learner(path, export_file_name)
Jun 19 03:47:15 PM #10 2.951 File “/usr/local/lib/python3.7/site-packages/torch/serialization.py”, line 529, in load
Jun 19 03:47:15 PM #10 2.951 File “/usr/local/lib/python3.7/site-packages/fastai/basic_train.py”, line 618, in load_learner
Jun 19 03:47:15 PM #10 2.951 state = torch.load(source, map_location=‘cpu’) if defaults.device == torch.device(‘cpu’) else torch.load(source)
Jun 19 03:47:15 PM #10 2.951 magic_number = pickle_module.load(f, **pickle_load_args)
Jun 19 03:47:15 PM #10 2.951 return _legacy_load(opened_file, map_location, pickle_module, **pickle_load_args)
Jun 19 03:47:15 PM #10 2.951 File “/usr/local/lib/python3.7/site-packages/torch/serialization.py”, line 692, in _legacy_load
Jun 19 03:47:16 PM #10 ERROR: executor failed running [/bin/sh -c python app/server.py]: buildkit-runc did not terminate successfully
Jun 19 03:47:15 PM #10 2.951 _pickle.UnpicklingError: invalid load key, ‘<’.
Jun 19 03:47:16 PM > [6/6] RUN python app/server.py:
Jun 19 03:47:16 PM ------
Jun 19 03:47:16 PM ------
Jun 19 03:47:16 PM error: exit status 1
Jun 19 03:47:16 PM error: failed to solve: rpc error: code = Unknown desc = executor failed running [/bin/sh -c python app/server.py]: buildkit-runc did not terminate successfully
Here is the updated requirements file:
aiofiles==0.4.0
aiohttp==3.5.4
asyncio==3.4.3
fastai==1.0.60
numpy==1.15.4
Pillow==5.4.1
python-multipart==0.0.5
starlette==0.12.0
uvicorn==0.7.1
torch==1.4.0
torchvision==0.5.0
Here is the !pip list output from Gradient/Jupyter:
asn1crypto 0.24.0
attrs 18.2.0
backcall 0.1.0
beautifulsoup4 4.7.1
bleach 3.1.0
Bottleneck 1.2.1
certifi 2018.11.29
cffi 1.11.5
chardet 3.0.4
conda 4.8.1
conda-package-handling 1.6.0
cryptography 2.3.1
cycler 0.10.0
cymem 2.0.2
cytoolz 0.9.0.1
dataclasses 0.6
decorator 4.3.0
dill 0.2.8.2
entrypoints 0.3
fastai 1.0.60
fastprogress 0.2.2
idna 2.8
ipykernel 5.1.0
ipython 7.2.0
ipython-genutils 0.2.0
ipywidgets 7.4.2
jedi 0.13.2
Jinja2 2.10
jsonschema 3.0.0a3
jupyter 1.0.0
jupyter-client 5.2.4
jupyter-console 6.0.0
jupyter-core 4.4.0
kiwisolver 1.0.1
MarkupSafe 1.1.0
matplotlib 3.0.2
mistune 0.8.4
mkl-fft 1.0.10
mkl-random 1.0.2
msgpack 0.6.0
msgpack-numpy 0.4.3.2
murmurhash 1.0.0
nb-conda 2.2.1
nb-conda-kernels 2.2.0
nbconvert 5.3.1
nbformat 4.4.0
notebook 5.7.4
numexpr 2.6.9
numpy 1.15.4
nvidia-ml-py3 7.352.0
olefile 0.46
packaging 19.0
pandas 0.23.4
pandocfilters 1.4.2
parso 0.3.1
pexpect 4.6.0
pickleshare 0.7.5
Pillow 5.4.1
pip 18.1
plac 0.9.6
preshed 2.0.1
prometheus-client 0.5.0
prompt-toolkit 2.0.7
ptyprocess 0.6.0
pycosat 0.6.3
pycparser 2.19
Pygments 2.3.1
pyOpenSSL 18.0.0
pyparsing 2.3.1
pyrsistent 0.14.9
PySocks 1.6.8
python-dateutil 2.7.5
pytz 2018.9
PyYAML 3.13
pyzmq 17.1.2
qtconsole 4.4.3
regex 2018.1.10
requests 2.21.0
ruamel-yaml 0.15.87
scipy 1.2.0
Send2Trash 1.5.0
setuptools 40.6.3
six 1.12.0
soupsieve 1.7.1
spacy 2.0.18
terminado 0.8.1
testpath 0.4.2
thinc 6.12.1
toolz 0.9.0
torch 1.4.0
torchvision 0.5.0
tornado 5.1.1
tqdm 4.29.1
traitlets 4.3.2
typing 3.6.4
ujson 1.35
urllib3 1.24.1
wcwidth 0.1.7
webencodings 0.5.1
wheel 0.32.3
widgetsnbextension 3.4.2
wrapt 1.10.11
I can go into the virtual environment issue as well, but I’m wondering if this might not be the right thread for that?
Thanks!