Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pip parameters cause "--home not recognized" error #794

Closed
Xodarap opened this issue Sep 28, 2020 · 5 comments
Closed

Pip parameters cause "--home not recognized" error #794

Xodarap opened this issue Sep 28, 2020 · 5 comments

Comments

@Xodarap
Copy link

Xodarap commented Sep 28, 2020

Bug Report

  • At what date and time did you most recently experience the problem?
    2020-09-27 9:30 PM PST

  • Where did you experience the problem? E.g. Azure Web Apps, Azure Functions, Azure Container Registry, or offline use.
    Azure function

  • If your repo is publicly available please share its URL:
    https://github.com/Xodarap/tiktok-beautiful-azure

  • What happened?
    build failed

  • What did you expect or want to happen?
    wanted it to work

  • How can we reproduce it?
    put in something custom into your requirements.txt instead of just a package name. Here's what I did:

-e git+https://github.com/Xodarap/TikTok-Api.git@73f9be9928177853539a39b26011cfbf0a842de2#"egg=TikTokApi" --install-option="--exists-action w"

if I replace this with

TikTokApi

it works fine.

  • Do you have log output? Please include between the backticks:
PS D:\Documents\github\function-TikTok-fetch> func azure functionapp publish tiktok-fetch
Getting site publishing info...
Creating archive for current directory...
Performing remote build for functions project.
Deleting the old .python_packages directory
Uploading 612.97 KB [#############################################################################]
Remote build in progress, please wait...
Updating submodules.
Preparing deployment for commit id '47c0525b86'.
Repository path is /tmp/zipdeploy/extracted
Running oryx build...
Command: oryx build /tmp/zipdeploy/extracted -o /home/site/wwwroot --platform python --platform-version 3.7 -p packagedir=.python_packages/lib/site-packages
Operation performed by Microsoft Oryx, https://github.com/Microsoft/Oryx
You can report issues at https://github.com/Microsoft/Oryx/issues

Oryx Version: 0.2.20200813.1, Commit: 16c4841161ae3c639fd26b0212be4f55e515ef7d, ReleaseTagName: 20200813.1

Build Operation ID: |K8q3/6L3aaI=.d98f366d_
Repository Commit : 47c0525b860641abbd2eb2598d70753c

Detecting platforms...
Detected following platforms:
  python: 3.7.9
Version '3.7.9' of platform 'python' is not installed. Generating script to install it...
Warning: An outdated version of python was detected (3.7.9). Consider updating.\nVersions supported by Oryx: https://github.com/microsoft/Oryx



Source directory     : /tmp/zipdeploy/extracted
Destination directory: /home/site/wwwroot


Downloading and extracting python version 3.7.9 to /tmp/oryx/platforms/python/3.7.9...
Downloaded in 3 sec(s).
Verifying checksum...
Extracting contents...
Done in 13 sec(s).

Python Version: /tmp/oryx/platforms/python/3.7.9/bin/python3.7

Running pip install...
[04:58:16+0000] Collecting azure-functions
[04:58:16+0000]   Downloading azure_functions-1.3.1-py3-none-any.whl (120 kB)
[04:58:17+0000] Collecting requests
[04:58:17+0000]   Downloading requests-2.24.0-py2.py3-none-any.whl (61 kB)
[04:58:17+0000] Collecting psycopg2
[04:58:17+0000]   Downloading psycopg2-2.7.7-cp37-cp37m-manylinux1_x86_64.whl (2.7 MB)
[04:58:18+0000] Collecting python-dotenv
[04:58:18+0000]   Downloading python_dotenv-0.14.0-py2.py3-none-any.whl (17 kB)
[04:58:18+0000] Collecting pytz
[04:58:18+0000]   Downloading pytz-2020.1-py2.py3-none-any.whl (510 kB)
[04:58:18+0000] Collecting datetime
[04:58:18+0000]   Downloading DateTime-4.3-py2.py3-none-any.whl (60 kB)
[04:58:18+0000] Collecting more_itertools
[04:58:18+0000]   Downloading more_itertools-8.5.0-py3-none-any.whl (44 kB)
[04:58:18+0000] Collecting azure-storage-queue
[04:58:18+0000]   Downloading azure_storage_queue-12.1.3-py2.py3-none-any.whl (131 kB)
[04:58:18+0000] Obtaining TikTokApi from git+https://github.com/Xodarap/TikTok-Api.git@73f9be9928177853539a39b26011cfbf0a842de2#egg=TikTokApi (from -r requirements.txt (line 9))
  WARNING: Directory /tmp/zipdeploy/extracted/src/tiktokapi already exists, and is not a git clone.  
  WARNING: The plan is to install the git repository https://github.com/Xodarap/TikTok-Api.git       
  WARNING: Deleting ./src/tiktokapi
[04:58:18+0000]   Cloning https://github.com/Xodarap/TikTok-Api.git (to revision 73f9be9928177853539a39b26011cfbf0a842de2) to ./src/tiktokapi
[04:58:22+0000] Collecting urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1
[04:58:23+0000]   Downloading urllib3-1.25.10-py2.py3-none-any.whl (127 kB)
[04:58:23+0000] Collecting idna<3,>=2.5
[04:58:23+0000]   Downloading idna-2.10-py2.py3-none-any.whl (58 kB)
[04:58:23+0000] Collecting certifi>=2017.4.17
[04:58:23+0000]   Downloading certifi-2020.6.20-py2.py3-none-any.whl (156 kB)
[04:58:23+0000] Collecting chardet<4,>=3.0.2
[04:58:23+0000]   Downloading chardet-3.0.4-py2.py3-none-any.whl (133 kB)
[04:58:23+0000] Collecting zope.interface
[04:58:23+0000]   Downloading zope.interface-5.1.0-cp37-cp37m-manylinux2010_x86_64.whl (235 kB)      
[04:58:24+0000] Collecting azure-core<2.0.0,>=1.6.0
[04:58:24+0000]   Downloading azure_core-1.8.1-py2.py3-none-any.whl (121 kB)
[04:58:24+0000] Collecting cryptography>=2.1.4
[04:58:24+0000]   Downloading cryptography-3.1.1-cp35-abi3-manylinux2010_x86_64.whl (2.6 MB)
[04:58:25+0000] Collecting msrest>=0.6.10
[04:58:25+0000]   Downloading msrest-0.6.19-py2.py3-none-any.whl (84 kB)
[04:58:25+0000] Collecting selenium
[04:58:25+0000]   Downloading selenium-3.141.0-py2.py3-none-any.whl (904 kB)
[04:58:25+0000] Collecting pyppeteer
[04:58:25+0000]   Downloading pyppeteer-0.2.2-py3-none-any.whl (145 kB)
[04:58:26+0000] Collecting setuptools
[04:58:26+0000]   Downloading setuptools-50.3.0-py3-none-any.whl (785 kB)
[04:58:26+0000] Collecting six>=1.6
[04:58:26+0000]   Downloading six-1.15.0-py2.py3-none-any.whl (10 kB)
[04:58:26+0000] Collecting cffi!=1.11.3,>=1.8
[04:58:26+0000]   Downloading cffi-1.14.3-cp37-cp37m-manylinux1_x86_64.whl (401 kB)
[04:58:27+0000] Collecting requests-oauthlib>=0.5.0
[04:58:27+0000]   Downloading requests_oauthlib-1.3.0-py2.py3-none-any.whl (23 kB)
[04:58:27+0000] Collecting isodate>=0.6.0
[04:58:27+0000]   Downloading isodate-0.6.0-py2.py3-none-any.whl (45 kB)
[04:58:27+0000] Collecting websockets<9.0,>=8.1
[04:58:27+0000]   Downloading websockets-8.1-cp37-cp37m-manylinux2010_x86_64.whl (79 kB)
[04:58:27+0000] Collecting pyee<8.0.0,>=7.0.1
[04:58:27+0000]   Downloading pyee-7.0.4-py2.py3-none-any.whl (12 kB)
[04:58:27+0000] Collecting appdirs<2.0.0,>=1.4.3
[04:58:27+0000]   Downloading appdirs-1.4.4-py2.py3-none-any.whl (9.6 kB)
[04:58:27+0000] Collecting tqdm<5.0.0,>=4.42.1
[04:58:28+0000]   Downloading tqdm-4.50.0-py2.py3-none-any.whl (70 kB)
[04:58:28+0000] Collecting pycparser
[04:58:28+0000]   Downloading pycparser-2.20-py2.py3-none-any.whl (112 kB)
[04:58:28+0000] Collecting oauthlib>=3.0.0
[04:58:28+0000]   Downloading oauthlib-3.1.0-py2.py3-none-any.whl (147 kB)
[04:58:28+0000] Installing collected packages: azure-functions, urllib3, idna, certifi, chardet, requests, psycopg2, python-dotenv, pytz, setuptools, zope.interface, datetime, more-itertools, six, azure-core, pycparser, cffi, cryptography, oauthlib, requests-oauthlib, isodate, msrest, azure-storage-queue, selenium, websockets, pyee, appdirs, tqdm, pyppeteer, TikTokApi
[04:58:34+0000]   Running setup.py develop for TikTokApi
    ERROR: Command errored out with exit status 1:
     command: /tmp/oryx/platforms/python/3.7.9/bin/python3.7 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/zipdeploy/extracted/src/tiktokapi/setup.py'"'"'; __file__='"'"'/tmp/zipdeploy/extracted/src/tiktokapi/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' develop --no-deps --home /tmp/pip-target-1o729pua
         cwd: /tmp/zipdeploy/extracted/src/tiktokapi/
    Complete output (6 lines):
    usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
       or: setup.py --help [cmd1 cmd2 ...]
       or: setup.py --help-commands
       or: setup.py cmd --help

    error: option --home not recognized
    ----------------------------------------
ERROR: Command errored out with exit status 1: /tmp/oryx/platforms/python/3.7.9/bin/python3.7 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/zipdeploy/extracted/src/tiktokapi/setup.py'"'"'; __file__='"'"'/tmp/zipdeploy/extracted/src/tiktokapi/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' develop --no-deps --home /tmp/pip-target-1o729pua Check the logs for full command output.
WARNING: You are using pip version 20.2; however, version 20.2.3 is available.
You should consider upgrading via the '/tmp/oryx/platforms/python/3.7.9/bin/python3.7 -m pip install 
--upgrade pip' command.
Done in 19 sec(s).
WARNING: Directory /tmp/zipdeploy/extracted/src/tiktokapi already exists, and is not a git clone.\n  
WARNING: The plan is to install the git repository https://github.com/Xodarap/TikTok-Api.git\n  WARNING: Deleting ./src/tiktokapi\n    ERROR: Command errored out with exit status 1:\n     command: /tmp/oryx/platforms/python/3.7.9/bin/python3.7 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/zipdeploy/extracted/src/tiktokapi/setup.py'"'"'; __file__='"'"'/tmp/zipdeploy/extracted/src/tiktokapi/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' develop --no-deps --home /tmp/pip-target-1o729pua\n         cwd: /tmp/zipdeploy/extracted/src/tiktokapi/\n    Complete output (6 lines):\n    usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]\n       or: setup.py --help [cmd1 cmd2 ...]\n       or: setup.py --help-commands\n       or: setup.py cmd --help\n    \n    error: option --home not recognized\n    ----------------------------------------\nERROR: Command errored out with exit status 1: /tmp/oryx/platforms/python/3.7.9/bin/python3.7 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/zipdeploy/extracted/src/tiktokapi/setup.py'"'"'; __file__='"'"'/tmp/zipdeploy/extracted/src/tiktokapi/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' develop --no-deps --home /tmp/pip-target-1o729pua Check the logs for full command output.\nWARNING: You are using pip version 20.2; however, version 20.2.3 is available.\nYou should consider upgrading via the '/tmp/oryx/platforms/python/3.7.9/bin/python3.7 -m pip install --upgrade 
pip' command.\n/opt/Kudu/Scripts/starter.sh oryx build /tmp/zipdeploy/extracted -o /home/site/wwwroot --platform python --platform-version 3.7 -p packagedir=.python_packages/lib/site-packages
Remote build failed!
@qianz2
Copy link
Contributor

qianz2 commented Oct 5, 2020

Hi @Xodarap , the repo link you provided is not valid any more, could you share an updated link of your repo so we could investigate the issue? Thanks!

@Xodarap
Copy link
Author

Xodarap commented Oct 5, 2020

Hi, I replicated it in this repository: https://github.com/Xodarap/function-dep-example

This is just the default Python HTTP trigger function, except I added that dependency. When deploying I get this:

3:19:56 PM or-yx-example: Starting deployment...
3:19:57 PM or-yx-example: Creating zip package...
3:19:57 PM or-yx-example: Zip package size: 2.72 kB
3:20:01 PM or-yx-example: Updating submodules.
3:20:01 PM or-yx-example: Preparing deployment for commit id '2fc5aa8ae4'.
3:20:02 PM or-yx-example: Repository path is /tmp/zipdeploy/extracted
3:20:02 PM or-yx-example: Running oryx build...
3:20:02 PM or-yx-example: Command: oryx build /tmp/zipdeploy/extracted -o /home/site/wwwroot --platform python --platform-version 3.7 -p packagedir=.python_packages/lib/site-packages
3:20:05 PM or-yx-example: Operation performed by Microsoft Oryx, https://github.com/Microsoft/Oryx
3:20:05 PM or-yx-example: You can report issues at https://github.com/Microsoft/Oryx/issues
3:20:05 PM or-yx-example: Oryx Version: 0.2.20200813.1, Commit: 16c4841161ae3c639fd26b0212be4f55e515ef7d, ReleaseTagName: 20200813.1
3:20:05 PM or-yx-example: Build Operation ID: |WugGiHLq5mc=.7d777900_
3:20:05 PM or-yx-example: Repository Commit : 2fc5aa8ae4b14f0990b4290beda23849
3:20:05 PM or-yx-example: Detecting platforms...
3:20:12 PM or-yx-example: Detected following platforms:
3:20:12 PM or-yx-example:   python: 3.7.9
3:20:12 PM or-yx-example: Version '3.7.9' of platform 'python' is not installed. Generating script to install it...
3:20:12 PM or-yx-example: Warning: An outdated version of python was detected (3.7.9). Consider updating.\nVersions supported by Oryx: https://github.com/microsoft/Oryx
3:20:12 PM or-yx-example: Source directory     : /tmp/zipdeploy/extracted
3:20:12 PM or-yx-example: Destination directory: /home/site/wwwroot
3:20:12 PM or-yx-example: Downloading and extracting python version 3.7.9 to /tmp/oryx/platforms/python/3.7.9...
3:20:17 PM or-yx-example: Downloaded in 5 sec(s).
3:20:17 PM or-yx-example: Verifying checksum...
3:20:17 PM or-yx-example: Extracting contents...
3:20:31 PM or-yx-example: Done in 19 sec(s).
3:20:31 PM or-yx-example: Python Version: /tmp/oryx/platforms/python/3.7.9/bin/python3.7
3:20:31 PM or-yx-example: Running pip install...
3:20:32 PM or-yx-example: [22:20:32+0000] Collecting azure-functions
3:20:32 PM or-yx-example: [22:20:32+0000]   Downloading azure_functions-1.4.0-py3-none-any.whl (120 kB)
3:20:32 PM or-yx-example: [22:20:32+0000] Obtaining TikTokApi from git+https://github.com/Xodarap/TikTok-Api.git@73f9be9928177853539a39b26011cfbf0a842de2#egg=TikTokApi (from -r requirements.txt (line 6))
3:20:32 PM or-yx-example: [22:20:32+0000]   Cloning https://github.com/Xodarap/TikTok-Api.git (to revision 73f9be9928177853539a39b26011cfbf0a842de2) to ./src/tiktokapi
3:20:39 PM or-yx-example: [22:20:39+0000] Collecting requests
3:20:39 PM or-yx-example: [22:20:39+0000]   Downloading requests-2.24.0-py2.py3-none-any.whl (61 kB)
3:20:39 PM or-yx-example: [22:20:39+0000] Collecting selenium
3:20:39 PM or-yx-example: [22:20:39+0000]   Downloading selenium-3.141.0-py2.py3-none-any.whl (904 kB)
3:20:39 PM or-yx-example: [22:20:39+0000] Collecting pyppeteer
3:20:39 PM or-yx-example: [22:20:39+0000]   Downloading pyppeteer-0.2.2-py3-none-any.whl (145 kB)
3:20:40 PM or-yx-example: [22:20:40+0000] Collecting urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1
3:20:40 PM or-yx-example: [22:20:40+0000]   Downloading urllib3-1.25.10-py2.py3-none-any.whl (127 kB)
3:20:40 PM or-yx-example: [22:20:40+0000] Collecting idna<3,>=2.5
3:20:40 PM or-yx-example: [22:20:40+0000]   Downloading idna-2.10-py2.py3-none-any.whl (58 kB)
3:20:40 PM or-yx-example: [22:20:40+0000] Collecting certifi>=2017.4.17
3:20:40 PM or-yx-example: [22:20:40+0000]   Downloading certifi-2020.6.20-py2.py3-none-any.whl (156 kB)
3:20:40 PM or-yx-example: [22:20:40+0000] Collecting chardet<4,>=3.0.2
3:20:40 PM or-yx-example: [22:20:40+0000]   Downloading chardet-3.0.4-py2.py3-none-any.whl (133 kB)
3:20:40 PM or-yx-example: [22:20:40+0000] Collecting pyee<8.0.0,>=7.0.1
3:20:40 PM or-yx-example: [22:20:40+0000]   Downloading pyee-7.0.4-py2.py3-none-any.whl (12 kB)
3:20:40 PM or-yx-example: [22:20:40+0000] Collecting websockets<9.0,>=8.1
3:20:40 PM or-yx-example: [22:20:40+0000]   Downloading websockets-8.1-cp37-cp37m-manylinux2010_x86_64.whl (79 kB)
3:20:41 PM or-yx-example: [22:20:41+0000] Collecting tqdm<5.0.0,>=4.42.1
3:20:41 PM or-yx-example: [22:20:41+0000]   Downloading tqdm-4.50.0-py2.py3-none-any.whl (70 kB)
3:20:41 PM or-yx-example: [22:20:41+0000] Collecting appdirs<2.0.0,>=1.4.3
3:20:41 PM or-yx-example: [22:20:41+0000]   Downloading appdirs-1.4.4-py2.py3-none-any.whl (9.6 kB)
3:20:41 PM or-yx-example: [22:20:41+0000] Installing collected packages: azure-functions, urllib3, idna, certifi, chardet, requests, selenium, pyee, websockets, tqdm, appdirs, pyppeteer, TikTokApi
3:20:43 PM or-yx-example: [22:20:43+0000]   Running setup.py develop for TikTokApi
3:20:43 PM or-yx-example:     ERROR: Command errored out with exit status 1:
3:20:43 PM or-yx-example:      command: /tmp/oryx/platforms/python/3.7.9/bin/python3.7 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/zipdeploy/extracted/src/tiktokapi/setup.py'"'"'; __file__='"'"'/tmp/zipdeploy/extracted/src/tiktokapi/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' develop --no-deps --home /tmp/pip-target-pzglkc1d
3:20:43 PM or-yx-example:          cwd: /tmp/zipdeploy/extracted/src/tiktokapi/
3:20:43 PM or-yx-example:     Complete output (6 lines):
3:20:43 PM or-yx-example:     usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
3:20:43 PM or-yx-example:        or: setup.py --help [cmd1 cmd2 ...]
3:20:43 PM or-yx-example:        or: setup.py --help-commands
3:20:43 PM or-yx-example:        or: setup.py cmd --help
3:20:43 PM or-yx-example:     
3:20:43 PM or-yx-example:     error: option --home not recognized
3:20:43 PM or-yx-example:     ----------------------------------------
3:20:43 PM or-yx-example: ERROR: Command errored out with exit status 1: /tmp/oryx/platforms/python/3.7.9/bin/python3.7 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/zipdeploy/extracted/src/tiktokapi/setup.py'"'"'; __file__='"'"'/tmp/zipdeploy/extracted/src/tiktokapi/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' develop --no-deps --home /tmp/pip-target-pzglkc1d Check the logs for full command output.
3:20:43 PM or-yx-example: WARNING: You are using pip version 20.2; however, version 20.2.3 is available.
3:20:43 PM or-yx-example: You should consider upgrading via the '/tmp/oryx/platforms/python/3.7.9/bin/python3.7 -m pip install --upgrade pip' command.
3:20:43 PM or-yx-example: Done in 12 sec(s).
3:20:45 PM or-yx-example: ERROR: Command errored out with exit status 1:\n     command: /tmp/oryx/platforms/python/3.7.9/bin/python3.7 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/zipdeploy/extracted/src/tiktokapi/setup.py'"'"'; __file__='"'"'/tmp/zipdeploy/extracted/src/tiktokapi/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' develop --no-deps --home /tmp/pip-target-pzglkc1d\n         cwd: /tmp/zipdeploy/extracted/src/tiktokapi/\n    Complete output (6 lines):\n    usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]\n       or: setup.py --help [cmd1 cmd2 ...]\n       or: setup.py --help-commands\n       or: setup.py cmd --help\n    \n    error: option --home not recognized\n    ----------------------------------------\nERROR: Command errored out with exit status 1: /tmp/oryx/platforms/python/3.7.9/bin/python3.7 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/zipdeploy/extracted/src/tiktokapi/setup.py'"'"'; __file__='"'"'/tmp/zipdeploy/extracted/src/tiktokapi/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' develop --no-deps --home /tmp/pip-target-pzglkc1d Check the logs for full command output.\nWARNING: You are using pip version 20.2; however, version 20.2.3 is available.\nYou should consider upgrading via the '/tmp/oryx/platforms/python/3.7.9/bin/python3.7 -m pip install --upgrade pip' command.\n/opt/Kudu/Scripts/starter.sh oryx build /tmp/zipdeploy/extracted -o /home/site/wwwroot --platform python --platform-version 3.7 -p packagedir=.python_packages/lib/site-packages
3:20:52 PM or-yx-example: Deployment failed.

@kichalla kichalla self-assigned this Oct 6, 2020
@kichalla
Copy link
Contributor

kichalla commented Oct 6, 2020

@Xodarap Can you check if doing what the following link says helps resolving your issue?

serverless/serverless-python-requirements#240 (comment)

@kichalla kichalla assigned qianz2 and unassigned kichalla Oct 6, 2020
@Xodarap
Copy link
Author

Xodarap commented Oct 11, 2020

Yep, this works, thanks. I don't know if this is a feature request for oryx or serverless Python, but it would be nice if the error message was more helpful. Feel free to close this otherwise though

@kichalla
Copy link
Contributor

@Xodarap Thanks for trying it out and giving us an update. Yeah this error message is not from Oryx as such so we would not try to fix it at our end.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants