cloud66-oss / starter

Helping you get started with containerized apps.
https://www.cloud66.com/opensource-software/
Apache License 2.0
310 stars 57 forks source link

Python: "Failed to detect supported framework" #105

Open drscotthawley opened 4 years ago

drscotthawley commented 4 years ago

"Starter is an open-source command line tool to generate a Dockerfile and a service.yml file from arbitrary source code."

Sounds great! This is just what I was looking for when I found your app!

I have a Python project that already has a requirements.txt file, a setup.py and setup.cfg files. Environment is in Anaconda, on Ubuntu 18.04.

Installed via

$ sudo cp linux_amd64_1.4.3 /usr/local/bin/starter
$ sudo chmod a+x /usr/local/bin/starter

Running inside my project directory yields...

$ cd [my project]
$ starter -g dockerfile,service,docker-compose
 Starter (c) 2019 Cloud66 Inc.
 Checking templates in /home/shawley/.starter
 ----> Downloading from https://raw.githubusercontent.com/cloud66/starter/master/templates/templates.json
 No local templates found. Downloading now.
 ----> Downloading from https://raw.githubusercontent.com/cloud66/starter/master/templates/templates.json
 ----> Downloading from https://raw.githubusercontent.com/cloud66/starter/master/templates/node.dockerfile.template
 ----> Downloading from https://raw.githubusercontent.com/cloud66/starter/master/templates/python.dockerfile.template
 ----> Downloading from https://raw.githubusercontent.com/cloud66/starter/master/templates/ruby.dockerfile.template
 ----> Downloading from https://raw.githubusercontent.com/cloud66/starter/master/templates/php.dockerfile.template
 ----> Downloading from https://raw.githubusercontent.com/cloud66/starter/master/templates/service.yml.template
 ----> Downloading from https://raw.githubusercontent.com/cloud66/starter/master/templates/docker-compose.yml.template
 Local templates are up to date
 Detecting framework for the project at /home/shawley/panotti
 Failed to detect supported framework

...and that's all it says. What now? (What was it hoping to detect, and why did it fail?)

If you want to see the project, check here: https://github.com/drscotthawley/panotti

khash commented 4 years ago

Thank you for reporting this and sorry for the late response. We're working on improving Python support.

Gamblez commented 4 years ago

After similar installation experience I'm experiencing the same issue.

Is there any update regarding the Py framework detection?

khash commented 3 years ago

Thank you for following up. We don't have an exact timeline for Python support but any PR is welcome!