openknowledge-archive / dpm-old

**DEPRECATED** - see https://github.com/frictionlessdata/. [[Data package manager (dpm) is a command line tool and Python library for working with data packages - http://data.okfn.org/standards/data-package/]]
http://dpm.readthedocs.org/
15 stars 8 forks source link

TestUploader.test_02_upload() raises 'No suitable OFS backend for uploading found' Exception #51

Open dgraziotin opened 12 years ago

dgraziotin commented 12 years ago

@rgrp, this is happening under Mac OS X Lion.

dpm.tests.test_upload.TestUploader.test_02_upload()

Error
Traceback (most recent call last):
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/unittest/case.py", line 318, in run
    testMethod()
  File "/Library/Python/2.7/site-packages/nose-1.1.2-py2.7.egg/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/Users/dgraziotin/Projects/dpm/dpm/tests/test_upload.py", line 42, in test_02_upload
    self.uploader.upload(self.csv, destspec)
  File "/Users/dgraziotin/Projects/dpm/dpm/upload.py", line 21, in upload
    backend = self.load_ofs_backend(upload_spec)
  File "/Users/dgraziotin/Projects/dpm/dpm/upload.py", line 36, in load_ofs_backend
    raise Exception(msg)
Exception: No suitable OFS backend for uploading found
dgraziotin commented 12 years ago

Should OFS be inserted in dpm's dependencies, then? (http://pypi.python.org/pypi/ofs/0.1)

dgraziotin commented 12 years ago

After OFS is installed, the same happens for Pairtree (http://pypi.python.org/pypi/Pairtree)

When both OFS and Pairtree are installed (through pip in my case), the errors disappear.

rufuspollock commented 12 years ago

Instead we should disable test_upload until we have rewritten it.