I have a question regarding the use of UUID identifiers when doing machine learning. Let’s say I’m building a collaborative filtering based movie recommender using a version of the MovieLens dataset. However, instead of having the user IDs as integers, I’m using UUIDs. For training, I can process the data in at least a couple ..
I’m using python 3.9.1 , django 3.2.5 , redis 5.0.7 and channels 3.0.4 this is my first time using channels so forgive me if this was an easy question for you I’m building a chat app so my app is running locally with no problems at all (windows 10 and wsl 2 with ubuntu 20.04 ..
I am deploying a flask app to Heroku but the app is crashing. In the log, I notice two things that ketch my attention: app[web.1]: [2021-07-21 16:50:59 +0000]  [ERROR] Exception in worker process My Procfile looks like this: web: gunicorn –chdir app app:app The second issue, which I think is the root of the ..
Faced Apache error while deploying Django site with MySQL db. Without Apache, the site works perfectly, but when you enable it, this error is thrown. I can’t figure it out for several days. This is what the logs give out: [Wed Jul 21 12:49:59.142758 2021] [wsgi:error] [pid 24588:tid 140415838369536] [remote 184.108.40.206:56573] mod_wsgi (pid=24588): Target WSGI ..
For context, I have an application that works perfectly fine locally, after some fiddling with the database. It uses a react frontend, with a django backend for internal api calls. However, on a new, fresh download, with a new, fresh database, I always get an error saying relation "claims" does not exist, where Claims is ..
I was trying to create a flask app, which contained a machine learning model : Random Forest Regressor And when I run the app locally it works fine, but when deployed on heroku the app shows an error : ValueError: Buffer dtype mismatch, expected ‘SIZE_t’ but got ‘int’ Steps That I took : I created ..
I need some help with packaging / distributing. Specifically, I have two questions: Essentially, I have 2 packages: foo and common. foo is structured like this: foo subpackage1 module1 subpackage2 module2 handler where I only need to be able to run the handler (I figured out how to do this from the commandline), but would ..
I am trying to split a CNN model into two and running one in a client browser and another one in a flask server. For this, I am in need to send the output of the CNN which runs in the client browser to the server in order to do further process in the sever ..
I am looking for suggestions or options on how to package a python project with multiple local dependencies/libraries together for deploying on VM. It will have restricted access to internet so the dependencies cannot be automatically downloaded from pypi and installed. A solution that doesn’t require elaborate setup in the VM would be preferred, but ..
from io import BytesIO import zipfile unzip = zipfile.ZipFile(BytesIO(streaming_body_1.read()),’r’) file_path = unzip.namelist() for path in file_paths: unzip.extract(path) NameError Traceback (most recent call last) <ipython-input-1-83a400a2cfce> in <module> 1 from io import BytesIO 2 import zipfile —-> 3 unzip = zipfile.ZipFile(BytesIO(streaming_body_1.read()),’r’) 4 file_path = unzip.namelist() 5 for path in file_paths: NameError: name ‘streaming_body_1’ is not defined Source: ..