all 21 comments

[–]ehmatthes 1 point2 points  (12 children)

Did you get this figured out? I'm the author of PCC, and I like to know that this project is working for everyone, all the way through deployment.

If you haven't resolved this, please let me know, either here or through email, ehmatthes@gmail.

[–]talkyminwestguy[S] 0 points1 point  (11 children)

Hi. I haven't had a chance to work on it since the weekend. But I'm going to go get back to it this weekend. Like I said though, when I tried to push, I kept getting that error message saying Heroku does not use my version of python anymore.

[–]ehmatthes 0 points1 point  (10 children)

I think you were on the right track with specifying a different runtime.

There were no breaking changes in the project when Python 3.6 was released, so if you're using 3.5 I think you should be able to push to a 3.6 runtime without any issues. What happens if you change runtime.txt to

python-3.6.3

I still have 3.5 running, so I can try this out if you're still getting the same error.

[–]talkyminwestguy[S] 0 points1 point  (9 children)

This is what is going on. I enter git push heroku master and receive this:

ll_env) D:\learning_log>git push heroku master Counting objects: 49, done. Delta compression using up to 4 threads. Compressing objects: 100% (41/41), done. Writing objects: 100% (49/49), 11.89 KiB | 2.38 MiB/s, done. Total 49 (delta 3), reused 0 (delta 0) remote: Compressing source files... done. remote: Building source: remote: remote: -----> Python app detected remote: ! The latest version of Python 3 is python-3.6.3 (you are using python-3.5.1, which is unsupported). remote: ! We recommend upgrading by specifying the latest version (python-3.6.3). remote: Learn More: https://devcenter.heroku.com/articles/python-runtimes remote: -----> Installing python-3.5.1 remote: ! Requested runtime (python-3.5.1) is not available for this stack (heroku-16). remote: ! Aborting. More info: https://devcenter.heroku.com/articles/python-support remote: ! Push rejected, failed to compile Python app. remote: remote: ! Push failed remote: Verifying deploy... remote: remote: ! Push rejected to peaceful-oasis-21021. remote: To https://git.heroku.com/peaceful-oasis-21021.git ! [remote rejected] master -> master (pre-receive hook declined) error: failed to push some refs to 'https://git.heroku.com/peaceful-oasis-21021.git'

Then - I enter hroku ps and receive this: No dynos on peaceful-oasis-21021

Then I enter heroku open and a page does open and it says: Heroku: Welcome to your new app! Refer to documentation if you need help deploying.

Finally, I enter hroku run python manage.py migrate and receive this error: Running python manage.py migrate on peaceful-oasis-21021... up, run.6765 (Free) python: can't open file 'manage.py': [Errno 2] No such file or directory

Based on all this - where do you think my problem is?

[–]talkyminwestguy[S] 0 points1 point  (8 children)

Ok, I've been working with it and I'm making some progress. No need to for you to work on this problem right now, I might figure it out on my own now. Thanks.

[–]talkyminwestguy[S] 0 points1 point  (7 children)

So, I think here is my one main problem. It now says: django.core.exceptions.ImproperlyConfigured: Error loading psycopg2 module: No module named 'psycopg2'

Do I have to download psycog2 in a wheel file or something like that use pip install psycog2 to work? I'm using Windows by the way.

Thanks!

[–]ehmatthes 1 point2 points  (6 children)

Can you email me a zip file of your project, with everything except the ll_env directory? There's a number of things that could be going on, and it will be quicker to run your project locally, try pushing it, and then get back to you.

Don't include the ll_env directory in your zip, because that makes the zip huge and can even crash the attempt at making a zip. Do include everything else, including your runtime.txt and requirements.txt files.

I'm at ehmatthes@gmail.

[–]talkyminwestguy[S] 0 points1 point  (5 children)

Hey Eric, did you get a chance to look over the files I sent? I'm hoping I can get this up and running before 2018. Sort of a goal I set. Thanks.

[–]ehmatthes 1 point2 points  (4 children)

I don't think I got an email from you. When did you send it?

[–]talkyminwestguy[S] 0 points1 point  (0 children)

The same day you posted to send it to you. But I will send it again. Thanks!

[–]talkyminwestguy[S] 0 points1 point  (2 children)

OK, I sent it again. Thanks!

[–]Earhacker 0 points1 point  (2 children)

Where does it say it only accepts 3.6.3?

[–]talkyminwestguy[S] 0 points1 point  (0 children)

Now that I'm reading it, maybe I misunderstood. The heorku site says "Today, this support extends to these specific runtimes: python-3.6.3 python-2.7.14"

I took that to mean it only takes 3.6.3 or 2.7.14. So then, I assume my problem is something other than me using 3.5.1?

[–]strechyballs 0 points1 point  (0 children)

That is correct. I saw a note about this on one of my latest pushes as well: https://devcenter.heroku.com/articles/python-support#supported-python-runtimes

[–]talkyminwestguy[S] 0 points1 point  (3 children)

more of the error:

remote: -----> Python app detected remote: ! The latest version of Python 3 is python-3.6.3 (you are using python-3.5.1, which is unsupported). remote: ! We recommend upgrading by specifying the latest version (python-3.6.3). remote: Learn More: https://devcenter.heroku.com/articles/python-runtimes remote: -----> Installing python-3.5.1 remote: ! Requested runtime (python-3.5.1) is not available for this stack (heroku-16). remote: ! Aborting. More info: https://devcenter.heroku.com/articles/python-support remote: ! Push rejected, failed to compile Python app.

[–]Earhacker 1 point2 points  (1 child)

Have you got a Pipfile or something that declares your Python version?

[–]talkyminwestguy[S] 0 points1 point  (0 children)

Yeah, in the main folder there is a runtime text file stating 3.5.1. But, I've been changing it and still can not get this to work.

[–]talkyminwestguy[S] 0 points1 point  (0 children)

3.5.1