Giter Club home page Giter Club logo

dockers's People

Contributors

krishnaik06 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

dockers's Issues

Issue when using POST method while sending request for the file

When calling the route - @app.route('/predict_file',methods=["POST"]) via POSTMAN and uploading the csv the following error is displayed in POSTMAN console:

<title>500 Internal Server Error</title>

The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.

Digging further I noticed that it was an error in the application and my spyder console had the following Value error.

ValueError: Invalid file path or buffer object type: <class 'NoneType'>

Any idea what could be causing this?

Trying unpickle estimator RandomForest

When i tried to run the pickle file it is showing this error UserWarning: Trying to unpickle estimator RandomForestClassifier from version 1.0.2 when using version 1.1.2. This might lead to breaking code or invalid results. Use at your own risk. For more info please refer to: https://scikit-learn.org/stable/model_persistence.html#security-maintainability-limitations warnings.warn(
The solution that I found: Apparently pickle will not work with version mismatch either when there are minor changes it will not work because if we add or rename a field in a class then we cannot unpickle the previous version. it will change the structure of the library.
according to this: scikit-learn/scikit-learn#16033****

PS: reply to this thread if anyone found a better approach to handle this issue.

Suggesting a slight change in Dockerfile

Hi,

While running your project on a Mac, I was receiving a lot of errors while building the image but changing the first line of the Dockerfile from FROM continuumio/anaconda3:4.4.0 to FROM continuumio/anaconda3 saves the day

Getting an error in docker while building an image

Hi, everyone, I am new to docker and as I was building my first image in docker by the following command -

docker build -t money_api .

I got this error:

#9 77.84 Collecting pyarrow; python_version < "3.9" (from streamlit->-r requirements.txt (line 13))
#9 79.77 Downloading https://files.pythonhosted.org/packages/62/d3/a482d8a4039bf931ed6388308f0cc0541d0cab46f0bbff7c897a74f1c576/pyarrow-3.0.0.tar.gz (682kB)
#9 81.74 Complete output from command python setup.py egg_info:
#9 81.74 Traceback (most recent call last):
#9 81.74 File "", line 1, in
#9 81.74 File "/tmp/pip-build-_aju5a4y/pyarrow/setup.py", line 44, in
#9 81.74 raise Exception('Please upgrade to Cython 0.29 or newer')
#9 81.74 Exception: Please upgrade to Cython 0.29 or newer
#9 81.74
#9 81.74 ----------------------------------------
#9 82.02 Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-_aju5a4y/pyarrow/
#9 84.52 You are using pip version 9.0.1, however version 21.1 is available.
#9 84.52 You should consider upgrading via the 'pip install --upgrade pip' command.
executor failed running [/bin/sh -c pip install -r requirements.txt]: exit code: 1

I tried commands to upgrade my pip but nothing happened.

In my requirements file these are the elements-

Flask==1.1.1
gunicorn==19.9.0
itsdangerous==1.1.0
Jinja2==2.10.1
MarkupSafe==1.1.1
Werkzeug==0.15.5
numpy>=1.9.2
scipy>=0.15.1
scikit-learn==0.22.1
matplotlib>=1.4.3
pandas>=0.19
flasgger==0.9.4
streamlit

In my Docker file, I have written -
FROM continuumio/anaconda3:4.4.0
COPY . /usr/app/
EXPOSE 5000
WORKDIR /usr/app/
RUN pip install -r requirements.txt
CMD python flask_api.py

I am working on Windows 10 Pro N, with Python 3.7.

Flask URL is not working

docker run -p 9191:9191 money_api

for all the combination URL is not working
localhost:5000
localhost:9191

0.0.0.0:5000
0.0.0.0:9191

127.0.0.1:5000
127.0.0.1:9191

Note: in docker file, if we give other port also for Expose apart from 5000 it's running on 5000 port only

dockerfile parse error line 1: FROM requires either one or three arguments

Facing an error while executing docker build -t money_api . on MacBook terminal.

output:-

[+] Building 0.1s (2/2) FINISHED
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 84B 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
failed to solve with frontend dockerfile.v0: failed to create LLB definition: dockerfile parse error line 1: FROM requires either one or three arguments

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.