cheers,
--
-matt
Leo will not see broad based adaptation beyond the Python engineering
community until it is easier to install.
> > Leo will not see broad based adaptation beyond the Python
> > engineering community until it is easier to install.
>
> Debatable. Installing on ubuntu is now a snap with the ubuntu package
> manager. On windows, there are two good ways of installing Leo:
>
> - bzr
> - downloading the leo folder
>
> True, the file association problem on Windows remains. But once this
> is done, using bzr is far better than using a native installer.
I think the complaint was about having to download Python and Qt as
well. If there's a good installer system out there that will bundle
these things I'd like to hear about it. Ok, so the first would be
large, ridiculously so if you were trying to distribute some small
Python / Qt app, but you could always offer multiple versions, and
these days a 20-30 Mb download (guessing) isn't that big a deal.
It seems that in Windows there's a reasonably easy way to install Qt,
but it's also easy to Google up a harder way first, if you're unlucky.
There are lots of large multi-component open source free apps that
offer single file downloads (inkscape / blender / qgis / gimp), leo
should strive to do the same. And again, I really don't think people
will be put off because it's a 20-30+ Mb file.
Cheers -Terry
> On the other hand I must admit that
> http://webpages.charter.net/edreamleo/install.html is a little bit
> intimidating. But I think that documentation is being rewritten. Maybe
> something has already be done regarding that URL.
Yeah, that page is way too long and complicated and needs to be
rewritten (because as such, it's so long people won't read it). For
Linux, we don't really need installation instructions at all these
days ("just install the .deb").
> I completely disagree. Including everything in the installer is not a
> golden
> rule. But I think the installers subject is similar to the licensing
> software
> subject: lots of opinions, all of them valid so there is no a 'right'
> solution.
We could go halfway and provide a single zip file that contains:
- Leo sources
- PyQt installer
--
Ville M. Vainio
http://tinyurl.com/vainio
> The present lack of Windows installer has a history. Before bzr, Leo did
> have a relatively good native installer based on NSIS. When bzr came
> around, it became pretty much unbearable to maintain a separate manifest
> file for use of the installer. I attempted to hack together something that
Can you use "bzr ls -R" to create the manifest?
Can you use "bzr ls -R" to create the manifest?
I've installed Leo several times on windows, yet this morning still
took me a few minutes to find the section you reference above because
there are at least two other document sections with phrases similar to
"installing leo". Anyway, this is my simplified recipe for a virgin
install:
-------------------------
Installing Leo On Windows
-------------------------
//skip any step not needed//
1. Install Python - There are many sources, but from
http://www.python.org/download/releases/ is good
2. Install PyQt - acquire and run Binary Package from
http://www.riverbankcomputing.co.uk/software/pyqt/download which
matches installed Python version (so for python 2.5 scan for the
"Py2.5" in filename)
3. Install Leo
- Head to http://sourceforge.net/projects/leo/ and slap [Download Now]
- Unpack python *site-packages* folder, e.g.
C:\Python25\Lib\site-packages\leo-4-6-2-final
- [optional] Generate/update a junction link from unpacked
leo-4-6-2-final to ...\site-packages\leo
cd C:\Python25\Lib\site-packages\
junction leo leo-4-6-2-final
- Create windows shortcut (edit paths as necessary):
Target = C:\Python25\pythonw.exe
"C:\Python25\Lib\site-packages\leo\launchLeo.py" --gui=qt
Start in = D:\code
- Associate .leo filetype batch file:
ftype LeoFile=C:\Python25\pythonw.exe
"C:\Python25\Lib\site-packages\leo\launchLeo.py" "--gui=qt" "%1"
assoc .leo=LeoFile
- [optional] Put this leo.bat in %PATH%:
@C:\Python25\python.exe -i
"C:\Python25\Lib\site-packages\leo\launchLeo.py" --gui=qt %*
-------------------------
Further reading / Sources used:
Junction links -
http://technet.microsoft.com/en-gb/sysinternals/bb896768.aspx,
http://groups.google.com/group/leo-editor/msg/30116f9193241dc4
FTYPE - http://ss64.com/nt/ftype.html
ASSOC - http://ss64.com/nt/assoc.html
--
-matt
> 3. Install Leo
> - Head to http://sourceforge.net/projects/leo/ and slap [Download Now]
> - Unpack python *site-packages* folder, e.g.
> C:\Python25\Lib\site-packages\leo-4-6-2-final
I don't think you need to use site-packages. Just extract it anywhere
you want (e.g. c:/opt/leo). But I could be wrong.
> - Associate .leo filetype batch file:
>n
> ftype LeoFile=C:\Python25\pythonw.exe
> "C:\Python25\Lib\site-packages\leo\launchLeo.py" "--gui=qt" "%1"
> assoc .leo=LeoFile
--gui=qt us not needed anymore.
> Dear All,
>
> I've following error when execute the batch file as suggested:
You have Python 3.1 installed. Please use Python 2.6 for Leo (it's not
yet ported for 3.1)
Dear All,
File "C:\Python31\Lib\site-packages\leo\leo\core\leoGlobals.py",
line 119
print '** leoGlobals.py: caching disabled'
^
SyntaxError: invalid syntax
Dear All,
Tried to install:
OS: Win Xp x86
Python: 2.5.4
PyQt-Py2.5-gpl-4.4.3-1
Leo-4-6-3-finalNow having the following error:
File "C:\Program Files\Leo-4.6.3-final\leo\core\leoApp.py", line
358, in createTkGui
> You have qt installed, but you are trying to create the tk gui. Run Leo
> with --gui=qt.
No, that error comes from leoID creation creating the tk gui.
Perhaps we should create only a simple dialog box instead of importing
all of tk ui (with pmw etc),
No, that error comes from leoID creation creating the tk gui.
> You have qt installed, but you are trying to create the tk gui. Run Leo
> with --gui=qt.
Perhaps we should create only a simple dialog box instead of importing
all of tk ui (with pmw etc),