xihesi / chartr

Automatically exported from code.google.com/p/chartr
0 stars 0 forks source link

documentation for installation #31

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. trying to install

What is the expected output? What do you see instead?
I expected to see a list of dependencies required in the project and links 
to download those dependencies. the version of the dependencies that you 
are tested and perhaps 

What version of the product are you using? On what operating system?
windows XP with python 2.5

Please provide any additional information below.
despite trying to install the various dependencies, I am unable to get the 
program running. I am able to see the gtk main interface, and the white 
canvas.. but I am unable to input any items on the canvas.

Original issue reported on code.google.com by pekch...@gmail.com on 29 Jun 2008 at 1:02

GoogleCodeExporter commented 8 years ago
Hi,
Windows port is not a priority right now. But do you have a python traceback ?

Original comment by nico.big...@gmail.com on 30 Jun 2008 at 11:39

GoogleCodeExporter commented 8 years ago
I've had a look at it on a windows platform. 
Looks like there will be probably lot's of work for the software to work. 
But to make it work, following step seem to make sens (well this is what i did):
- install all-In-One package for pygtk.
(First I encountered a problem, python complaining about an import problem from
_gobject. But removing previous gtk runtime installation, Python installations, 
and
installing it again did work for me)

- install numpy (Numeric) did not work for me. I commented it's import in 
utils.py
file, as I suspect it's not necessary anyway (to investigate)

- install plastex (download and then run python setup.py install, worked fine)
- install gstreamer binaries (found on their website)
(For this first try, I encountered a problem, python complaining about a _gst 
import).
Then I finaly ran the software...
Some icons are not their (de standard icons from gnome). Maparea, does'nt seem 
to
resize correctly. And I was unable to add a text node. 

Here is the traceback :
Traceback (most recent call last):
  File "c:\Documents and Settings\bigeard\My
Documents\CharTr_013\TextBufferMarkup.py", line 125, in mark_set_cb
    self.emit("set_attrs", bold, italics, underline, None)
TypeError: could not convert type NoneType to PangoFontDescription required for
parameter 3
Traceback (most recent call last):
  File "c:\Documents and Settings\bigeard\My
Documents\CharTr_013\TextBufferMarkup.py", line 125, in mark_set_cb
    self.emit("set_attrs", bold, italics, underline, None)
TypeError: could not convert type NoneType to PangoFontDescription required for
parameter 3
Traceback (most recent call last):
  File "c:\Documents and Settings\bigeard\My Documents\CharTr_013\MMapArea.py", line
1407, in expose
    self.draw (event, context)
  File "c:\Documents and Settings\bigeard\My Documents\CharTr_013\MMapArea.py", line
1462, in draw
    t.draw(context,self.negative)
  File "c:\Documents and Settings\bigeard\My Documents\CharTr_013\TextThought.py",
line 316, in draw
    self.recalc_edges ()
  File "c:\Documents and Settings\bigeard\My Documents\CharTr_013\TextThought.py",
line 202, in recalc_edges
    show_text = self.attrs_changed ()
  File "c:\Documents and Settings\bigeard\My Documents\CharTr_013\TextThought.py",
line 197, in attrs_changed
    self.emit("update-attrs", bold, italics, underline, pango_font)
TypeError: could not convert type NoneType to PangoFontDescription required for
parameter 3
Traceback (most recent call last):
  File "c:\Documents and Settings\bigeard\My Documents\CharTr_013\MMapArea.py", line
307, in button_release
    thought = self.create_new_thought (coords)
  File "c:\Documents and Settings\bigeard\My Documents\CharTr_013\MMapArea.py", line
1495, in create_new_thought
    self.editing.finish_editing ()
  File "c:\Documents and Settings\bigeard\My Documents\CharTr_013\TextThought.py",
line 377, in finish_editing
    self.recalc_edges ()
  File "c:\Documents and Settings\bigeard\My Documents\CharTr_013\TextThought.py",
line 201, in recalc_edges
    del self.layout
AttributeError: layout
Traceback (most recent call last):
  File "c:\Documents and Settings\bigeard\My Documents\CharTr_013\MMapArea.py", line
1407, in expose
    self.draw (event, context)
  File "c:\Documents and Settings\bigeard\My Documents\CharTr_013\MMapArea.py", line
1462, in draw
    t.draw(context,self.negative)
  File "c:\Documents and Settings\bigeard\My Documents\CharTr_013\TextThought.py",
line 315, in draw
    if not self.layout:
