scailable / sclblpy

Python package for Scailable uploads
MIT License
19 stars 1 forks source link

"Unable to find list of supported models" on running pip3 installed version. #17

Closed robinvanemden closed 4 years ago

robinvanemden commented 4 years ago

To reproduce:

Next, running any of the README examples results in:

> python3.8 example.py 
Model check error: Unable to find list of supported models.
FATAL: The model you are trying to upload is not (yet) supported or has not been fitted. 
Please see README.md for a list of supported models. 
Your models has not been uploaded. 
MKaptein commented 4 years ago

Hmm... kijkt op de verkeerde plek voor die json file vrees ik... weet je waar die kijkt?

Verstuurd vanaf mijn iPhone

Op 29 mrt. 2020 om 14:51 heeft Robin van Emden notifications@github.com het volgende geschreven:

 To reproduce:

Do a clean ubuntu 18.04 install, apt update && apt-upgrade Install python 3.8.2, pip3 Set python 3.8.2 to default Install sclblpy and scikit learn using pip3 - package version:

pip3 freeze scikit-learn==0.22.2.post1 scipy==1.4.1 sclblpy==0.1.0 Next, running any of the README examples results in:

python3 example.py Model check error: Unable to find list of supported models. FATAL: The model you are trying to upload is not (yet) supported or has not been fitted. Please see README.md for a list of supported models. Your models has not been uploaded. — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

robinvanemden commented 4 years ago

It appears that non-code files are not copied to dist when you do not explicitly include them: https://python-packaging.readthedocs.io/en/latest/non-code-files.html

Accordingly, I was able to resolve the issue by including a MANIFEST.in file together with adding include_package_data=True to the setup code.

To test the latest version of the package on my ubuntu 18.04 test install, I did need to bypass the local cache as follows: pip3 install --no-cache-dir --upgrade --force-reinstall sclblpy