#Custom Runtime && Problem Building Python 3.9

18 messages · Page 1 of 1 (latest)

daring arch
#

Hey,

So I see in the starter templates that I can use different Python versions or what not, but how do I actually specify this? I can’t find it anywhere in the docs, and when I tried to deploy a python-3.11 function it errored on me. Additionally, when changing that 3.11 back to 3.9, it errors on build for a reason I do not understand

Installing collected packages: pyxb, urllib3, lxml, idna, charset-normalizer, certifi, requests, authorizenet, appwrite
  Running setup.py install for pyxb: started
  Running setup.py install for pyxb: finished with status 'error'
  error: subprocess-exited-with-error
  
  × Running setup.py install for pyxb did not run successfully.
  │ exit code: -9
  ╰─> [383 lines of output]
      Found bundle in /tmp/pip-install-ebcfy4wo/pyxb_9e14f3fb3495400ba3fc1cd6c4bdf977/pyxb/bundles/common
      bunch of shit in the middle
      copying build/lib/pyxb/utils/activestate.py -> /usr/local/build/runtime-env/lib/python3.9/site-packages/pyxb/utils
      copying build/lib/pyxb/utils/domutils.py -> /usr/local/build/runtime-env/lib/python3.9/site-packages/pyxb/utils
      copying build/lib/pyxb/utils/templates.py -> /usr/local/build/runtime-env/lib/python3.9/site-packages/pyxb/utils
      copying build/lib/pyxb/utils/unicode_data.py -> /usr/local/build/runtime-env/lib/python3.9/site-packages/pyxb/utils
      copying build/lib/pyxb/utils/saxdom.py -> /usr/local/build/runtime-env/lib/python3.9/site-packages/pyxb/utils
      copying build/lib/pyxb/utils/fac.py -> /usr/local/build/runtime-env/lib/python3.9/site-packages/pyxb/utils
      copying build/lib/pyxb/utils/six.py -> /usr/local/build/runtime-env/lib/python3.9/site-packages/pyxb/utils
      copying build/lib/pyxb/utils/saxutils.py -> /usr/local/build/runtime-env/lib/python3.9/site-packages/pyxb/utils
      copying build/lib/pyxb/utils/utility.py -> /usr/local/build/runtime-env/lib/python3.9/site-packages/pyxb/utils
      copying build/lib/pyxb/exceptions_.py -> /usr/local/build/runtime-env/lib/python3.9/site-packages/pyxb
      byte-compiling /usr/local/build/runtime-env/lib/python3.9/site-packages/pyxb/binding/datatypes.py to datatypes.cpython-39.pyc
      byte-compiling /usr/local/build/runtime-env/lib/python3.9/site-packages/pyxb/binding/__init__.py to __init__.cpython-39.pyc
      byte-compiling /usr/local/build/runtime-env/lib/python3.9/site-packages/pyxb/binding/content.py to content.cpython-39.pyc
      byte-compiling /usr/local/build/runtime-env/lib/python3.9/site-packages/pyxb/binding/basis.py to basis.cpython-39.pyc
      byte-compiling /usr/local/build/runtime-env/lib/python3.9/site-packages/pyxb/binding/facets.py to facets.cpython-39.pyc
      byte-compiling /usr/local/build/runtime-env/lib/python3.9/site-packages/pyxb/binding/saxer.py to saxer.cpython-39.pyc
      byte-compiling /usr/local/build/runtime-env/lib/python3.9/site-packages/pyxb/binding/xml_.py to xml_.cpython-39.pyc
      byte-compiling /usr/local/build/runtime-env/lib/python3.9/site-packages/pyxb/binding/generate.py to generate.cpython-39.pyc
      byte-compiling /usr/local/build/runtime-env/lib/python3.9/site-packages/pyxb/__init__.py to __init__.cpython-39.pyc
      byte-compiling /usr/local/build/runtime-env/lib/python3.9/site-packages/pyxb/bundles/common/__init__.py to __init__.cpython-39.pyc
      byte-compiling /usr/local/build/runtime-env/lib/python3.9/site-packages/pyxb/bundles/common/raw/__init__.py to __init__.cpython-39.pyc
      byte-compiling /usr/local/build/runtime-env/lib/python3.9/site-packages/pyxb/bundles/common/raw/xlink.py to xlink.cpython-39.pyc
      byte-compiling /usr/local/build/runtime-env/lib/python3.9/site-packages/pyxb/bundles/common/raw/xhtml1.py to xhtml1.cpython-39.pyc
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure

× Encountered error while trying to install package.
╰─> pyxb

So yeah any help would be appreciated

rare atlas
rare atlas
rare atlas
daring arch
#

When I use CLI I can’t choose other than the default 4 and if I set it to Python-3.11 and try to deploy it it gives me a useless error about the runtime like I didn’t know that, so we have to use the UI to use any custom runtime or?

rare atlas
daring arch
#

How do I enable runtimes?

rare atlas
#

On cloud, we only have select runtimes enabled

daring arch
#

OH

#

Okay

daring arch
#

Okay so it still fails with -8

#

-9

#

If that’s an “out of memory” error, you guys best fix that ASAP to be an actual “out of memory error”, as it stands right now it’s just a screw you number with no explanation and no solution, I didn’t know installing authorizenet was too much memory for this but I’ll look into self hosting

rare atlas
daring arch
#

damn