# Trying to install from sources on Centos 7.0

**URL:** <https://discourse.mopidy.com/t/trying-to-install-from-sources-on-centos-7-0/665>\
**Category:** Misc\
**Created:** [April 4, 2015, 6:01pm UTC](https://discourse.mopidy.com/t/trying-to-install-from-sources-on-centos-7-0/665 "2015-04-04T18:01:01Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![TheTrueElektro](https://avatars.discourse-cdn.com/v4/letter/t/8edcca/32.png) [@TheTrueElektro](https://discourse.mopidy.com/u/TheTrueElektro)\
**Post date:** [April 4, 2015, 6:01pm UTC](https://discourse.mopidy.com/t/trying-to-install-from-sources-on-centos-7-0/665/1 "2015-04-04T18:01:02Z")

</div>

Hello,

I try to install Modipy on a Centos 7.O for a day but impossible…

I’ve tried to install from the sources, and my install is in

> > usr/lib64/python2.7/site-package/modipy

files are there but the commmand

> modipy

in terminal return :

> -bash: modipy: command not found

Config files are good edited i think… and it’s impossible to access from a

web platform because it can’t start 😛 . In the installation guide it says to

install Gstreamer, but no one of the packages are existing 😢 ( for : )

> emerge -av gst-python gst-plugins-bad:0.10 gst-plugins-good:0.10 \ gst-plugins-ugly:0.10 gst-plugins-meta:0.10

So I installed it my way :

> sudo yum install gstreamer-plugins-bad gstreamer-plugins-ugly gstreamer-ffmpeg

Modipy continue to block me ☹

I don’t know what to do now :c

Thanks for any help, have a good day 😉 ++

---

<div class="post-metadata">

**Author:** ![jodal](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/jodal/32/2564_2.png) [@jodal](https://discourse.mopidy.com/u/jodal)\
**Post date:** [April 4, 2015, 9:08pm UTC](https://discourse.mopidy.com/t/trying-to-install-from-sources-on-centos-7-0/665/2 "2015-04-04T21:08:15Z")

</div>

As mentioned in the GitHub issue before it was closed: it’s spelled “Mopidy”, not “Modipy”. Try using the correct command name, and it’ll hopefully work a bit better 🙂

---

<div class="post-metadata">

**Author:** ![TheTrueElektro](https://avatars.discourse-cdn.com/v4/letter/t/8edcca/32.png) [@TheTrueElektro](https://discourse.mopidy.com/u/TheTrueElektro)\
**Post date:** [April 4, 2015, 10:12pm UTC](https://discourse.mopidy.com/t/trying-to-install-from-sources-on-centos-7-0/665/3 "2015-04-04T22:12:56Z")

</div>

Okay. I feel VERY stupid now hehe :')

Sooo it effectively answer ( 😊 ) but not exactly as i wanted… :

> 

Traceback (most recent call last):  
File “/usr/bin/mopidy”, line 7, in   
from mopidy. **main** import main  
File “/usr/lib64/python2.7/site-packages/mopidy/ **main**.py”, line 28, in   
from mopidy import commands, config as config\_lib, ext  
File “/usr/lib64/python2.7/site-packages/mopidy/commands.py”, line 14, in   
from mopidy.audio import Audio  
File “/usr/lib64/python2.7/site-packages/mopidy/audio/ **init**.py”, line 4, in   
from .actor import Audio  
File “/usr/lib64/python2.7/site-packages/mopidy/audio/actor.py”, line 8, in   
import pygst  
ImportError: No module named pygst

I feel a bit confused now 🙂 i already saw that ( yeaah i’ve wrote the right command once 😛 ) but i didn’t found how to install this “pygst” 😕 if i’m good understanding it’s this “Gsteamer” 😛

Let’s find out \>\_\_\<

Thanks for helping and i apologie for my stupidity hehe 🙂

FOR INFO: in the terminal answer, the “ **main** ” is a simple main with two “\_” before and after it 🙂

---

<div class="post-metadata">

**Author:** ![TheTrueElektro](https://avatars.discourse-cdn.com/v4/letter/t/8edcca/32.png) [@TheTrueElektro](https://discourse.mopidy.com/u/TheTrueElektro)\
**Post date:** [April 4, 2015, 11:21pm UTC](https://discourse.mopidy.com/t/trying-to-install-from-sources-on-centos-7-0/665/4 "2015-04-04T23:21:51Z")

</div>

Okayyyy i resolved the foirst problem hehe 😛

I don’t know why but gstreamer wasn’t good installed, so i just entered :

> yum install gstreamer-python

and then i don’t have the error. 🙂 i mean not the same ☹

I have a problem for the local files :

> 

INFO Disabled extensions: local  
WARNING Found local configuration errors, the extension has been automatically disabled:  
WARNING local/media\_dir must be set.  
WARNING Please fix the extension configuration errors or disable the extensions to silence these messages.

here’s my config file “local/media\_dir” :

> [local]  
> enabled = true  
> library = json  
> media\_dir = $XDG\_MUSIC\_DIR/modipy/local/music\_here  
> data\_dir = $XDG\_DATA\_DIR/mopidy/local/music\_here  
> scan\_timeout = 1000  
> scan\_flush\_threshold = 1000  
> scan\_follow\_symlinks = false  
> excluded\_file\_extensions =  
> .directory  
> .html  
> .jpeg  
> .jpg  
> .log  
> .nfo  
> .png  
> .txt

i’ve tried

> media\_dir = $XDG\_MUSIC\_DIR/modipy/local  
> data\_dir = $XDG\_DATA\_DIR/mopidy/local

and

> media\_dir = $XDG\_MUSIC\_DIR  
> data\_dir = $XDG\_DATA\_DIR/mopidy/local

nothing change :c  
here’s my folder : [http://www.noelshack.com/2015-14-1428189238-2015-04-05-01-13-35.png](http://www.noelshack.com/2015-14-1428189238-2015-04-05-01-13-35.png)

Thanks for previous help, i hope you know whyyy :c (i’ve chaged rights, they are 777 for modipy, config file and directory “music\_here” 😛

---

<div class="post-metadata">

**Author:** ![jodal](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/jodal/32/2564_2.png) [@jodal](https://discourse.mopidy.com/u/jodal)\
**Post date:** [April 4, 2015, 11:57pm UTC](https://discourse.mopidy.com/t/trying-to-install-from-sources-on-centos-7-0/665/5 "2015-04-04T23:57:21Z")

</div>

There’s no relation between the dir that Mopidy is installed in and the media dir. Also, the error you see is a config error, which relates to reading of the config files, not if the actual dir can be found or not. If it _can_ read the config and the dir doesn’t exist, it’ll simply be created.

Use `mopidy config` to check what’s Mopidy’s view of the config file. Also, the first few lines of output from `mopidy` should print what config files it finds and uses. If you run `mopidy -v`, it’ll also print config file locations it checks if exists.

---

<div class="post-metadata">

**Author:** ![TheTrueElektro](https://avatars.discourse-cdn.com/v4/letter/t/8edcca/32.png) [@TheTrueElektro](https://discourse.mopidy.com/u/TheTrueElektro)\
**Post date:** [April 5, 2015, 12:44am UTC](https://discourse.mopidy.com/t/trying-to-install-from-sources-on-centos-7-0/665/6 "2015-04-05T00:44:15Z")

</div>

Thanks for answer 😄

For `mopidy config` command i get :

```auto
[logging]
color = true
console_format = %(levelname)-8s %(message)s
debug_format = %(levelname)-8s %(asctime)s [%(process)d:%(threadName)s] %(name)s \n %(message)s
debug_file = mopidy.log
config_file =

[audio]
mixer = software
mixer_volume =
output = autoaudiosink

[proxy]
scheme =
hostname =
port =
username =
password =

[mpd]
enabled = true
hostname = 127.0.0.1
port = 6600
password =
max_connections = 20
connection_timeout = 60
zeroconf = Mopidy MPD server on $hostname
command_blacklist =
  listall
  listallinfo

[http]
enabled = true
hostname = 0.0.0.0
port = 6680
static_dir =
zeroconf = Mopidy HTTP server on $hostname

[stream]
enabled = true
protocols =
  file
  http
  https
  mms
  rtmp
  rtmps
  rtsp
metadata_blacklist =
timeout = 5000

[m3u]
enabled = true
playlists_dir = $XDG_DATA_DIR/mopidy

[softwaremixer]
enabled = true

[local]
enabled = false ; Extension disabled due to config errors.
library = json
media_dir = ; Must be set.
data_dir = $XDG_DATA_DIR/mopidy/local/music_here
scan_timeout = 1000
scan_flush_threshold = 1000
scan_follow_symlinks = false
excluded_file_extensions =
  .directory
  .html
  .jpeg
  .jpg
  .log
  .nfo
  .png
  .txt

[moped]
enabled = true

```

So it must be set, yes… now i want to locate config file, it says :

```auto
Loading config from /root/.config/mopidy/mopidy.conf

```

I edited this file as following : (just [local] part)

```auto
[local]
#enabled = true
#library = json
media_dir = $XGD_MUSIC_DIR/mopidy/local/
data_dir = $XDG_DATA_DIR/mopidy/local/music_here
#scan_timeout = 1000
#scan_flush_threshold = 1000
#scan_follow_symlinks = false
#excluded_file_extensions = 
# .directory
# .html
# .jpeg
# .jpg
# .log
# .nfo
# .png
# .txt

```

But i still have :

```auto
WARNING 2015-04-05 02:28:40,468 [15607:MainThread] mopidy. __main__
  Found local configuration errors, the extension has been automatically disabled:
WARNING 2015-04-05 02:28:40,468 [15607:MainThread] mopidy. __main__
    local/media_dir must be set.
WARNING 2015-04-05 02:28:40,468 [15607:MainThread] mopidy. __main__
  Please fix the extension configuration errors or disable the extensions to silence these messages.

```

i’ve edited it but it still don’t work, it’s nor comented out… ☹ for the record, `mopidy config` shows the same thing that before… few first lines of `mopidy` command says that config file are

```auto
/root/.config/mopidy/mopidy.conf

```

So i’m supposing to be good… maybe i’m wrong in the entrances at [Local]'s lines?

Thanks for helping 🙂

My config file in WinSCP : [http://image.noelshack.com/fichiers/2015/14/1428194644-2015-04-05-02-43-33.png](http://image.noelshack.com/fichiers/2015/14/1428194644-2015-04-05-02-43-33.png)

_Edited: Formatted as code (with triple backtick) instead of quotes (with greater-than). -jodal_

---

<div class="post-metadata">

**Author:** ![jodal](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/jodal/32/2564_2.png) [@jodal](https://discourse.mopidy.com/u/jodal)\
**Post date:** [April 5, 2015, 2:05pm UTC](https://discourse.mopidy.com/t/trying-to-install-from-sources-on-centos-7-0/665/7 "2015-04-05T14:05:10Z")

</div>

Can’t see anything wrong here. Just to reiterate:

- If `mopidy` prints `/root/.config/mopidy/mopidy.conf` as the config file in use,

- And `/root/.config/mopidy/mopidy.conf` contains:

- Then `mopidy config` should show the same `media_dir` path.

If not, there’s probably something wrong with the syntax in your config file. Try changing another config and see if you can see the change in `mopidy config`.

---

<div class="post-metadata">

**Author:** ![TheTrueElektro](https://avatars.discourse-cdn.com/v4/letter/t/8edcca/32.png) [@TheTrueElektro](https://discourse.mopidy.com/u/TheTrueElektro)\
**Post date:** [April 5, 2015, 3:39pm UTC](https://discourse.mopidy.com/t/trying-to-install-from-sources-on-centos-7-0/665/8 "2015-04-05T15:39:30Z")

</div>

I solved the problem by putting directly he directory :

```auto
    [local]
    #enabled = true
    #library = json
    media_dir = /usr/lib64/pyton2.7/site-extention/mopidy/local/musi_here
    data_dir = $XDG_DATA_DIR/mopidy/local/music_here
    #scan_timeout = 1000
    #scan_flush_threshold = 1000
    #scan_follow_symlinks = false
    #excluded_file_extensions = 
    # .directory
    # .html
    # .jpeg
    # .jpg
    # .log
    # .nfo
    # .png
    # .txt

```

i’m not really sure about removing the `$XGD_MUSIC_DIR` …

and btw, when i want to play a song from the web interface moped, it show a Gstreamer error in the log in the command prompt… 😕

I don’t know if it’s linked 🙂 thanks for help !