AttributeError: 'TextThought' object has no attribute 'layout'
Traceback (most recent call last):
  File "c:\Documents and Settings\bigeard\My Documents\CharTr_013\TextThought.py",
line 231, in commit_text
    self.recalc_edges ()
  File "c:\Documents and Settings\bigeard\My Documents\CharTr_013\TextThought.py",
line 201, in recalc_edges
    del self.layout
AttributeError: layout
Traceback (most recent call last):
  File "c:\Documents and Settings\bigeard\My Documents\CharTr_013\TextThought.py",
line 231, in commit_text
    self.recalc_edges ()
  File "c:\Documents and Settings\bigeard\My Documents\CharTr_013\TextThought.py",
line 201, in recalc_edges
    del self.layout
AttributeError: layout
Traceback (most recent call last):
  File "c:\Documents and Settings\bigeard\My Documents\CharTr_013\TextThought.py",
line 231, in commit_text
    self.recalc_edges ()
  File "c:\Documents and Settings\bigeard\My Documents\CharTr_013\TextThought.py",
line 201, in recalc_edges
    del self.layout
AttributeError: layout
Traceback (most recent call last):
  File "c:\Documents and Settings\bigeard\My Documents\CharTr_013\TextThought.py",
line 231, in commit_text
    self.recalc_edges ()
  File "c:\Documents and Settings\bigeard\My Documents\CharTr_013\TextThought.py",
line 201, in recalc_edges
    del self.layout
AttributeError: layout
Traceback (most recent call last):
  File "c:\Documents and Settings\bigeard\My Documents\CharTr_013\TextThought.py",
line 231, in commit_text
    self.recalc_edges ()
  File "c:\Documents and Settings\bigeard\My Documents\CharTr_013\TextThought.py",
line 201, in recalc_edges
    del self.layout
AttributeError: layout
Traceback (most recent call last):
  File "c:\Documents and Settings\bigeard\My Documents\CharTr_013\MMapArea.py", line
307, in button_release
    thought = self.create_new_thought (coords)
  File "c:\Documents and Settings\bigeard\My Documents\CharTr_013\MMapArea.py", line
1495, in create_new_thought
    self.editing.finish_editing ()
  File "c:\Documents and Settings\bigeard\My Documents\CharTr_013\TextThought.py",
line 377, in finish_editing
    self.recalc_edges ()
  File "c:\Documents and Settings\bigeard\My Documents\CharTr_013\TextThought.py",
line 201, in recalc_edges
    del self.layout
AttributeError: layout
Traceback (most recent call last):
  File "c:\Documents and Settings\bigeard\My Documents\CharTr_013\MMapArea.py", line
1407, in expose
    self.draw (event, context)
  File "c:\Documents and Settings\bigeard\My Documents\CharTr_013\MMapArea.py", line
1462, in draw
    t.draw(context,self.negative)
  File "c:\Documents and Settings\bigeard\My Documents\CharTr_013\TextThought.py",
line 315, in draw
    if not self.layout:
AttributeError: 'TextThought' object has no attribute 'layout'
Traceback (most recent call last):
  File "c:\Documents and Settings\bigeard\My Documents\CharTr_013\MMapArea.py", line
1407, in expose
    self.draw (event, context)
  File "c:\Documents and Settings\bigeard\My Documents\CharTr_013\MMapArea.py", line
1462, in draw
    t.draw(context,self.negative)
  File "c:\Documents and Settings\bigeard\My Documents\CharTr_013\TextThought.py",
line 315, in draw
    if not self.layout:
AttributeError: 'TextThought' object has no attribute 'layout'
Traceback (most recent call last):
  File "chartr.py", line 210, in mode_request_cb
    if self.set_val:
AttributeError: 'MindMapWrapper' object has no attribute 'set_val'
Traceback (most recent call last):
  File "c:\Documents and Settings\bigeard\My Documents\CharTr_013\MMapArea.py", line
1407, in expose
    self.draw (event, context)
  File "c:\Documents and Settings\bigeard\My Documents\CharTr_013\MMapArea.py", line
1462, in draw
    t.draw(context,self.negative)
  File "c:\Documents and Settings\bigeard\My Documents\CharTr_013\TextThought.py",
line 315, in draw
    if not self.layout:
AttributeError: 'TextThought' object has no attribute 'layout'
Traceback (most recent call last):
  File "c:\Documents and Settings\bigeard\My Documents\CharTr_013\MMapArea.py", line
