Hello Roland,
It worked \o/ thx!!
But, there is just a small problem...
trying to run the sps, I got:
samuel@beaver:/opt$ sps
/usr/bin/python: can't open file '/lib/python2.6/dist-packages/sps.py':
[Errno 2] No such file or directory
But I fixed that using a naive solution:
I changed the /usr/local/bin/sps file by adding a prefix variable pointing
to /usr/local like that:
prefix=/usr/local
PYTHONPATH='${prefix}/lib/python2.6/dist-packages':"$PYTHONPATH" \
DYLD_LIBRARY_PATH='${prefix}/lib/python2.6/dist-packages:${exec_prefix}/lib'
\
exec /usr/bin/python -i ${prefix}/lib/python2.6/dist-packages/sps.py "$@"
well, after that I have swilena working :)
But, I got many other erros inside of swilena.. check that:
The Swilena Python Shell (sps).
Type "help", "copyright", "credits" or "license"
for more information on
Python
Type "example" for a short
example.
Type "quit()" or ^D (Ctrl-D) to
quit.
>> import
data
Traceback (most recent call
last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python2.6/ihooks.py", line 406, in import_module
q, tail = self.find_head_package(parent, str(name))
File "/usr/lib/python2.6/ihooks.py", line 442, in find_head_package
q = self.import_it(head, qname, parent)
File "/usr/lib/python2.6/ihooks.py", line 497, in import_it
m = self.loader.load_module(fqname, stuff)
File "/usr/lib/python2.6/ihooks.py", line 272, in load_module
m = self.hooks.load_source(name, filename, file)
File "/usr/lib/python2.6/ihooks.py", line 170, in load_source
return imp.load_source(name, filename, file)
File "/usr/local/lib/python2.6/dist-packages/data.py", line 24, in
<module>
top_srcdir = os.environ["top_srcdir"]
File "/usr/lib/python2.6/UserDict.py", line 22, in __getitem__
raise KeyError(key)
KeyError: 'top_srcdir'
>>
Swilena is not stable.. is it?
I was trying to find a CCT algorithm in olena... like Salambier, Winkinson,
Berger, Menotti, Matas Najman...
Do you know which of those I can find?
2010/3/30 Roland Levillain <roland(a)lrde.epita.fr>
> Samuel Félix <sfelixjr(a)gmail.com> writes:
>
> > Hello sir,
>
> Hello,
>
> > first of all, thx for your help...
> >
> > Well, I tried to do what you told me to... but It didn't work... I still
> get
> > those blanks...
> > I have tested this --enable-swig argument using both versions (olena-1.0
> and
> > the latest one from git).. but nothing has changed :(
>
> My mistake! The good option is `--with-swig', not `--enable-swig'.
> Sorry for the bad advice. :( I think this should solve the problem with
> blank variables in Makefiles.
>
> > thx for the advice about /usr/bin/python, my mistake :)
> >
> > I fixed that and apparently It finished without problems... look at
> > those lines after make install
> >
> >
> > test -z "/usr/local/lib/python2.6/" || /bin/mkdir -p
> "/usr/local/lib/python2.6/
> > "
> > /usr/bin/install -c -m 644 config.py point2d.py dpoint2d.py box2d.py
> > box2d_piter.py int_u8.py int_u32.py neighb2d.py window2d.py
> image2d_int.py
> > image2d_int_u8.py dynamic_image2d.py '/usr/local/lib/python2.6/'
> > Byte-compiling python modules...
> >
>
config.pypoint2d.pydpoint2d.pybox2d.pybox2d_piter.pyint_u8.pyint_u32.pyneighb2d.pywindow2d.pyimage2d_int.pyimage2d_int_u8.pydynamic_image2d.py
> > Byte-compiling python modules (optimized versions) ...
> >
>
config.pypoint2d.pydpoint2d.pybox2d.pybox2d_piter.pyint_u8.pyint_u32.pyneighb2d.pywindow2d.pyimage2d_int.pyimage2d_int_u8.pydynamic_image2d.py
> > test -z "/usr/local/lib/python2.6/" || /bin/mkdir -p
> "/usr/local/lib/python2.6/
> > "
> > /usr/bin/install -c -m 644 ../../../swilena/python/ltihooks.py ../../../
> > swilena/python/swilena.py ../../../swilena/python/data.py
> ../../../swilena/
> > python/sps.py '/usr/local/lib/python2.6/'
> > Byte-compiling python modules...
> > ltihooks.pyswilena.pydata.pysps.py
> > Byte-compiling python modules (optimized versions) ...
> >
> >
> > The sps was installed but when I tried to run, I got:
> >
> >
> > samuel@beaver:/opt/olena-1.0/build/swilena/python$ sps
> > exec: 27: -i: not found
> > samuel@beaver:/opt/olena-1.0/build/swilena/python$
> >
> >
> > And when tried to import swilena inside of python environment, I got:
> >
> >
> > samuel@beaver:/opt/olena-1.0/build/swilena/python$ python
> > Python 2.6.4 (r264:75706, Dec 7 2009, 18:45:15)
> > [GCC 4.4.1] on linux2
> > Type "help", "copyright", "credits" or
"license" for more information.
> >>>> import swilena
> > Traceback (most recent call last):
> > File "<stdin>", line 1, in <module>
> > ImportError: No module named swilena
> >
>>
> >
> >
> > I think that might be related to some blank field...
>
> Yes, probably.
>
> > (e.g I filled the SWIG field, but the SWIG_LIB was blank, I'm not sure
> > what should be put over there)
>
> On my system (Debian GNU/Linux unstable), it points to
> ``/usr/share/swig1.3''.
>
> > Do you have a well formed Makefile which you could send me? So, I can
> > compare which blank fields may be messing with me...
>
> I think passing the right option (`--with-swig') and rebuilding from
> scratch should produce a working installation this time. Tell me if
> works.
>
> Best regards,
> Roland
>
> --
> Roland Levillain - LRDE/EPITA - A3SI/ESIEE/IGM/UMLV-Paris Est
> EPITA Research and Development Laboratory (LRDE)
> 14-16, rue Voltaire - FR-94276 Le Kremlin-Bicêtre Cedex - France
> Phone: +33 1 53 14 59 45 - Fax: +33 1 53 14 59 22 -
www.lrde.epita.fr
>
--
Samuel Félix
Computer Science M.Sc. Candidate at Federal University of Minas Gerais
Computer Science B.Sc. at Federal University of Pará