Mailing List Archive

Trac install "ImportError: No module named _core"
Trying to install trac 0.71 on Suse9.0 is producing an error trying to find _core. I don't know much about python, and am sure I am missing something simple. Please help. Below are the packages I have installed and the output from trac-admin

INSTALLED PACKAGES:
trac-0.7.1-1
pysqlite-0.5.0-1
subversion-python-1.0.2-3
swig-1.3.19-156
sqlite-2.8.13-1
sqlite-devel-2.8.13-1
clearsilver-0.9.7-1
subversion-1.0.2-3
neon-0.24.5-2
python-2.3-52
python-devel-2.3-43
python-xml-2.3-43

RESULTS OF: trac-admin /usr/local/trac/laser2 initenv
Creating a new Trac environment at /usr/local/trac/laser2

Trac will first ask a few questions about your environment
in order to initalize and prepare the project database.

Please enter the name of your project.
This name will be used in page titles and descriptions.

Project Name [My Project]> Laser2
#######################################
Traceback (most recent call last):
File "/usr/bin/trac-admin", line 913, in ?
main()
File "/usr/bin/trac-admin", line 902, in main
tracadm.docmd (command)
File "/usr/bin/trac-admin", line 63, in docmd
self.onecmd(cmd)
File "/usr/lib/python2.3/cmd.py", line 210, in onecmd
return func(arg)
File "/usr/bin/trac-admin", line 421, in do_initenv
from svn import util, repos, core
File "/usr/lib/python2.3/site-packages/svn/util.py", line 21, in ?
from core import *
File "/usr/lib/python2.3/site-packages/svn/core.py", line 21, in ?
from libsvn.core import *
File "/usr/lib/python2.3/libsvn/core.py", line 5, in ?
import _core
ImportError: No module named _core
#######################################

THANKS,
--
Bob Vergeer
iverger@netscape.net


__________________________________________________________________
Switch to the New Netscape Internet Service.
As low as $9.95 a month -- Sign up today at http://isp.netscape.com/register

Netscape. Just the Net You Need.

New! Netscape Toolbar for Internet Explorer
Search from anywhere on the Web and block those annoying pop-ups.
Download now at http://channels.netscape.com/ns/search/install.jsp
Trac install "ImportError: No module named _core" [ In reply to ]
On Friday, July 2, 2004, at 12:56 AM, Bob Vergeer wrote:

> Trying to install trac 0.71 on Suse9.0 is producing an error trying to
> find _core. I don't know much about python, and am sure I am missing
> something simple. Please help. Below are the packages I have installed
> and the output from trac-admin
>
> INSTALLED PACKAGES:
> trac-0.7.1-1
> pysqlite-0.5.0-1
> subversion-python-1.0.2-3
> swig-1.3.19-156
> sqlite-2.8.13-1
> sqlite-devel-2.8.13-1
> clearsilver-0.9.7-1
> subversion-1.0.2-3
> neon-0.24.5-2
> python-2.3-52
> python-devel-2.3-43
> python-xml-2.3-43
>
> RESULTS OF: trac-admin /usr/local/trac/laser2 initenv
> Creating a new Trac environment at /usr/local/trac/laser2
>
> Trac will first ask a few questions about your environment
> in order to initalize and prepare the project database.
>
> Please enter the name of your project.
> This name will be used in page titles and descriptions.
>
> Project Name [My Project]> Laser2
> #######################################
> Traceback (most recent call last):
> File "/usr/bin/trac-admin", line 913, in ?
> main()
> File "/usr/bin/trac-admin", line 902, in main
> tracadm.docmd (command)
> File "/usr/bin/trac-admin", line 63, in docmd
> self.onecmd(cmd)
> File "/usr/lib/python2.3/cmd.py", line 210, in onecmd
> return func(arg)
> File "/usr/bin/trac-admin", line 421, in do_initenv
> from svn import util, repos, core
> File "/usr/lib/python2.3/site-packages/svn/util.py", line 21, in ?
> from core import *
> File "/usr/lib/python2.3/site-packages/svn/core.py", line 21, in ?
> from libsvn.core import *
> File "/usr/lib/python2.3/libsvn/core.py", line 5, in ?
> import _core
> ImportError: No module named _core
> #######################################

I encountered this about two weeks ago, and I wrote the following in my
notes:

Test Python binding by running
subversion-1.0.4/tools/examples/svnlook.py. Failed with following:

<CODE>
Traceback (most recent call last):
File "svnlook.py", line 23, in ?
from svn import core, fs, delta, repos
File "/usr/local/lib/svn-python/svn/core.py", line 21, in ?
from libsvn.core import *
File "/usr/local/lib/svn-python/libsvn/core.py", line 5, in ?
import _core
ImportError: No module named _core
</CODE>

This truned out to be related to the warning when building the python
binding after installing the SWIG package, ie. during the "make
install-swig-py" under directory subversion-1.0.4/. At this stage I
had the warning that essentially stated it couldn't make a shared
library version of _core, because it couldn't find a shared version of
the library lresolv.

I tried to install the package libtool, modifying ltmain.sh, learning
libtool / ltmain.sh, installing netbsd's package system pkgsrc. None
worked.

Finally I manually edited subversion-1.0.4/build-alpha/Makefile, and
remove the lresolv (I built it as an OpenBSD port, on an alpha).
Happily it worked.

Patrick