1407, in expose
    self.draw (event, context)
  File "c:\Documents and Settings\bigeard\My Documents\CharTr_013\MMapArea.py", line
1462, in draw
    t.draw(context,self.negative)
  File "c:\Documents and Settings\bigeard\My Documents\CharTr_013\TextThought.py",
line 315, in draw
    if not self.layout:
AttributeError: 'TextThought' object has no attribute 'layout'
Traceback (most recent call last):
  File "c:\Documents and Settings\bigeard\My
Documents\CharTr_013\TextBufferMarkup.py", line 125, in mark_set_cb
    self.emit("set_attrs", bold, italics, underline, None)
TypeError: could not convert type NoneType to PangoFontDescription required for
parameter 3
Traceback (most recent call last):
  File "c:\Documents and Settings\bigeard\My
Documents\CharTr_013\TextBufferMarkup.py", line 125, in mark_set_cb
    self.emit("set_attrs", bold, italics, underline, None)
TypeError: could not convert type NoneType to PangoFontDescription required for
parameter 3
Traceback (most recent call last):
  File "c:\Documents and Settings\bigeard\My Documents\CharTr_013\MMapArea.py", line
1407, in expose
    self.draw (event, context)
  File "c:\Documents and Settings\bigeard\My Documents\CharTr_013\MMapArea.py", line
1462, in draw
    t.draw(context,self.negative)
  File "c:\Documents and Settings\bigeard\My Documents\CharTr_013\TextThought.py",
line 315, in draw
    if not self.layout:
AttributeError: 'TextThought' object has no attribute 'layout'
Traceback (most recent call last):
  File "c:\Documents and Settings\bigeard\My Documents\CharTr_013\MMapArea.py", line
1407, in expose
    self.draw (event, context)
  File "c:\Documents and Settings\bigeard\My Documents\CharTr_013\MMapArea.py", line
1462, in draw
    t.draw(context,self.negative)
  File "c:\Documents and Settings\bigeard\My Documents\CharTr_013\TextThought.py",
line 315, in draw
    if not self.layout:
AttributeError: 'TextThought' object has no attribute 'layout'
Traceback (most recent call last):
  File "c:\Documents and Settings\bigeard\My Documents\CharTr_013\MMapArea.py", line
1407, in expose
    self.draw (event, context)
  File "c:\Documents and Settings\bigeard\My Documents\CharTr_013\MMapArea.py", line
1462, in draw
    t.draw(context,self.negative)
  File "c:\Documents and Settings\bigeard\My Documents\CharTr_013\TextThought.py",
line 315, in draw
    if not self.layout:
AttributeError: 'TextThought' object has no attribute 'layout'
Traceback (most recent call last):
  File "c:\Documents and Settings\bigeard\My Documents\CharTr_013\MMapArea.py", line
307, in button_release
    thought = self.create_new_thought (coords)
  File "c:\Documents and Settings\bigeard\My Documents\CharTr_013\MMapArea.py", line
1495, in create_new_thought
    self.editing.finish_editing ()
  File "c:\Documents and Settings\bigeard\My Documents\CharTr_013\TextThought.py",
line 377, in finish_editing
    self.recalc_edges ()
  File "c:\Documents and Settings\bigeard\My Documents\CharTr_013\TextThought.py",
line 202, in recalc_edges
    show_text = self.attrs_changed ()
  File "c:\Documents and Settings\bigeard\My Documents\CharTr_013\TextThought.py",
line 197, in attrs_changed
    self.emit("update-attrs", bold, italics, underline, pango_font)
TypeError: could not convert type NoneType to PangoFontDescription required for
parameter 3
Traceback (most recent call last):
  File "c:\Documents and Settings\bigeard\My Documents\CharTr_013\MMapArea.py", line
1407, in expose
    self.draw (event, context)
  File "c:\Documents and Settings\bigeard\My Documents\CharTr_013\MMapArea.py", line
1462, in draw
    t.draw(context,self.negative)
  File "c:\Documents and Settings\bigeard\My Documents\CharTr_013\TextThought.py",
line 315, in draw
    if not self.layout:
AttributeError: 'TextThought' object has no attribute 'layout'
Traceback (most recent call last):
  File "c:\Documents and Settings\bigeard\My
Documents\CharTr_013\TextBufferMarkup.py", line 125, in mark_set_cb
    self.emit("set_attrs", bold, italics, underline, None)
TypeError: could not convert type NoneType to PangoFontDescription required for
parameter 3
Traceback (most recent call last):
  File "c:\Documents and Settings\bigeard\My
