cannot run Frescobaldi with python-ly from source - problem with PYTHONPATH

50 views
Skip to first unread message

Federico Bruni

unread,
Oct 9, 2016, 2:09:24 AM10/9/16
to Frescobaldi support
Hi folks

I'm afraid that the instructions here may not be valid anymore (at least on my configuration):
https://github.com/wbsoft/frescobaldi/wiki/Run-Frescobaldi-from-git

When I start Frescobaldi _from Gnome shell_, I always get the error about python-ly being not installed or too old.

Frescobaldi and python-ly are not installed in any directory.
This is the Exec command:

$ cat ~/.local/share/applications/frescobaldi.desktop | grep Exec
Exec=python3 /home/fede/src/frescobaldi/frescobaldi

NB: this command works fine if I launch it from a terminal.

So I guess that this dekstop file does not find anymore the PYTHONPATH variable defined in my bashrc:

$ cat ~/.bashrc | grep PYTHONPATH
export PYTHONPATH=~/src/python-ly

So I decided to work around the problem by installing python-ly, but I'm failing:

####################################################################
$ sudo python3 setup.py install --prefix /usr/local
running install
Checking .pth file support in /usr/local/lib/python3.5/site-packages/
/bin/python3 -E -c pass
TEST FAILED: /usr/local/lib/python3.5/site-packages/ does NOT support .pth files
error: bad install directory or PYTHONPATH

You are attempting to install a package to a directory that is not
on PYTHONPATH and which Python does not read ".pth" files from.  The
installation directory you specified (via --install-dir, --prefix, or
the distutils default setting) was:

    /usr/local/lib/python3.5/site-packages/

and your PYTHONPATH environment variable currently contains:

    ''

Here are some of your options for correcting the problem:

* You can choose a different installation directory, i.e., one that is
  on PYTHONPATH or supports .pth files

* You can add the installation directory to the PYTHONPATH environment
  variable.  (It must then also be on PYTHONPATH whenever you run
  Python and want to use the package(s) you are installing.)

* You can set up the installation directory to support ".pth" files by
  using one of the approaches described here:

  https://pythonhosted.org/setuptools/easy_install.html#custom-installation-locations

Please make the appropriate changes for your system and try again.
####################################################################

Ok, I got it: I must add PYTHONPATH to root .bashrc.
Then the sudo command will work.
And I'll be able to launch frescobaldi from my desktop.

However, I'm not able anymore to use python-ly from source.
Has anybody experienced the same?

g...@ursliska.de

unread,
Oct 9, 2016, 2:32:26 AM10/9/16
to fresc...@googlegroups.com, Federico Bruni
IIRC you have to add it to some other include file since the desktop environment reads other ones than a terminal. Sorry, don't recall any more and can't check right now.

HTH nevertheless
Urs

--
Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail gesendet.

Federico Bruni

unread,
Oct 14, 2016, 11:40:23 AM10/14/16
to g...@ursliska.de, Frescobaldi support
I couldn't figure it out.
When you have time, please let me know more details
Reply all
Reply to author
Forward
0 new messages