bakker_be wrote: 
> Hmmm, running into a bit of bother with the musly server ...
> > 
Code:
--------------------
  >   > bart@ubuntu_t540:~/musly-server$ ./musly-server.py -l DEBUG --analyse 
/mnt/music
  > Traceback (most recent call last):
  > File "./musly-server.py", line 13, in <module>
  > from lib import app, config, metadata_db, musly, analysis
  > ImportError: cannot import name 'app'
  > 
--------------------
> > 
> You'll see analysis has been moved to the end of the import line. I
> did that to see if it was that file specifically or the import in
> itself. OS is Ubuntu 18.04 LTS Server.

How about if you change the start of 'musly-server.py' to be:


Code:
--------------------
    
  import sys
  import os
  sys.path.append(os.path.join(os.path.dirname(os.path.abspath(__file__)), 
'lib'))
  
  import argparse
  import logging
  from lib import analysis, app, config, metadata_db, musly
  
--------------------



*Material debug:* 1. Launch via http: //SERVER:9000/material/?debug=json
2. Open browser's developer tools 3. Open console tab in developer tools
4. REQ/RESP messages sent to/from LMS will be logged here.
------------------------------------------------------------------------
cpd73's Profile: http://forums.slimdevices.com/member.php?userid=66686
View this thread: http://forums.slimdevices.com/showthread.php?t=112713

_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/plugins

Reply via email to