Documents\CharTr_013\TextBufferMarkup.py", line 125, in mark_set_cb
    self.emit("set_attrs", bold, italics, underline, None)
TypeError: could not convert type NoneType to PangoFontDescription required for
parameter 3
Traceback (most recent call last):
  File "c:\Documents and Settings\bigeard\My Documents\CharTr_013\MMapArea.py", line
1407, in expose
    self.draw (event, context)
  File "c:\Documents and Settings\bigeard\My Documents\CharTr_013\MMapArea.py", line
1462, in draw
    t.draw(context,self.negative)
  File "c:\Documents and Settings\bigeard\My Documents\CharTr_013\TextThought.py",
line 315, in draw
    if not self.layout:
AttributeError: 'TextThought' object has no attribute 'layout'
Traceback (most recent call last):
  File "c:\Documents and Settings\bigeard\My Documents\CharTr_013\MMapArea.py", line
307, in button_release
    thought = self.create_new_thought (coords)
  File "c:\Documents and Settings\bigeard\My Documents\CharTr_013\MMapArea.py", line
1495, in create_new_thought

Original comment by nico.big...@gmail.com on 3 Jul 2008 at 12:20

GoogleCodeExporter commented 8 years ago
To temporary fix the audio issue I had on the windows pc, I commented the audio
import, with :

#import AudioThought

and then :
#elif type == TYPE_AUDIO:
#    thought = AudioTought.AudioThought...

having replaced :

del self.current_attrs
self.current_attrs = to_add
self.emit("update-attrs",bold,italics,underline,pango_font)

by :

del self.current_attrs
self.current_attrs = to_add
if not self.current_attrs:
  pango_font = pango.FontDescription()
self.emit("update-attrs",bold,italics,underline,pango_font)

and in mark_set_cb:
self.emit("set_attr",bold,italics,underline,None)

by :

pango_font = pango.FontDescription()
self.emit("set_attr",bold,italics,underline,pango_font)

seems to fix the problem... (for now) One is able to draw basic mind maps. But 
there
are several remarks here :
- Browser window does not appear.
- GUI doesn't look could (missing icons (from gnome),tool bar a bit too big, no 
color
button box...)
- No possibility to resize the mindmap area.

Original comment by nico.big...@gmail.com on 3 Jul 2008 at 1:08

GoogleCodeExporter commented 8 years ago
Fix: 
There are two chartr.py files (one is CharTr.py) on windows, when dearchiving, 
one of
them is overwritten. Thus the GUI is not the one used under linux (missing 
icons, no
color buttons...). But the trouble is that the usual chartr.py won't work on 
windows,
as it needs gconf. 
A way to fix that, would be to redesign a GUI especially for windows. No idea 
what it
could look like.

Original comment by nico.big...@gmail.com on 3 Jul 2008 at 1:52

GoogleCodeExporter commented 8 years ago
As plastex won't work either on windows, I guess, the only way to release 
something
for windows, would be to remove Latex equations support, eventually audio 
support,
remodeling the GUI...

Not sure their would be any Windows version soon.

Original comment by nico.big...@gmail.com on 3 Jul 2008 at 2:03

GoogleCodeExporter commented 8 years ago

Original comment by nico.big...@gmail.com on 3 Jul 2008 at 2:03

GoogleCodeExporter commented 8 years ago

Sorry for not supplying the trace back. I have not been checking my mail
regularly enough.

Maybe I should give a brief introduction of myself.  I'm a VIM user (2  years)
learning python (6 months) who loves mind map. Enough said. So I almost jumped
outta my chair when I saw a python mind map project based on VIM.  That
explains my disappointment as well when the setup doesn't run on windows.

Are you the only developer for this project?

Hmm. Right now both my work and home machines are running windows. Could I
request for the naming in the source files to be change? So at least I could
take a look at the files more easily?

Yours,
Chee Yong

Original comment by pekch...@gmail.com on 3 Jul 2008 at 4:51

GoogleCodeExporter commented 8 years ago
Hi Chee,

In fact, I added the fixes in the current code and added a chartr_windows.py 
file.
This will appear in next release (probably soon). But it still not possible to 
resize
the window under Windows and there is no color choice (I have'nt windows right 
now).

Yes, I'm the only developper in this project, in fact this is a fork of 
labyrinth,
another mindmap tool.

Any comments and ideas will be welcome !! (you're the first to give me feedback 
!!) 

Original comment by nico.big...@gmail.com on 3 Jul 2008 at 8:30