thesquelched / suggestive

Python MPD client with integrated Last.FM support
BSD 2-Clause "Simplified" License
4 stars 0 forks source link

Can't run after pulling git #2

Closed shatteringlass closed 10 years ago

shatteringlass commented 10 years ago

Now that you are using alembic, I cannot run suggestive any longer. This is the output:

Traceback (most recent call last):
  File "/usr/bin/suggestive", line 5, in <module>
    pkg_resources.run_script('suggestive==0.2.0', 'suggestive')
  File "/usr/lib/python3.3/site-packages/pkg_resources.py", line 492, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "/usr/lib/python3.3/site-packages/pkg_resources.py", line 1357, in run_script
    exec_(script_code, namespace, namespace)
  File "/usr/lib/python3.3/site-packages/suggestive-0.2.0-py3.3.egg/EGG-INFO/scripts/suggestive", line 5, in <module>
    pkg_resources.run_script('suggestive==0.2.0', 'suggestive')
  File "/usr/lib/python3.3/site-packages/suggestive-0.2.0-py3.3.egg/suggestive/app.py", line 1333, in main
  File "/usr/lib/python3.3/site-packages/suggestive-0.2.0-py3.3.egg/suggestive/app.py", line 1306, in run
  File "/usr/lib/python3.3/site-packages/suggestive-0.2.0-py3.3.egg/suggestive/migrate.py", line 16, in migrate
  File "/usr/lib/python3.3/site-packages/alembic-0.6.0-py3.3.egg/alembic/command.py", line 104, in upgrade
    script = ScriptDirectory.from_config(config)
  File "/usr/lib/python3.3/site-packages/alembic-0.6.0-py3.3.egg/alembic/script.py", line 57, in from_config
    util.coerce_resource_to_filename(script_location),
  File "/usr/lib/python3.3/site-packages/alembic-0.6.0-py3.3.egg/alembic/util.py", line 135, in coerce_resource_to_filename
    fname = pkg_resources.resource_filename(*fname.split(':'))
  File "/usr/lib/python3.3/site-packages/pkg_resources.py", line 884, in resource_filename
    self, resource_name
  File "/usr/lib/python3.3/site-packages/pkg_resources.py", line 1524, in get_resource_filename
    return self._extract_resource(manager, zip_path)
  File "/usr/lib/python3.3/site-packages/pkg_resources.py", line 1543, in _extract_resource
    timestamp, size = self._get_date_and_size(self.zipinfo[zip_path])
KeyError: 'suggestive/alembic'
thesquelched commented 10 years ago

I screwed up and didn't include the alembic package data. Try pulling again, then deleting your music.db file (usually located in $HOME/.suggestive). suggestive should rebuild your database.

EDIT: Don't forget to reinstall as well.