Heroku app module not found error with pickle module in python I believe

paddyjbro

The app runs fine on local but when pushed to heroku I am getting a module not found error surrounding my pickle load. I tried to add the missing module to the requirements.txt but received more errors. Below is the error message:

ModuleNotFoundError: No module named 'numba.serialize'
Traceback:
File "/app/.heroku/python/lib/python3.6/site-packages/streamlit/script_runner.py", line 324, in _run_script
    exec(code, module.__dict__)
File "/app/app.py", line 49, in <module>
    UMAP = pickle.load((open('data/UMAPwrv.sav', 'rb')))

Does anyone know how to remedy this? Thanks!

Nuno Nelas

I'd suggest you to start using venv for managing Python packages. You can know more about it here.

However, as the documentation clearly states:

These are the lowest-level tools for managing Python packages and are recommended if higher-level tools do not suit your needs.

So, my personal recommendation is using Pipfile.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Gulp error (module not found)

From Dev

Seeing error Module not found: 'pg-native' in heroku app

From Dev

Compiler warning "Module not found: Error: Can't resolve './locale'" since I use momentjs in my react app

From Dev

Pickle module in Python and text files

From Dev

Module not found Error when deployed on Heroku

From Dev

Deployment to Heroku Error: Cannot find module '/app/server.js'

From Dev

Getting "Cannot find module '/app/dist'" error on deploying to Heroku

From Dev

module error not found on react

From Dev

Node app in Heroku: Module build failed: Error: Unexpected "space" found

From Dev

Using a Node module in a Django / Python app on Heroku

From Dev

Module not found error even though I have pip installed the module

From Dev

How can I fix module not found in python

From Dev

Module not found: error when deployed on Heroku

From Dev

No module named 'app.settings' error when running app on heroku

From Dev

Python Pickle Module and OOP

From Dev

ERROR in ./src/app/app.module.ts Module not found

From Dev

twisted module not found error from Python Flasky

From Dev

Heroku deployment succes but no module found

From Dev

Python DLL import error, module not found

From Dev

Python module not found error "No module named 'ortools' "

From Dev

Heroku error deploy: Cannot find module '/app/index.js'

From Dev

Python pickle module usage

From Dev

Module not found error with Python in Docker

From Dev

error: Cannot find module '/app/app,js' heroku

From Dev

Handling 404 not found error in wget module python

From Dev

no module found error in python even after installing module

From Dev

python module not found.. i have already installed the module tho

From Dev

Python: "Module Not Found Error" in Virtual environment

From Dev

Python Module Not Found Error when importing package

Related Related

  1. 1

    Gulp error (module not found)

  2. 2

    Seeing error Module not found: 'pg-native' in heroku app

  3. 3

    Compiler warning "Module not found: Error: Can't resolve './locale'" since I use momentjs in my react app

  4. 4

    Pickle module in Python and text files

  5. 5

    Module not found Error when deployed on Heroku

  6. 6

    Deployment to Heroku Error: Cannot find module '/app/server.js'

  7. 7

    Getting "Cannot find module '/app/dist'" error on deploying to Heroku

  8. 8

    module error not found on react

  9. 9

    Node app in Heroku: Module build failed: Error: Unexpected "space" found

  10. 10

    Using a Node module in a Django / Python app on Heroku

  11. 11

    Module not found error even though I have pip installed the module

  12. 12

    How can I fix module not found in python

  13. 13

    Module not found: error when deployed on Heroku

  14. 14

    No module named 'app.settings' error when running app on heroku

  15. 15

    Python Pickle Module and OOP

  16. 16

    ERROR in ./src/app/app.module.ts Module not found

  17. 17

    twisted module not found error from Python Flasky

  18. 18

    Heroku deployment succes but no module found

  19. 19

    Python DLL import error, module not found

  20. 20

    Python module not found error "No module named 'ortools' "

  21. 21

    Heroku error deploy: Cannot find module '/app/index.js'

  22. 22

    Python pickle module usage

  23. 23

    Module not found error with Python in Docker

  24. 24

    error: Cannot find module '/app/app,js' heroku

  25. 25

    Handling 404 not found error in wget module python

  26. 26

    no module found error in python even after installing module

  27. 27

    python module not found.. i have already installed the module tho

  28. 28

    Python: "Module Not Found Error" in Virtual environment

  29. 29

    Python Module Not Found Error when importing package

HotTag

Archive