superset icon indicating copy to clipboard operation
superset copied to clipboard

Error on starting web server

Open binlijin opened this issue 11 years ago • 7 comments

Hi, I'm trying to install Panoramix. Server is Mac 10.9.5 and Phyton version is 2.7.5 After installation I've first start web server and meet with error as follows:

$ python run.py
Traceback (most recent call last):
  File "run.py", line 1, in <module>
    from app import app
  File "/Users/tianzhao/dev/apache/panoramix/app/__init__.py", line 2, in <module>
    from flask import Flask
ImportError: No module named flask

binlijin avatar Aug 11 '15 09:08 binlijin

ok, it my python's problem, Flask is not installed in sys.path, and can not find it.

binlijin avatar Aug 12 '15 00:08 binlijin

I think you may have skipped the installation part that goes pip install -r requirements.txt

This should install all requirements including flask.

mistercrunch avatar Aug 12 '15 03:08 mistercrunch

hi mistercrunch, i do run the pip command to install all requirements including flask, but all modules install in /usr/local/lib/python2.7/site-packages, and i add the path to python's sys.path and it works now.

export PYTHONPATH=/usr/local/lib/python2.7/site-packages

binlijin avatar Aug 12 '15 05:08 binlijin

Weird, normally site-packages is included in your Python path automatically, unless there are many python installs that don't play well together...

mistercrunch avatar Aug 12 '15 06:08 mistercrunch

@binlijin 你知道直接下载code 怎么在自己的pycharm里面启动吗

chejinye avatar Jul 04 '16 08:07 chejinye

@chejinye 我不熟悉,之前我只是试用这个ui看满不满足我们的需求。

binlijin avatar Jul 05 '16 02:07 binlijin

@binlijin 那你们最后用了这个东西吗

chejinye avatar Jul 06 '16 02:07 chejinye