This is a Python2.6 issue. Some cosmetic porting is required to get 2.6 compliance which have never been pushed to the public repo. I'd suggest building against 2.5 for now. Configure with --with-python=`which python2.5`

.martin

Here's the relevant info. As per the instructions Ptyhon 2.5 or better
should work, right?

========
ppad...@ppadala-desktop:~/noxcore/build/src$ python -V
Python 2.6.2
ppad...@ppadala-desktop:~/noxcore/build/src$ dpkg -l python-twisted
python-twisted 8.2.0-2        Event-based framework for internet
applicati
========

A few other package versions, if it matters

======
ppad...@ppadala-desktop:~/noxcore/build/src$ g++ --version
g++ (Ubuntu 4.3.3-5ubuntu4) 4.3.3
ppad...@ppadala-desktop:~/noxcore/build/src$ swig -version

SWIG Version 1.3.36

Compiled with g++ [i686-pc-linux-gnu]
ppad...@ppadala-desktop:~/noxcore/build/src$ dpkg -l libboost1.35-dev
libboost1.35-d 1.35.0-8ubuntu Boost C++ Libraries development files
=======

Thanks,
Pradeep

P.S. CCing dev list as you mentioned.

-----Original Message-----
From: Martin Casado [mailto:[email protected]]
Sent: Tuesday, October 13, 2009 8:51 PM
To: Pradeep Padala
Cc: [email protected]
Subject: Re: make check fails "Import by filename is not supported"

What version of Python are you building against?

Hi,



I have cloned the git repos, and following the instructions from
http://noxrepo.org/manual/installation.html on Ubuntu 9.04 (earlier
I
tried to install on CentOS 5.3, but the dependency problems were
difficult to resolve).



I installed all the packages as mentioned in the instructions, and
the
compilation went fine. When I run 'make check', I get the error
pasted
below.



===============

make  check-TESTS

make[3]: Entering directory `/home/ppadala/noxcore/build/src'

NOX 0.5.0~full~beta (nox_core), compiled Oct 13 2009 05:32:13

Compiled with OpenFlow 0x97 (exp)

00001|sqlite3-impl|WARN:Transactional storage file not given in the
command line; defaulting to 'testing.sqlite'



0%   10   20   30   40   50   60   70   80   90   100%

|----|----|----|----|----|----|----|----|----|----|

Running 74 test cases...

***ImportError: Import by filename is not supported.

../../../../../src/nox/netapps/tests/tests.cc(115): fatal error in
"nox.netapps.tests.pyunittests.storage_test.testAddthenDrop": Unable
to
import twisted.trial.reporter.

*ImportError: Import by filename is not supported.

../../../../../src/nox/netapps/tests/tests.cc(115): fatal error in
"nox.netapps.tests.pyunittests.storage_test.testAddthenPut": Unable
to
import twisted.trial.reporter.







... (many such errors)



Test suite "NOX" failed with:

  25 assertions out of 96 passed

  71 assertions out of 96 failed

  3 test cases out of 74 passed

  71 test cases out of 74 failed

  71 test cases out of 74 aborted



FAIL: nox.test

====================================

1 of 1 test failed

Please report to [email protected]

====================================

make[3]: *** [check-TESTS] Error 1

make[3]: Leaving directory `/home/ppadala/noxcore/build/src'

make[2]: *** [check-am] Error 2

make[2]: Leaving directory `/home/ppadala/noxcore/build/src'

make[1]: *** [check-recursive] Error 1

make[1]: Leaving directory `/home/ppadala/noxcore/build/src'

make: *** [check] Error 2

===================



Also, the basic nox seems to have installed properly, but when I try
the
following, I get an error.



sudo ./nox_core -v -i ptcp:2525 monitorsui switchstatsws pyswitch
pyauthenticator

====

00027|nox|ERR:Application 'monitorsui' description not found.

====



Did I miss any step to build these applications?



Thanks,

Pradeep








_______________________________________________
nox-dev mailing list
[email protected]
http://noxrepo.org/mailman/listinfo/nox-dev_noxrepo.org

Reply via email to