Re: lost in the devel--1.3 branch

expedite <[email protected]>
Newsgroups gmane.comp.gnome.apps.pybliographer
Message-ID <[email protected]>
Frederic Gobry wrote:

> - core-api/ is the base library that provides the definition and storage of
>   bibliographic data, some import and export filters, ... Most of the
>   work went there. To have some example of use, look at the tests/
>   subdirectory, especially ut_database.py, ut_store.py.
>  
>
Thanks Frederic, I  think the core-api sounds like exactly what I need. 
I'm doing as you suggest, and looking over the ut_'s in tests/. I also 
went and grabbed a copy of garlic and had a poke around there as well.

At the moment I am having some problems running the unit tests. I tried;

$ cd ~/devel/pyblio-1.3/core-api
$ export PYTHONPATH=`pwd`/
$ cd tests
$ ./testsuite.sh
warning: skipping
yacc: Generating SLR parsing table...
yacc: 38 shift/reduce conflicts
yacc: 16 reduce/reduce conflicts
test ut_Base.py does not export 'suite' variable
<string>:15: DeprecationWarning: Non-ASCII character '\xbb' in file 
./../Pyblio/Import/Import.py on line 333, but no encoding declared; see 
http://www.python.org/peps/pep-0263.html for details
<string>:7: DeprecationWarning: Non-ASCII character '\xf4' in file 
./../Pyblio/Import/Isi.py on line 366, but no encoding declared; see 
http://www.python.org/peps/pep-0263.html for details
./../Pyblio/Import/Isi.py:31: DeprecationWarning: Non-ASCII character 
'\xe9' in file ./../Pyblio/Import/Tagged.py on line 46, but no encoding 
declared; see http://www.python.org/peps/pep-0263.html for details
  from Pyblio.Import import Tagged
Traceback (most recent call last):
  File "testsuite.py", line 20, in ?
    execfile (f, l, l)
  File "ut_Tagged.py", line 19, in ?
    import Tagged
ImportError: No module named Tagged

I'm not sure what to make of the messages from yacc:, but decided to 
simply try and press on, skipping the ut_Base.py test;

$ export UT_SKIP="ut_Base.py"
$ ./testsuite.sh
warning: skipping ut_Base.py
Traceback (most recent call last):
  File "testsuite.py", line 20, in ?
    execfile (f, l, l)
  File "ut_Tagged.py", line 19, in ?
    import Tagged
ImportError: No module named Tagged

I took a quick look at ut_Tagged.py and thought maybe "import Tagged" 
should be
"from Pyblio.Importers import Tagged"? I tried that and indeed, things 
looked quite promising for a second;

$ ./testsuite.sh
warning: skipping ut_Base.py
unittest: .........E..................................Traceback (most 
recent call last):
  File "testsuite.py", line 29, in ?
    pybut.run (pybut.TestSuite (suits))
  File "/home/shaunc/devel/pybliographer/core-api/tests/pybut.py", line 
148, in run
    r.run (full)
  File "/home/shaunc/devel/pybliographer/core-api/tests/pybut.py", line 
119, in run
    test(result)
  File "/usr/lib/python2.3/unittest.py", line 389, in __call__
    test(result)
TypeError: suite() takes no arguments (1 given)

At this point I can only assume I am on the wrong track and that I must 
be missing something obvious. Any ideas? I'm using Python 2.3.4... 
nothing fancy as far as I know.

e.


-------------------------------------------------------
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.