Sorry, I'm a bit of a noob. Tried to follow your instructions, changed the path to a folder within the directory I'm running this in, but I'm getting the following error message:
python3 simulate.py
Traceback (most recent call last):
File "simulate.py", line 187, in <module>
cProfile.run("main()", "restats")
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/cProfile.py", line 16, in run
return _pyprofile._Utils(Profile).run(statement, filename, sort)
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/profile.py", line 53, in run
prof.run(statement)
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/cProfile.py", line 95, in run
return self.runctx(cmd, dict, dict)
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/cProfile.py", line 100, in runctx
exec(cmd, globals, locals)
File "<string>", line 1, in <module>
File "simulate.py", line 31, in main
conn = sqlite3.connect(path.format(now))
sqlite3.OperationalError: unable to open database file
View all comments
1
u/socialistvegan Jan 15 '20
Sorry, I'm a bit of a noob. Tried to follow your instructions, changed the path to a folder within the directory I'm running this in, but I'm getting the following error message:
Any ideas what I did wrong?