Silly newb question, it seems I can’t use git to install content I need in the Heroku console, but my app/bot is dependent on content I normally use that for. I know very little about how git and pip work, or the right terminology to ask a question like this, so bare with me!
I have a bot made with Tomer8007’s Kik Bot API that I’ve embedded in Flask and want to deploy to Heroku. I’ve deployed Flask sites there before, they work like a charm, but because I import everything to Heroku via git using the Heroku CLI I can’t import this one which is already using git.
I normally use these two commands to fetch and install the dependencies I need for that project:
git clone -b new https://github.com/tomer8007/kik-bot-api-unofficial pip install ./kik-bot-api-unofficial
I tried manually downloading and installing the API without git, but then it throws this error when I tried to run it: “TypeError: Couldn’t build proto file into descriptor pool: duplicate file name (google/protobuf/descriptor.proto)”, wheras it works perfectly fine when I use the two above commands instead. (This is locally btw).
I also made an attempt to import to heroku before using those commands and instead using them in the heroku console, but it throws a bunch of errors when I try. I also can’t import it after using those commands locally, because I already used git. (I’m not sure how that works though, that’s why I’m here.)
Everything in procfile.txt, requirements.txt, runtime.txt, etc is fine, the only issue is getting the API for the Kik bot. I’ve no idea what’s going haywire when I attempt to manually download it instead of using git clone, or what alternative options I have. Any pointers?
Leave an answer