$ heroku run python db_users.py
Running `python db_users.py` attached to terminal... up, run.9338
Traceback (most recent call last):
File "db_users.py", line 4, in <module>
set_directory_fields()
File "/app/public_records_portal/prr.py", line 284, in set_directory_fields
csvfile = urllib.urlopen(app.config['STAFF_URL'])
File "/app/.heroku/python/lib/python2.7/urllib.py", line 87, in urlopen
return opener.open(url)
File "/app/.heroku/python/lib/python2.7/urllib.py", line 208, in open
return getattr(self, name)(url)
File "/app/.heroku/python/lib/python2.7/urllib.py", line 463, in open_file
return self.open_local_file(url)
File "/app/.heroku/python/lib/python2.7/urllib.py", line 477, in open_local_file
raise IOError(e.errno, e.strerror, e.filename)
IOError: [Errno 2] No such file or directory: 'not supplied'
$ heroku run python db_seed.py
Running `python db_seed.py` attached to terminal... up, run.4419
Traceback (most recent call last):
File "db_seed.py", line 1, in <module>
from public_records_portal import prr, db_helpers, departments, db, models
ImportError: cannot import name departments
$
The error in db_seed.py is due to an issue I already submitted a pull request for: codeforamerica/recordtrac#154.
With that fix committed we hit this error, which I assume is caused by the lack of db_users: