Cygwin install and error messages

137 views
Skip to first unread message

Scotus

unread,
Feb 3, 2012, 6:35:34 PM2/3/12
to textallion-discuss
I've installed textallion from the windows installer, run the updater,
and from there I cannot do anything more than create a blank
document. There's a list of errors starting with 'import site' failed
and a message about line 98 in txt2tags.

You have another newer update available, but I've no idea how to
install this. I've very little experience with Cygwin, and you seem to
have given no instructions for using this installation.

I think you have created a very interesting piece of software, and I
would very much like to earn to use it to create epubs with CYOA type
content.

Help would be appreciated. I've reinstalled the complete package 3
times now, with the same result each time.....

Scotus

Eric F.

unread,
Feb 5, 2012, 9:52:15 AM2/5/12
to textallion-discuss
Hello,

sorry for the errors you've got. I'm investigating this, and I hope to
release a new windows installer soon!

Eric F.

unread,
Feb 5, 2012, 11:34:29 AM2/5/12
to textallion-discuss
I've updated the package. I've tested it on only one system at the
moment (windows seven) and it seems to work properly. Please try it
too:
http://code.google.com/p/textallion/downloads/list

and tell me if something goes wrong.

Scotus

unread,
Feb 5, 2012, 6:51:27 PM2/5/12
to textallion-discuss
Hello Eric

Thanks for the new installer file. I've done a fresh install, but not
without problems, and with the same result as previously.

First up, my Kaspersky virus detection software was telling me that
the installer package had a "PDM worm-P2P Generic". After having the
installer shredded several times, I turned off Kaspersky and installed
anyway.

The result of using your built-in mini UI and attempting to create a
CYOA epub file was unfortunately the same as before. I have Python
2.7 installed on C:\, however your script seems to be looking for
Python27 in Cygwin, where there seems to be only 2.6 installed. The
error messages I have are as follows:

python /usr/share/textallion//contrib/txt2tags/txt2tags -T /usr/share/
textallio
n//templates/cyoa.html --config-file /usr/share/textallion//core/
txt2cyoa.t2t -t
xhtml --no-style --no-toc --outfile cyoa-welten.html cyoa-welten.t2t
cygwin warning:
MS-DOS style path detected: \Python27\lib
Preferred POSIX equivalent is: /cygdrive/c/Python27/lib
CYGWIN environment variable option "nodosfilewarning" turns off this
warning.
Consult the user's guide for more details about POSIX paths:
http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
'import site' failed; use -v for traceback
Traceback (most recent call last):
File "/usr/share/textallion//contrib/txt2tags/txt2tags", line 98, in
<module>
import os
File "\Python27\lib/os.py", line 398, in <module>
import UserDict
File "\Python27\lib/UserDict.py", line 84, in <module>
_abcoll.MutableMapping.register(IterableUserDict)
File "\Python27\lib/abc.py", line 109, in register
if issubclass(subclass, cls):
File "\Python27\lib/abc.py", line 184, in __subclasscheck__
cls._abc_negative_cache.add(subclass)
File "\Python27\lib/_weakrefset.py", line 84, in add
self.data.add(ref(item, self._remove))
TypeError: cannot create weak reference to 'classobj' object
makefile:200: recipe for target `cyoa-epub' failed
make: *** [cyoa-epub] Error 1

Thanks again for your help.
Scotus

Eric F.

unread,
Feb 6, 2012, 10:05:08 AM2/6/12
to textallion-discuss
hmm, this shouldn't happen, I guess.

I've installed textallion on another windows system (xp), without any
problem. I've also checked for virus with https://www.virustotal.com
and avira antivir, which didn't find anything wrong.

I've also installed python 2.7 from the windows installer (not
cygwin). My script doesn't try to run python27, only python.exe, so
probably it picks the first one available

Haven't you changed some default settings on your system? maybe the
PATH ? I have an old python2.5 folder in my path, but this didn't
prevent me to run textallion from cygwin. Anyway, even your python 2.7
should be able to do the job, but it won't recognise the /usr/share/
textallion/core/txt2cyoa.t2t path, which is typical to cygwin and
Unix.

What happens when you run the c:\cygwin\Cygwin.exe application and
then type "python --version" ?

If it's not python 2.6.5, you can probably fiddle with the C:\cygwin
\etc\profile file, which contains the PATH for cygwin (I don't have
anything related to python in this file). Maybe you can try either to
add the cygwin path, /usr/bin/python, in it.

If nothing works, you can still convert your CYOA file using
textallion and your python installation, without the mini UI (cygwin
is mostly to handle the convertion to PDF and to reuse my unix
scripts / makefile).

Go into:
C:\cygwin\usr\share\textallion\samples_cyoa

put your cyoa game file in it, and open a cmd.exe into C:\cygwin\usr
\share\textallion\samples_cyoa (or create a batch file) and type:

c:\Python27\python.exe ..\contrib\txt2tags\txt2tags -T ..\templates
\cyoa.html --config-file ..\core\txt2cyoa.t2t -t xhtml --css-inside --
outfile cyoa-welten.html cyoa-welten.t2t

You'll get the html file. For creating the epub version, I run some
additional scripts (see the makefile), but maybe Calibre can just
handle this file good enough.

I'd like to create one day a kind of webapp, which could create
everything from a server, it would be easier for users.

If you want the graph with all the nodes, I can generate it for you at
the moment, until you find a way to make it work... :)



Scotus

unread,
Feb 6, 2012, 12:35:36 PM2/6/12
to textallion-discuss
Thanks for all your help and suggestions - I've now got textallion
working!!

Your very first idea was the one which did the trick. I removed my
windows installed Python and the associated PATH from the system, and
when I fired up textallion it worked a treat and I got an ePub out the
other end.

Textallion is truly amazing - many thanks for creating this!!

Now my task is to get to grips with coding the CYOA markup files.
BTW I ran a full Kaspersky scan after installing Textallion, and it
found no problems.

Scotus
Reply all
Reply to author
Forward
0 new messages