dr-rodriguez / AstrodbWeb

A web application for accessing the BDNYC SQL database
MIT License
0 stars 2 forks source link

error on import #23

Closed kelle closed 7 years ago

kelle commented 7 years ago

I'm trying to set this up fresh on one of my computers and am getting this error when I do python runapp.py

(bdnycdevdb) Outerbridge:AstrodbWeb kelle$ python runapp.py Traceback (most recent call last): File "runapp.py", line 1, in from bdnyc_app import app_bdnyc File "/Users/kelle/Dropbox/Code/Python/AstrodbWeb/bdnyc_app/init.py", line 1, in from app import * ModuleNotFoundError: No module named 'app'

dr-rodriguez commented 7 years ago

Did you clone the repo? Can you check that you have an app.py file in the bdnyc_app subfolder? What version of python are you trying to run?

I tried cloning to a fresh directory on my laptop and only replicated your error when I deleted/renamed app.py or when I ran with Python 3 (this app was built for Python 2.7)

kelle commented 7 years ago

Yes and yes.

3.6! I thought that might be the problem..

On Mon, Apr 10, 2017 at 6:30 PM David Rodriguez notifications@github.com wrote:

Did you clone the repo? Can you check that you have an app.py file in the bdnyc_app subfolder? What version of python are you trying to run?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/dr-rodriguez/AstrodbWeb/issues/23#issuecomment-293097771, or mute the thread https://github.com/notifications/unsubscribe-auth/ABYJmQP6PNzOk3HUO49IODMp1Gt28yeUks5ruq2LgaJpZM4M5Yew .

-- kelle (via iOS)

dr-rodriguez commented 7 years ago

Let me know if running with python version 2.7 fixes this.

kelle commented 7 years ago

It does indeed fix it.

dr-rodriguez commented 7 years ago

OK. README now makes an explicit mention to use Python 2.7