Comments (8)
@kennethreitz do you have any idea? I'm not sure what is going on here
from heroku-local.
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.
Digging through Heroku CLI/util etc to see how my environment is interrogated.
UPDATE: hint to look at node foreman.
from heroku-local.
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.
#41 also tried here: strongloop/node-foreman#149
from heroku-local.
Heroku local is not aware of runtime.txt
, like the heroku runtime is. Whatever python
is normally, it will remain.
from heroku-local.
I recommend creating a virtualenv with the desired Python interpreter and activating it before invoking heroku local
.
from heroku-local.
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)
- SyntaxError: Unexpected token ... HOT 2
- Error downloading forego-0.16.1.exe HOT 1
- Disable output truncation HOT 3
- Gracefully stopping all workers on window resize in development HOT 2
- Document concurrency and multiple process types HOT 2
- heroku local failed HOT 3
- getting error while trying to run heroku local. HOT 2
- why am i getting an error for heroku local web - f Procfile.windows ? HOT 10
- Console output while running locally HOT 1
- Cached node.js server files while running locally HOT 4
- Hostmapping?
- heroku local:run regression with specifying custom .env HOT 1
- Killing all processes with signal null HOT 3
- Can't kill zombie process HOT 6
- MODULE_NOT_FOUND: Cannot find module 'foreman/lib/procfile.js HOT 1
- Alias in .bashrc not working in Procfiles HOT 4
- Blank lines are not printed
- When you do heroku local:run rails c and then press ctrl+c everything gets screwed up
- .env values result to undefined
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from heroku-local.