Heroku python deploy error. Forcing postgre when I'm using MySQL












0















I am having a problem when deploying my python app to heroku. It worked some weeks ago, but now I get the following error:



Compressing source files... done.
remote: Building source:
remote:
remote: -----> Python app detected
remote: ! Python has released a security update! Please consider upgrading to python-3.6.6
remote: Learn More: https://devcenter.heroku.com/articles/python-runtimes
remote: -----> Installing requirements with pip
remote: Collecting psycopg2==2.6.2 (from -r /tmp/build_4da55df137eec05ceddf34ca700ab233/requirements.txt (line 4))
remote: Downloading https://files.pythonhosted.org/packages/7b/a8/dc2d50a6f37c157459cd18bab381c8e6134b9381b50fbe969997b2ae7dbc/psycopg2-2.6.2.tar.gz (376kB)
remote: Complete output from command python setup.py egg_info:
remote: running egg_info
remote: creating pip-egg-info/psycopg2.egg-info
remote: writing pip-egg-info/psycopg2.egg-info/PKG-INFO
remote: writing dependency_links to pip-egg-info/psycopg2.egg-info/dependency_links.txt
remote: writing top-level names to pip-egg-info/psycopg2.egg-info/top_level.txt
remote: writing manifest file 'pip-egg-info/psycopg2.egg-info/SOURCES.txt'
remote: Error: could not determine PostgreSQL version from '10.5'
remote:
remote: ----------------------------------------
remote: Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-4o1vw6rl/psycopg2/
remote: ! Push rejected, failed to compile Python app.
remote:
remote: ! Push failed



I am using the default heroku build package. I don't understand why it is trying to install psycopg2-2.6.2, I don't have it in my requirements file, I'm actually using mysqlclient.



Thanks in advance.










share|improve this question























  • What's in your requirements file?

    – RangerRanger
    Nov 15 '18 at 18:38











  • requirements.txt dj-database-url==0.4.1 Django==1.11.1 gunicorn==19.6.0 whitenoise==3.2 mysqlclient==1.3.12 djangorestframework==3.6.4 django-debug-toolbar==1.8 django-cors-headers==2.1.0

    – Esteban Dib
    Nov 15 '18 at 19:18


















0















I am having a problem when deploying my python app to heroku. It worked some weeks ago, but now I get the following error:



Compressing source files... done.
remote: Building source:
remote:
remote: -----> Python app detected
remote: ! Python has released a security update! Please consider upgrading to python-3.6.6
remote: Learn More: https://devcenter.heroku.com/articles/python-runtimes
remote: -----> Installing requirements with pip
remote: Collecting psycopg2==2.6.2 (from -r /tmp/build_4da55df137eec05ceddf34ca700ab233/requirements.txt (line 4))
remote: Downloading https://files.pythonhosted.org/packages/7b/a8/dc2d50a6f37c157459cd18bab381c8e6134b9381b50fbe969997b2ae7dbc/psycopg2-2.6.2.tar.gz (376kB)
remote: Complete output from command python setup.py egg_info:
remote: running egg_info
remote: creating pip-egg-info/psycopg2.egg-info
remote: writing pip-egg-info/psycopg2.egg-info/PKG-INFO
remote: writing dependency_links to pip-egg-info/psycopg2.egg-info/dependency_links.txt
remote: writing top-level names to pip-egg-info/psycopg2.egg-info/top_level.txt
remote: writing manifest file 'pip-egg-info/psycopg2.egg-info/SOURCES.txt'
remote: Error: could not determine PostgreSQL version from '10.5'
remote:
remote: ----------------------------------------
remote: Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-4o1vw6rl/psycopg2/
remote: ! Push rejected, failed to compile Python app.
remote:
remote: ! Push failed



I am using the default heroku build package. I don't understand why it is trying to install psycopg2-2.6.2, I don't have it in my requirements file, I'm actually using mysqlclient.



Thanks in advance.










share|improve this question























  • What's in your requirements file?

    – RangerRanger
    Nov 15 '18 at 18:38











  • requirements.txt dj-database-url==0.4.1 Django==1.11.1 gunicorn==19.6.0 whitenoise==3.2 mysqlclient==1.3.12 djangorestframework==3.6.4 django-debug-toolbar==1.8 django-cors-headers==2.1.0

    – Esteban Dib
    Nov 15 '18 at 19:18
















0












0








0








I am having a problem when deploying my python app to heroku. It worked some weeks ago, but now I get the following error:



