use of PyCrust

Dear All,

I tried PyCrust for the first time.
When I ran PyCrustApp.py in lib/PyCrust/
I got the following error message:
  ImportError: No module named stc_c
In fact I didn't find stc_c anywhere. It is
called from stc_.py.

My wxPython has been built from
wxPythonSrc-2.4.0.2.tar.gz. I run on
RedHat7.3 on VMware.

I would appreciate any help or suggestion.

Tune Kamae
Stanford Linear Accelerator Center
Stanford

Tune Kamae <kamae@SLAC.Stanford.EDU> writes:

Dear All,

I tried PyCrust for the first time.
When I ran PyCrustApp.py in lib/PyCrust/
I got the following error message:
  ImportError: No module named stc_c
In fact I didn't find stc_c anywhere. It is
called from stc_.py.

There should be an stc_c.so file in
python2.2/site-packages/wxPython. So it sounds like your wxPython
installation is messed up. Can you send the error message to the list
so we can take a look at it?

My wxPython has been built from
wxPythonSrc-2.4.0.2.tar.gz. I run on
RedHat7.3 on VMware.

I think Robin has a very similar setup.

···

--
Patrick K. O'Brien
Orbtech http://www.orbtech.com/web/pobrien
-----------------------------------------------
"Your source for Python programming expertise."
-----------------------------------------------

Tune Kamae wrote:

Dear All,

I tried PyCrust for the first time.
When I ran PyCrustApp.py in lib/PyCrust/
I got the following error message:
  ImportError: No module named stc_c
In fact I didn't find stc_c anywhere. It is
called from stc_.py.

My wxPython has been built from
wxPythonSrc-2.4.0.2.tar.gz. I run on
RedHat7.3 on VMware.

Did you turn off building of the STC module? If so you need to set BUILD_STC=1 in setup.py.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

Robin,

Thank you for help. I had BUILD_STC=0 in setup.py.
When I turned it on, I got the following eror message.

The following directory gcc looks for (see below) is very odd.
"gcc: contrib/stc/contrib/src/stc/scintilla/src/DocumentAccessor.cxx:"
Is it some error in setup.py I can fix?

By the way I had all other BUILD choses off.

Regard,

Tune Kamae

···

------------------------------------------------------------------
building 'stc_c' extension
gcc -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -DSWIG_GLOBAL -DHAVE_CON
FIG_H -DWXP_USE_THREAD=1 -UNDEBUG -D__WX__ -DSCI_LEXER -DLINK_LEXERS -Isrc -
Icontrib/stc/contrib/src/stc/scintilla/include -Icontrib/stc/contrib/src/stc
/scintilla/src -Icontrib/stc/contrib/include -I/usr/local/include/python2.2
-c contrib/stc/contrib/src/stc/scintilla/src/DocumentAccessor.cxx -o
build/temp.linux-i686-2.2/contrib/stc/contrib/src/stc/scintilla/src/Document
Accessor.o -I/usr/local/lib/wx/include/gtk-2.4 -DGTK_NO_CHECK_CASTS -D__WXGT
K__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -I/usr/include/gtk-1.2 -I/usr/incl
ude/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include
gcc: contrib/stc/contrib/src/stc/scintilla/src/DocumentAccessor.cxx: No such
file or directory
gcc: no input files
error: command 'gcc' failed with exit status 1

----- Original Message -----
From: "Robin Dunn" <robin@alldunn.com>
To: <wxPython-users@lists.wxwindows.org>
Sent: Tuesday, March 11, 2003 10:24 AM
Subject: Re: [wxPython-users] use of PyCrust

Tune Kamae wrote:
> Dear All,
>
> I tried PyCrust for the first time.
> When I ran PyCrustApp.py in lib/PyCrust/
> I got the following error message:
> ImportError: No module named stc_c
> In fact I didn't find stc_c anywhere. It is
> called from stc_.py.
>
> My wxPython has been built from
> wxPythonSrc-2.4.0.2.tar.gz. I run on
> RedHat7.3 on VMware.

Did you turn off building of the STC module? If so you need to set
BUILD_STC=1 in setup.py.

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwindows.org
For additional commands, e-mail: wxPython-users-help@lists.wxwindows.org

Tune Kamae wrote:

Robin,

Thank you for help. I had BUILD_STC=0 in setup.py.
When I turned it on, I got the following eror message.

The following directory gcc looks for (see below) is very odd.
"gcc: contrib/stc/contrib/src/stc/scintilla/src/DocumentAccessor.cxx:"
Is it some error in setup.py I can fix?

With 2.4.0.2 you also need to use IN_CVS_TREE=1. I've since made this the default and will probably phase it out in the future.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

Robin,

Thank you for the help. Now PyCrust runs fine.

Tune Kamae

···

----- Original Message -----
From: "Robin Dunn" <robin@alldunn.com>
To: <wxPython-users@lists.wxwindows.org>
Sent: Tuesday, March 11, 2003 9:37 PM
Subject: Re: [wxPython-users] use of PyCrust

Tune Kamae wrote:
> Robin,
>
> Thank you for help. I had BUILD_STC=0 in setup.py.
> When I turned it on, I got the following eror message.
>
> The following directory gcc looks for (see below) is very odd.
> "gcc: contrib/stc/contrib/src/stc/scintilla/src/DocumentAccessor.cxx:"
> Is it some error in setup.py I can fix?

With 2.4.0.2 you also need to use IN_CVS_TREE=1. I've since made this
the default and will probably phase it out in the future.

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwindows.org
For additional commands, e-mail: wxPython-users-help@lists.wxwindows.org