Giter Site home page Giter Site logo

Comments (8)

jdx avatar jdx commented on June 12, 2024

@kennethreitz do you have any idea? I'm not sure what is going on here

from heroku-local.

opyate avatar opyate commented on June 12, 2024

I even tried conda install python=3.6.3 and changing runtime.txt to python-3.6.3 as per the latest supported version.

from heroku-local.

opyate avatar opyate commented on June 12, 2024

Digging through Heroku CLI/util etc to see how my environment is interrogated.

UPDATE: hint to look at node foreman.

from heroku-local.

opyate avatar opyate commented on June 12, 2024

Foreman clearly finds System py27 (at "/Library/Python/2.7"):

% heroku local
[WARN] No ENV file found
16:43:54 web.1   |  [2018-01-05 16:43:54 +0000] [27288] [INFO] Starting gunicorn 19.7.1
16:43:54 web.1   |  [2018-01-05 16:43:54 +0000] [27288] [INFO] Listening at: http://0.0.0.0:5000 (27288)
16:43:54 web.1   |  [2018-01-05 16:43:54 +0000] [27288] [INFO] Using worker: sync
16:43:54 web.1   |  [2018-01-05 16:43:54 +0000] [27292] [INFO] Booting worker with pid: 27292
16:43:54 web.1   |  [2018-01-05 16:43:54 +0000] [27293] [INFO] Booting worker with pid: 27293
16:43:54 web.1   |  [2018-01-05 16:43:54 +0000] [27294] [INFO] Booting worker with pid: 27294
16:43:54 web.1   |  [2018-01-05 16:43:54 +0000] [27292] [ERROR] invalid syntax (__init__.py, line 5)
16:43:54 web.1   |  Traceback (most recent call last):
16:43:54 web.1   |    File "/Library/Python/2.7/site-packages/gunicorn/workers/base.py", line 135, in load_wsgi
16:43:54 web.1   |      self.wsgi = self.app.wsgi()

from heroku-local.

opyate avatar opyate commented on June 12, 2024

#41 also tried here: strongloop/node-foreman#149

from heroku-local.

kennethreitz avatar kennethreitz commented on June 12, 2024

Heroku local is not aware of runtime.txt, like the heroku runtime is. Whatever python is normally, it will remain.

from heroku-local.

kennethreitz avatar kennethreitz commented on June 12, 2024

I recommend creating a virtualenv with the desired Python interpreter and activating it before invoking heroku local.

from heroku-local.

opyate avatar opyate commented on June 12, 2024

Thanks for the suggestions.

So many moving parts: heroku, conda, python, foreman, gunicorn.

I suspect the problem with OSX system python clashing with conda python somehow, and gunicorn not getting the correct environment (or the wrong/old gunicorn in /Library/Python/2.7/site-packages/gunicorn being used).

Anyhoo, closing, as this is clearly not a heroku-local issue.

from heroku-local.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.