mate-desktop / mozo

Menu editor for MATE using the freedesktop.org menu specification
http://www.mate-desktop.org
GNU Lesser General Public License v2.1
28 stars 12 forks source link

install incomplete #40

Open stephenboston opened 6 years ago

stephenboston commented 6 years ago

Expected behaviour

after running make install as root $ mozo will open the menu editor window

Actual behaviour

Traceback (most recent call last): File "/usr/local/bin/mozo", line 22, in from Mozo.MainWindow import MainWindow ImportError: No module named Mozo.MainWindow

$ which mozo /usr/local/bin/mozo

Steps to reproduce the behaviour

  1. clone mozo from github
  2. $ autogen.sh
  3. $ make
  4. $ sudo make install
  5. $ mozo

MATE general version

mate-desktop/stable,now 1.16.2-2 amd64

Package version

commit 80873ff

Linux Distribution

Debian 9.4

Link to downstream report of your Distribution

lukefromdc commented 6 years ago

This looks like the problem where make install puts the python files in /usr/lib/python2.7/site-packages when in Debian they actually need to go into /usr/lib/python2.7/dist-packages . I use Checkinstall to build local Debian packages, and pack the files into a new Debian package with that directory manually renamed. In a make-install run you can simply move them to the correct directory

stephenboston commented 6 years ago

Yes. It is /usr/local/lib/python2.7/site-packages/Mozo to /usr/local/lib/python2.7/dist-packages/Mozo

You missed the "local" but after checking the make file I could see where the Mozo directory was supposed to go.

Thanks.

All is well

On Sun, Apr 29, 2018 at 11:50 AM, lukefromdc notifications@github.com wrote:

This looks like the problem where make install puts the python files in /usr/lib/python2.7/site-packages when in Debian they actually need to go into /usr/lib/python2.7/dist-packages . I use Checkinstall to build local Debian packages, and pack the files into a new Debian package with that directory manually renamed. In a make-install run you can simply move them to the correct directory

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

lukefromdc commented 6 years ago

I always configure with --prefix=/usr because I am building Debian packages, thus I am not installing to /usr/local. Same situation either way though

stephenboston commented 6 years ago

Ah! Good to know. I've just started using Debian after years with Ubuntu so I expect I'll hit a few of these.

Thanks for the tip.

On Sun, Apr 29, 2018 at 1:22 PM lukefromdc notifications@github.com wrote:

I always configure with --prefix=/usr because I am building Debian packages, thus I am not installing to /usr/local. Same situation either way though

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/mate-desktop/mozo/issues/40#issuecomment-385278717, or mute the thread https://github.com/notifications/unsubscribe-auth/ARrhDDLLKUPGZrGsLHTm8NRR8PJwKE7fks5ttiD5gaJpZM4Tr28L .