mistkml / mistk

Model Integration Software Development Kit
20 stars 12 forks source link

Errors when installing the test harness #4

Open evanoffm opened 4 years ago

evanoffm commented 4 years ago

pip3 install mistk_test_harness-0.4.10-py3-none-any.whl

gives the following error:

File "/usr/share/python-wheels/requests-2.18.4-py2.py3-none-any.whl/requests/models.py", line 935, in raise_for_status raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://pypi.org/simple/mistk/

dcastel1 commented 4 years ago

Try installing both packages at the same time, eg:

pip3 install https://github.com/mistkml/mistk/releases/download/0.4.10/mistk-0.4.10-py3-none-any.whl https://github.com/mistkml/mistk/releases/download/0.4.10/mistk_test_harness-0.4.10-py3-none-any.whl

evanoffm commented 4 years ago

Thanks.

FYI - here is the set of commands that I used to get MISTK running on a fresh cloud instance. It took me a while to get to this point. It is running at http://35.224.66.52:8080/v1/mistk/ui/#/Model_Instance_Endpoint

I am still trying to get the correct modelPath for the /buidlModel dialog box so I can start building and training the model. The instructions don't include such explicit information.

------ Installing and running MISTK ------

sudo apt install python3-pip sudo apt install make

cd ~ mkdir MISTK cd MISTK

wget https://github.com/mistkml/mistk/archive/master.zip unzip master.zip rm master.zip

cd mistk-master

sudo apt-get install python3-venv python3 -m venv env source env/bin/activate

pip3 install wheel

wget https://github.com/mistkml/mistk/releases/download/0.4.10/mistk-0.4.10-py3-none-any.whl wget https://github.com/mistkml/mistk/releases/download/0.4.10/mistk_test_harness-0.4.10-py3-none-any.whl

pip3 install mistk--py3-none-any.whl pip3 install mistk_test_harness--py3-none-any.whl

the setup.py file has the wrong version of the mistk software:

version=os.getenv('VERSION', '0.4.8')

Need to change this to 0.4.10

sed -i 's/0.4.8/0.4.10/' setup.py

python3 setup.py easy_install -Z .

cd ~/MISTK/mistk-master/examples/logistic_regression python3 setup.py easy_install -Z . cd ~/MISTK/mistk-master

python -m mistk scikit_learn.logistic_regression ScikitLearnLogisticRegressionModel

Now, you should be able to connect to the server. My server is named

"linux"

http://linux:8080/v1/mistk/ui/#/Model_Instance_Endpoint

On Mon, Apr 6, 2020 at 5:39 PM David Castello notifications@github.com wrote:

Try installing both packages at the same time, eg:

pip3 install https://github.com/mistkml/mistk/releases/download/0.4.10/mistk-0.4.10-py3-none-any.whl https://github.com/mistkml/mistk/releases/download/0.4.10/mistk_test_harness-0.4.10-py3-none-any.whl

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/mistkml/mistk/issues/4#issuecomment-610051250, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIWESO6MK2E2HJDVEAI7R43RLJD2TANCNFSM4LXZV6UA .