simon-r / dr14_t.meter

Compute the DR14 of a given audio file according to the procedure described by the Pleasurize Music Foundation
http://dr14tmeter.sourceforge.net
GNU General Public License v3.0
125 stars 33 forks source link

Failed to install on Ubuntu 18.04 LTS #63

Open wdysun opened 4 years ago

wdysun commented 4 years ago

On Ubuntu 18.04 I tried to install the tar.gz version of the package using

sudo python setup.py install --root="/" --prefix="usr" --optimize=1

I get the following error Traceback (most recent call last): File "/usr/bin/dr14_tmeter", line 21, in <module> import dr14tmeter.dr14_tmeter ImportError: No module named dr14tmeter.dr14_tmeter

I also tried the *.deb version, but it doesn't install saying that I miss the python-support package. I tried to install it from pip, but it says that this is a deprecated package.

Any idea?

simon-r commented 4 years ago

At the moment you can download the current version from this repo.

I'll try to update the Ububtu package "sooner"

wdysun commented 4 years ago

I tried to download the current version on this repo and it gives again

Traceback (most recent call last): File "/usr/bin/dr14_tmeter", line 21, in <module> import dr14tmeter.dr14_tmeter ImportError: No module named dr14tmeter.dr14_tmeter

simon-r commented 4 years ago

try with:

git clone https://github.com/simon-r/dr14_t.meter.git cd dr14_t.meter ./dr14_tmeter

wdysun commented 4 years ago

Brilliant this worked for me!

Going through the --help I noticed number of options like --hist, --spectrogram and the like. IHow do you use them on single music file?

Thanks a lot

githoober commented 4 years ago

It is not working, it's still giving the same error:

Traceback (most recent call last):
  File "/usr/bin/dr14_tmeter", line 21, in <module>
    import dr14tmeter.dr14_tmeter
ImportError: No module named 'dr14tmeter'

When run locally:

Traceback (most recent call last):
  File "./dr14_tmeter", line 26, in <module>
    dr14tmeter.dr14_tmeter.main()
  File "/home/xxx/dr14docker/dr14_t.meter/dr14tmeter/dr14_tmeter.py", line 67, in main
    if db_is_enabled():
  File "/home/xxx/dr14docker/dr14_t.meter/dr14tmeter/dr14_config.py", line 103, in db_is_enabled
    s = get_config_filed('database', 'enabled')
  File "/home/xxx/dr14docker/dr14_t.meter/dr14tmeter/dr14_config.py", line 113, in get_config_filed
    cfg_file = get_config_file()
  File "/home/xxx/dr14docker/dr14_t.meter/dr14tmeter/dr14_config.py", line 44, in get_config_file
    cfg_dir = get_config_directory()
  File "/home/xxx/dr14docker/dr14_t.meter/dr14tmeter/dr14_config.py", line 38, in get_config_directory
    os.mkdir(cfg_dir)
FileNotFoundError: [Errno 2] No such file or directory: '/home/xxx/.config/dr14tmeter