I tried chmod on it, and got this far:
$ cd /sw/bin
$ sudo chmod +x leo
Password:
$ leo
leoQt.py: can not import either PyQt4 or PyQt5.
Traceback (most recent call last):
File "/sw/bin/leo", line 7, in <module>
import leo.core.runLeo
File "/sw/share/pyshared/leo/core/runLeo.py", line 28, in <module>
leoGlobals.app = leoApp.LeoApp()
File "/sw/share/pyshared/leo/core/leoApp.py", line 144, in __init__
import leo.core.leoFrame as leoFrame
File "/sw/share/pyshared/leo/core/leoFrame.py", line 15, in <module>
import leo.core.leoColorizer as leoColorizer
File "/sw/share/pyshared/leo/core/leoColorizer.py", line 17, in <module>
from leo.core.leoQt import isQt5,Qsci,QtCore,QtGui,QtWidgets
File "/sw/share/pyshared/leo/core/leoQt.py", line 24, in <module>
from PyQt4 import Qt
ImportError: No module named PyQt4
Seth
On Sun, Nov 30, 2014 at 10:40 AM, Seth Johnson <[email protected]> wrote:
> It installed fine but gave the same error when trying to run it. Doe
> the leo file need execute permissions?
>
> $ sudo dpkg -r leo
> Password:
> (Reading database ... 243722 files and directories currently installed.)
> Removing leo ...
> $ sudo dpkg -i leo_5.0_fink2.deb
> Selecting previously deselected package leo.
> (Reading database ... 242163 files and directories currently installed.)
> Unpacking leo (from leo_5.0_fink2.deb) ...
> Setting up leo (5.0-1) ...
>
> $ leo
> -bash: /sw/bin/leo: Permission denied
>
> $ sudo nano /sw/bin/leo
>
> the file contents:
>
> #!/usr/bin/env python
> """ Leo launcher script
> A minimal script to launch leo.
> """
> import sys
> sys.path.append('/sw/share/pyshared/')
> import leo.core.runLeo
>
> if len(sys.argv[1:])>1:
>
> leo.core.runLeo.run(sys.argv[1:])
>
> else:
>
> leo.core.runLeo.run()
>
>
>
> Seth
>
> On Sun, Nov 30, 2014 at 10:24 AM, Seth Johnson <[email protected]>
> wrote:
>> I tried apt-get, meant to post the results, but forgot. It didn't
>> work, said the 4 dependencies didn't exist. Somehow I guess it uses
>> different repos than fink does. I finally tried fink install after
>> turning on the unstable repos. But apparently the unstable wasn't the
>> problem; I just thought since I saw the dependencies listed on the
>> fink site that the dependencies were probably in the unstable repo.
>> Instead, it was some sort of problem where apt-get was not using the
>> same repos as fink.
>>
>> I already had two of the dependencies you had listed in your .deb
>> file, never got an error for them; it was only 4 others that failed.
>>
>> I'll try your new package now . . .
>>
>>
>> Seth
>>
>>
>>
>> On Sun, Nov 30, 2014 at 9:31 AM, Davy Cottet <[email protected]> wrote:
>>> Thanks for that report.
>>> I didn't remember that dpkg -i do not install dependencies automatically...
>>> that a pity...
>>> So I guess until Leo host it's own repository or not been included in fink
>>> repos you have to install dependencies manually.
>>> By the way there a many qt4 subpackages in fink repos so we have to check
>>> out if we need some more.
>>> http://pdb.finkproject.org/pdb/browse.php?summary=qt4-base-mac
>>> Just to be clear, did you try to install dependencies with apt-get or only
>>> with fink ?
>>>
>>> Sorry, I forgot to update leo launcher for the new system path, I think that
>>> should solve this problem.
>>> You can do it manually :
>>> sudo nano /sw/bin/leo
>>> and replace /usr/share/pyshared/ with /sw/share/pyshared
>>>
>>> Or install this new package :
>>> https://mega.co.nz/#!zRRkHAwC!uLA0kcnJLLFMpOzCziPKsU8PBShYBM_EWvQlWlbI-xo
>>>
>>> Fink info files seems very basic, so I think I'll try to write one and go
>>> back to Fink IRC tomorrow to see if we can add it to their repos since they
>>> seems pretty open, that will make things simpler.
>>>
>>> --
>>> You received this message because you are subscribed to the Google Groups
>>> "leo-editor" group.
>>> To unsubscribe from this group and stop receiving emails from it, send an
>>> email to [email protected].
>>> To post to this group, send email to [email protected].
>>> Visit this group at http://groups.google.com/group/leo-editor.
>>> For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.