Opened 11 years ago

Closed 9 years ago

#739 closed defect (invalid)

No module named audio.models

Reported by: Danilo Tomasoni Owned by:
Priority: major Milestone:
Component: programming Keywords:
Cc: Parent Tickets:

Description

Complete traceback:

mediagoblin@lolly:~/mediagoblin$ ./bin/gmg dbupdate
Traceback (most recent call last):
  File "./bin/gmg", line 9, in <module>
    load_entry_point('mediagoblin==0.4.1.dev', 'console_scripts', 'gmg')()
  File "/media/nfs/home/mediagoblin/mediagoblin/mediagoblin/gmg_commands/__init__.py", line 104, in main_cli
    args.func(args)
  File "/media/nfs/home/mediagoblin/mediagoblin/mediagoblin/gmg_commands/dbupdate.py", line 132, in dbupdate
    run_dbupdate(app_config, global_config)
  File "/media/nfs/home/mediagoblin/mediagoblin/mediagoblin/gmg_commands/dbupdate.py", line 116, in run_dbupdate
    global_config.get('plugins', {}).keys())
  File "/media/nfs/home/mediagoblin/mediagoblin/mediagoblin/gmg_commands/dbupdate.py", line 64, in gather_database_data
    models = import_component('%s.models:MODELS' % media_type)
  File "/media/nfs/home/mediagoblin/mediagoblin/mediagoblin/tools/common.py", line 34, in import_component
    __import__(module_name)
ImportError: No module named audio.models

this on a fresh debian 7.1 install with media_types.audio and dave thompson 421-mysql branch,
but I don't think this is related to mysql.

I tried to install through pip audio and audio.models but it doesn't find them..
How can I fix?

Change History (2)

comment:1 by Danilo Tomasoni, 11 years ago

Removing from mediagoblin_local.ini
media_types.audio I get

Traceback (most recent call last):
  File "./bin/gmg", line 9, in <module>
    load_entry_point('mediagoblin==0.4.1.dev', 'console_scripts', 'gmg')()
  File "/media/nfs/home/mediagoblin/mediagoblin/mediagoblin/gmg_commands/__init__.py", line 104, in main_cli
    args.func(args)
  File "/media/nfs/home/mediagoblin/mediagoblin/mediagoblin/gmg_commands/dbupdate.py", line 132, in dbupdate
    run_dbupdate(app_config, global_config)
  File "/media/nfs/home/mediagoblin/mediagoblin/mediagoblin/gmg_commands/dbupdate.py", line 116, in run_dbupdate
    global_config.get('plugins', {}).keys())
  File "/media/nfs/home/mediagoblin/mediagoblin/mediagoblin/gmg_commands/dbupdate.py", line 64, in gather_database_data
    models = import_component('%s.models:MODELS' % media_type)
  File "/media/nfs/home/mediagoblin/mediagoblin/mediagoblin/tools/common.py", line 34, in import_component
    __import__(module_name)
ImportError: No module named ascii.models

And the same happens for media_types.pdf

comment:2 by Loic Dachary, 9 years ago

Resolution: invalid
Status: newclosed

Something wrong was done at install time, it is not a bug.

Note: See TracTickets for help on using tickets.