Re: Frescobaldi @2.20.0_1+app apparently broken

2017-05-04 Thread Thomas Ruedas

Hi Davide,
thanks for enlightening me about the $PATH settings. I have fixed that 
now and repeated the upgrade of Frescobaldi once more, and now it works 
(at least from the Terminal, but I'm sure the other one will also).

Best,
Thomas

Am 04.05.17 um 14:03 schrieb Davide Liessi:

2017-05-04 13:08 GMT+02:00 Thomas Ruedas :

PYTHONPATH=/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/:$PYTHONPATH


the problem is the PYTHONPATH variable, which should not point to a
Python version different from the one you are using.
Also, if you are using the MacPorts-provided Python, there is no need
to set PYTHONPATH, so my recommendation is to simply delete that line.
After deleting that line (and opening a new Terminal) you should get a
working Python 3.5 (the error for 'import sip' was not the only one).


Macports seems to have amended my .profile on earlier occasions when I made
Python upgrades, and I have never touched them. Actually, the $PATH
modification appears three times there, because apparently it was never
checked whether it was already there.


MacPorts edits the .profile only when you update MacPorts itself, not
when you update single ports.
Also, it only adds /opt/local/bin in front of the PATH and doesn't set
PYTHONPATH.
Those lines in your .profile come from a different source.
If you want to use only MacPorts' Pythons I would get rid also of the
lines setting the PATH:

PATH="/Library/Frameworks/Python.framework/Versions/2.7/bin:${PATH}"
export PATH

and ensure instead that /opt/local/bin is the first path in PATH, as
MacPorts sets it.

Best wishes.
Davide



___
macports-users mailing list
macports-users@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-users


Re: Frescobaldi @2.20.0_1+app apparently broken

2017-05-04 Thread Davide Liessi
Dear Thomas,

2017-05-04 13:08 GMT+02:00 Thomas Ruedas :
> PYTHONPATH=/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/:$PYTHONPATH

the problem is the PYTHONPATH variable, which should not point to a
Python version different from the one you are using.
Also, if you are using the MacPorts-provided Python, there is no need
to set PYTHONPATH, so my recommendation is to simply delete that line.
After deleting that line (and opening a new Terminal) you should get a
working Python 3.5 (the error for 'import sip' was not the only one).

> Macports seems to have amended my .profile on earlier occasions when I made
> Python upgrades, and I have never touched them. Actually, the $PATH
> modification appears three times there, because apparently it was never
> checked whether it was already there.

MacPorts edits the .profile only when you update MacPorts itself, not
when you update single ports.
Also, it only adds /opt/local/bin in front of the PATH and doesn't set
PYTHONPATH.
Those lines in your .profile come from a different source.
If you want to use only MacPorts' Pythons I would get rid also of the
lines setting the PATH:
> PATH="/Library/Frameworks/Python.framework/Versions/2.7/bin:${PATH}"
> export PATH
and ensure instead that /opt/local/bin is the first path in PATH, as
MacPorts sets it.

Best wishes.
Davide
___
macports-users mailing list
macports-users@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-users


Re: Frescobaldi @2.20.0_1+app apparently broken

2017-05-04 Thread Thomas Ruedas

Hi Davide,
Am 04.05.17 um 10:09 schrieb Davide Liessi:

2017-05-04 1:39 GMT+02:00 Thomas Ruedas :
Your problem is really strange: Frescobaldi simply does 'import sip',
which should result in importing the Python 3.5 sip module, since you
are running Frescobaldi with Python 3.5; it should not even see the
Python2.7 module.

Please do the following in a Terminal and send the output:
/opt/local/bin/python3.5 -v
import sip
exit()
See below. If it shouldn't even see the 2.7 module, maybe it has to do 
with some entries in my .profile from some earlier installation:

# Setting PATH for Python 2.7
# The orginal version is saved in .profile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/2.7/bin:${PATH}"
export PATH
export 
PYTHONPATH=/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/:$PYTHONPATH


Macports seems to have amended my .profile on earlier occasions when I 
made Python upgrades, and I have never touched them. Actually, the $PATH 
modification appears three times there, because apparently it was never 
checked whether it was already there.

Best,
Thomas

> /opt/local/bin/python3.5 -v
import _frozen_importlib # frozen
import _imp # builtin
import sys # builtin
import '_warnings' # 
import '_thread' # 
import '_weakref' # 
import '_frozen_importlib_external' # '_frozen_importlib.FrozenImporter'>

import '_io' # 
import 'marshal' # 
import 'posix' # 
import _thread # previously loaded ('_thread')
import '_thread' # 
import _weakref # previously loaded ('_weakref')
import '_weakref' # 
# installing zipimport hook
import 'zipimport' # 
# installed zipimport hook
# 
/opt/local/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/encodings/__pycache__/__init__.cpython-35.pyc 
matches 
/opt/local/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/encodings/__init__.py
# code object from 
'/opt/local/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/encodings/__pycache__/__init__.cpython-35.pyc'
# 
/opt/local/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/__pycache__/codecs.cpython-35.pyc 
matches 
/opt/local/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/codecs.py
# code object from 
'/opt/local/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/__pycache__/codecs.cpython-35.pyc'

import '_codecs' # 
import 'codecs' # <_frozen_importlib_external.SourceFileLoader object at 
0x10c8cf518>
# 
/opt/local/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/encodings/__pycache__/aliases.cpython-35.pyc 
matches 
/opt/local/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/encodings/aliases.py
# code object from 
'/opt/local/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/encodings/__pycache__/aliases.cpython-35.pyc'
import 'encodings.aliases' # 
<_frozen_importlib_external.SourceFileLoader object at 0x10c8ea128>
import 'encodings' # <_frozen_importlib_external.SourceFileLoader object 
at 0x10c8cf128>
# 
/opt/local/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/encodings/__pycache__/utf_8.cpython-35.pyc 
matches 
/opt/local/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/encodings/utf_8.py
# code object from 
'/opt/local/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/encodings/__pycache__/utf_8.cpython-35.pyc'
import 'encodings.utf_8' # <_frozen_importlib_external.SourceFileLoader 
object at 0x10c8efeb8>

import '_signal' # 
# 
/opt/local/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/encodings/__pycache__/latin_1.cpython-35.pyc 
matches 
/opt/local/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/encodings/latin_1.py
# code object from 
'/opt/local/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/encodings/__pycache__/latin_1.cpython-35.pyc'
import 'encodings.latin_1' # 
<_frozen_importlib_external.SourceFileLoader object at 0x10c8f3978>
# 
/opt/local/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/__pycache__/io.cpython-35.pyc 
matches 
/opt/local/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/io.py
# code object from 
'/opt/local/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/__pycache__/io.cpython-35.pyc'
# 
/opt/local/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/__pycache__/abc.cpython-35.pyc 
matches 
/opt/local/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/abc.py
# code object from 
'/opt/local/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/__pycache__/abc.cpython-35.pyc'
# 
/opt/local/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/__pycache__/_weakrefset.cpython-35.pyc 
matches 
/opt/local/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/_weakrefset.py
# code object from 
'/opt/local/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/__pycache__/_weakrefset.cpython-35.pyc'
import '_weakrefset' # 

Re: Frescobaldi @2.20.0_1+app apparently broken

2017-05-04 Thread Davide Liessi
2017-05-04 1:39 GMT+02:00 Thomas Ruedas :
> For completeness (although I think it's irrelevant) I'll also mention that
> the new installation following your instruction (again) returned this
> message:
> [...]

Indeed this is not related.

Your problem is really strange: Frescobaldi simply does 'import sip',
which should result in importing the Python 3.5 sip module, since you
are running Frescobaldi with Python 3.5; it should not even see the
Python2.7 module.

Please do the following in a Terminal and send the output:
/opt/local/bin/python3.5 -v
import sip
exit()

Best wishes.
Davide
___
macports-users mailing list
macports-users@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-users


Re: Frescobaldi @2.20.0_1+app apparently broken

2017-05-03 Thread Thomas Ruedas

Hi Davide,
Am 03.05.17 um 11:03 schrieb Davide Liessi:

Did you run Frescobaldi via the application bundle in
/Applications/MacPorts or from the Terminal?

I tried both, the messages I posted came from the attempt with the terminal.

In the latter case what did you write exactly?
Simply "frescobaldi". This finds the executable at 
/opt/local/bin/frescobaldi, which is also the directory where my python 
2.7 and 3.5 live.> Please try again

sudo port clean frescobaldi py35-poppler-qt4 py35-pyqt4
sudo port install frescobaldi
and let me know if you still have this problem.

Yes, it's still broken.

For completeness (although I think it's irrelevant) I'll also mention 
that the new installation following your instruction (again) returned 
this message:

  frescobaldi has the following notes:
You may want to install FluidSynth and obtain a SoundFont in order 
to have

audio output from Frescobaldi's MIDI output.

You will need to select FluidSynth's MIDI input port in 
Frescobaldi's MIDI

settings (in Preferences) while FluidSynth is running.

Best,
Thomas
___
macports-users mailing list
macports-users@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-users


Re: Frescobaldi @2.20.0_1+app apparently broken

2017-05-03 Thread Davide Liessi
Hi.

2017-05-03 0:08 GMT+02:00 Thomas Ruedas :
> Traceback (most recent call last):
>   File "/opt/local/bin/frescobaldi", line 7, in 
> import main
>   File
> "/opt/local/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/frescobaldi_app/main.py",
> line 26, in 
> import sip
> ImportError:
> dlopen(/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/sip.so,
> 2): Symbol not found: _PyCObject_Type
>   Referenced from:
> /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/sip.so
>   Expected in: flat namespace
>  in
> /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/sip.so

I don't understand why the Python 3.5 Frescobaldi tries to load the
Python 2.7 sip...

Did you run Frescobaldi via the application bundle in
/Applications/MacPorts or from the Terminal?
In the latter case what did you write exactly?

Please try again
sudo port clean frescobaldi py35-poppler-qt4 py35-pyqt4
sudo port install frescobaldi
and let me know if you still have this problem.

Best wishes.
Davide
___
macports-users mailing list
macports-users@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-users