Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Execution failed on sql #39

Open
Alirezat0 opened this issue Jul 25, 2022 · 0 comments
Open

Execution failed on sql #39

Alirezat0 opened this issue Jul 25, 2022 · 0 comments

Comments

@Alirezat0
Copy link

hello,
when i run the code it errors and the error is

"""
Traceback (most recent call last):
File "C:\Users\Asus\AppData\Local\Programs\Python\Python38\lib\site-packages\pandas\io\sql.py", line 1681, in execute
cur.execute(*args, **kwargs)
sqlite3.OperationalError: no such table: stops

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "C:\Users\Asus\Desktop\gtfspy-master - Copy\examples\data\Compute and plot temporal distance profiles between an origin--destination pair.py", line 15, in
stop_dict = G.stops().to_dict("index")
File "C:\Users\Asus\AppData\Local\Programs\Python\Python38\lib\site-packages\gtfspy\gtfs.py", line 1261, in stops
return self.get_table("stops")
File "C:\Users\Asus\AppData\Local\Programs\Python\Python38\lib\site-packages\gtfspy\gtfs.py", line 185, in get_table
return pd.read_sql("SELECT * FROM " + table_name, self.conn)
File "C:\Users\Asus\AppData\Local\Programs\Python\Python38\lib\site-packages\pandas\io\sql.py", line 483, in read_sql
return pandas_sql.read_query(
File "C:\Users\Asus\AppData\Local\Programs\Python\Python38\lib\site-packages\pandas\io\sql.py", line 1727, in read_query
cursor = self.execute(*args)
File "C:\Users\Asus\AppData\Local\Programs\Python\Python38\lib\site-packages\pandas\io\sql.py", line 1693, in execute
raise ex from exc
pandas.io.sql.DatabaseError: Execution failed on sql 'SELECT * FROM stops': no such table: stops

"""

could you please help me ?
thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant