jakogut / python-relatorio

Automatically exported from code.google.com/p/python-relatorio
GNU General Public License v3.0
3 stars 1 forks source link

Tests failing on Python 3.4 #12

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Tests on Python3.4 are failing with:

I: pybuild base:170: python3.4 setup.py test 
running test
running build_py
running egg_info
creating 
/tmp/buildd/relatorio-0.6.0/.pybuild/pythonX.Y_3.4/build/relatorio.egg-info
writing top-level names to 
/tmp/buildd/relatorio-0.6.0/.pybuild/pythonX.Y_3.4/build/relatorio.egg-info/top_
level.txt
writing 
/tmp/buildd/relatorio-0.6.0/.pybuild/pythonX.Y_3.4/build/relatorio.egg-info/PKG-
INFO
writing dependency_links to 
/tmp/buildd/relatorio-0.6.0/.pybuild/pythonX.Y_3.4/build/relatorio.egg-info/depe
ndency_links.txt
writing requirements to 
/tmp/buildd/relatorio-0.6.0/.pybuild/pythonX.Y_3.4/build/relatorio.egg-info/requ
ires.txt
writing manifest file 
'/tmp/buildd/relatorio-0.6.0/.pybuild/pythonX.Y_3.4/build/relatorio.egg-info/SOU
RCES.txt'
reading manifest file 
'/tmp/buildd/relatorio-0.6.0/.pybuild/pythonX.Y_3.4/build/relatorio.egg-info/SOU
RCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 
'/tmp/buildd/relatorio-0.6.0/.pybuild/pythonX.Y_3.4/build/relatorio.egg-info/SOU
RCES.txt'
running build_ext
Failure: ImportError (No module named 'templates') ... ERROR

======================================================================
ERROR: Failure: ImportError (No module named 'templates')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/nose/failure.py", line 39, in runTest
    raise self.exc_val.with_traceback(self.tb)
  File "/usr/lib/python3/dist-packages/nose/loader.py", line 414, in loadTestsFromName
    addr.filename, addr.module)
  File "/usr/lib/python3/dist-packages/nose/importer.py", line 47, in importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/usr/lib/python3/dist-packages/nose/importer.py", line 94, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/usr/lib/python3.4/imp.py", line 245, in load_module
    return load_package(name, filename)
  File "/usr/lib/python3.4/imp.py", line 217, in load_package
    return methods.load()
  File "<frozen importlib._bootstrap>", line 1220, in load
  File "<frozen importlib._bootstrap>", line 1200, in _load_unlocked
  File "<frozen importlib._bootstrap>", line 1129, in _exec
  File "<frozen importlib._bootstrap>", line 1471, in exec_module
  File "<frozen importlib._bootstrap>", line 321, in _call_with_frames_removed
  File "/tmp/buildd/relatorio-0.6.0/relatorio/__init__.py", line 13, in <module>
    import templates
ImportError: No module named 'templates'

----------------------------------------------------------------------
Ran 1 test in 0.039s

Original issue reported on code.google.com by mathi...@m9s.biz on 7 Jul 2014 at 6:33

GoogleCodeExporter commented 9 years ago
I don't have yet python3.4 but could you please test this patch, I got similar 
issue on python3.3 without:
http://codereview.appspot.com/112740043

Original comment by cedric.krier@b2ck.com on 7 Jul 2014 at 10:33

GoogleCodeExporter commented 9 years ago
I went through all errors encountered with python3.4. With the following 
patches on 
https://codereview.appspot.com/104580046/ all tests are passing with 2.7 and 
3.4.

I added you as collaborator, of course I can also push to your review if you 
add me as collaborator.

Original comment by mathi...@m9s.biz on 8 Jul 2014 at 6:35

GoogleCodeExporter commented 9 years ago
Fixed in r439ace946906

Original comment by cedric.krier@b2ck.com on 16 Jul 2014 at 2:27

GoogleCodeExporter commented 9 years ago
Indeed not fixed, please see https://codereview.appspot.com/104580046/#msg5

Original comment by mathi...@m9s.biz on 16 Jul 2014 at 3:56

GoogleCodeExporter commented 9 years ago
This very one issue is fixed. If you have others please submit new issue with 
traceback.

Original comment by cedric.krier@b2ck.com on 16 Jul 2014 at 4:03