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

Errors with Python workers when trying to perform heavy compute #3450

Open
samuelcolvin opened this issue Feb 2, 2025 · 2 comments
Open

Comments

@samuelcolvin
Copy link

I'm trying to run the following on Python CF workers as part of the current closed beta:

import numpy as np
import time


def main():
    size = 1000
    A = np.random.rand(size, size)
    B = np.random.rand(size, size)

    result = np.dot(A, B)
    return result

I'm seeing the following two errors when running npx wrangler tail:

POST https://xxx - Exception Thrown @ 02/02/2025, 18:20:12
  (warn) Error in makeHandler
  (warn) TypeError: Cannot read properties of undefined (reading 'callRelaxed')
  (warn)     at pyodide:python-entrypoint-helper:98:50
  (warn)     at enterJaegerSpan (pyodide-internal:jaeger:8:16)
  (warn)     at Object.fetch (pyodide:python-entrypoint-helper:97:34)
✘ [ERROR]   TypeError: Cannot read properties of undefined (reading 'callRelaxed')

and

POST https://xxx - Exception Thrown @ 02/02/2025, 18:25:41
  (error) Aborted()
  (error) Pyodide has suffered a fatal error. Please report this to the Pyodide maintainers.
  (error) The cause of the fatal error was:
  (error) RuntimeError: Aborted(). Build with -sASSERTIONS for more info.
✘ [ERROR]   Error: Aborted(). Build with -sASSERTIONS for more info.
@mikenomitch
Copy link

Hey @samuelcolvin, we'll take a look at this in the next few days and let you know.

@hoodmane
Copy link
Contributor

hoodmane commented Feb 7, 2025

I think the error TypeError: Cannot read properties of undefined (reading 'callRelaxed') is because you didn't define an on_fetch handler.

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

No branches or pull requests

3 participants