Compressing source files... done.
remote: Building source:
remote:
remote: -----> Python app detected
remote: ! Python has released a security update! Please consider upgrading to python-3.6.6
remote: Learn More: https://devcenter.heroku.com/articles/python-runtimes
remote: -----> Installing requirements with pip
remote: Collecting psycopg2==2.6.2 (from -r /tmp/build_4da55df137eec05ceddf34ca700ab233/requirements.txt (line 4))
remote: Downloading https://files.pythonhosted.org/packages/7b/a8/dc2d50a6f37c157459cd18bab381c8e6134b9381b50fbe969997b2ae7dbc/psycopg2-2.6.2.tar.gz (376kB)
remote: Complete output from command python setup.py egg_info:
remote: running egg_info
remote: creating pip-egg-info/psycopg2.egg-info
remote: writing pip-egg-info/psycopg2.egg-info/PKG-INFO
remote: writing dependency_links to pip-egg-info/psycopg2.egg-info/dependency_links.txt
remote: writing top-level names to pip-egg-info/psycopg2.egg-info/top_level.txt
remote: writing manifest file 'pip-egg-info/psycopg2.egg-info/SOURCES.txt'
remote: Error: could not determine PostgreSQL version from '10.5'
remote:
remote: ----------------------------------------
remote: Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-4o1vw6rl/psycopg2/
remote: ! Push rejected, failed to compile Python app.
remote:
remote: ! Push failed



I am using the default heroku build package. I don't understand why it is trying to install psycopg2-2.6.2, I don't have it in my requirements file, I'm actually using mysqlclient.



Thanks in advance.










share|improve this question














I am having a problem when deploying my python app to heroku. It worked some weeks ago, but now I get the following error:



Compressing source files... done.
remote: Building source:
remote:
remote: -----> Python app detected
remote: ! Python has released a security update! Please consider upgrading to python-3.6.6
remote: Learn More: https://devcenter.heroku.com/articles/python-runtimes
remote: -----> Installing requirements with pip
remote: Collecting psycopg2==2.6.2 (from -r /tmp/build_4da55df137eec05ceddf34ca700ab233/requirements.txt (line 4))
remote: Downloading https://files.pythonhosted.org/packages/7b/a8/dc2d50a6f37c157459cd18bab381c8e6134b9381b50fbe969997b2ae7dbc/psycopg2-2.6.2.tar.gz (376kB)
remote: Complete output from command python setup.py egg_info:
remote: running egg_info
remote: creating pip-egg-info/psycopg2.egg-info
remote: writing pip-egg-info/psycopg2.egg-info/PKG-INFO
remote: writing dependency_links to pip-egg-info/psycopg2.egg-info/dependency_links.txt
remote: writing top-level names to pip-egg-info/psycopg2.egg-info/top_level.txt
remote: writing manifest file 'pip-egg-info/psycopg2.egg-info/SOURCES.txt'
remote: Error: could not determine PostgreSQL version from '10.5'
remote:
remote: ----------------------------------------
remote: Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-4o1vw6rl/psycopg2/
remote: ! Push rejected, failed to compile Python app.
remote:
remote: ! Push failed



I am using the default heroku build package. I don't understand why it is trying to install psycopg2-2.6.2, I don't have it in my requirements file, I'm actually using mysqlclient.



Thanks in advance.







python mysql postgresql heroku pip






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 15 '18 at 14:36









Esteban DibEsteban Dib

63




63













  • What's in your requirements file?

    – RangerRanger
    Nov 15 '18 at 18:38











  • requirements.txt dj-database-url==0.4.1 Django==1.11.1 gunicorn==19.6.0 whitenoise==3.2 mysqlclient==1.3.12 djangorestframework==3.6.4 django-debug-toolbar==1.8 django-cors-headers==2.1.0

    – Esteban Dib
    Nov 15 '18 at 19:18





















  • What's in your requirements file?

    – RangerRanger
    Nov 15 '18 at 18:38











  • requirements.txt dj-database-url==0.4.1 Django==1.11.1 gunicorn==19.6.0 whitenoise==3.2 mysqlclient==1.3.12 djangorestframework==3.6.4 django-debug-toolbar==1.8 django-cors-headers==2.1.0

    – Esteban Dib
    Nov 15 '18 at 19:18



















What's in your requirements file?

– RangerRanger
Nov 15 '18 at 18:38





What's in your requirements file?

– RangerRanger
Nov 15 '18 at 18:38













requirements.txt dj-database-url==0.4.1 Django==1.11.1 gunicorn==19.6.0 whitenoise==3.2 mysqlclient==1.3.12 djangorestframework==3.6.4 django-debug-toolbar==1.8 django-cors-headers==2.1.0

– Esteban Dib
Nov 15 '18 at 19:18







requirements.txt dj-database-url==0.4.1 Django==1.11.1 gunicorn==19.6.0 whitenoise==3.2 mysqlclient==1.3.12 djangorestframework==3.6.4 django-debug-toolbar==1.8 django-cors-headers==2.1.0

– Esteban Dib
Nov 15 '18 at 19:18














0






active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53321792%2fheroku-python-deploy-error-forcing-postgre-when-im-using-mysql%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53321792%2fheroku-python-deploy-error-forcing-postgre-when-im-using-mysql%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Florida Star v. B. J. F.

Error while running script in elastic search , gateway timeout

Adding quotations to stringified JSON object values