larsyencken / csvdiff

Generate a diff between two tabular datasets expressed in CSV files.
BSD 3-Clause "New" or "Revised" License
132 stars 31 forks source link

test failed #3

Closed williamjmorenor closed 9 years ago

williamjmorenor commented 9 years ago

Hi

I am trying to setup a .spec file for include csvdiff in Fedora but I have a got this error with test

running build_ext Traceback (most recent call last): File "setup.py", line 54, in test_suite='tests', File "/usr/lib64/python2.7/distutils/core.py", line 152, in setup dist.run_commands() File "/usr/lib64/python2.7/distutils/dist.py", line 953, in run_commands self.run_command(cmd) File "/usr/lib64/python2.7/distutils/dist.py", line 972, in run_command cmd_obj.run() File "/usr/lib/python2.7/site-packages/setuptools/command/test.py", line 138, in run self.with_project_on_sys_path(self.run_tests) File "/usr/lib/python2.7/site-packages/setuptools/command/test.py", line 118, in with_project_on_sys_path func() File "/usr/lib/python2.7/site-packages/setuptools/command/test.py", line 164, in run_tests testLoader = cks File "/usr/lib64/python2.7/unittest/main.py", line 94, in init self.parseArgs(argv) File "/usr/lib64/python2.7/unittest/main.py", line 149, in parseArgs self.createTests() File "/usr/lib64/python2.7/unittest/main.py", line 158, in createTests self.module) File "/usr/lib64/python2.7/unittest/loader.py", line 128, in loadTestsFromNames suites = [self.loadTestsFromName(name, module) for name in names] File "/usr/lib64/python2.7/unittest/loader.py", line 103, in loadTestsFromName return self.loadTestsFromModule(obj) File "/usr/lib/python2.7/site-packages/setuptools/command/test.py", line 35, in loadTestsFromModule tests.append(self.loadTestsFromName(submodule)) File "/usr/lib64/python2.7/unittest/loader.py", line 100, in loadTestsFromName parent, obj = obj, getattr(obj, part) AttributeError: 'module' object has no attribute 'test_core' error: Estado de salida erróneo de /var/tmp/rpm-tmp.LrMw5o (%check)

larsyencken commented 9 years ago

Sorry for responding very late. It's hard for me to see what command's being run.

Did you make your way past this?

williamjmorenor commented 9 years ago

Hi

There is a

python3 setup.py test

in the spec file to compile csvdiff in a RPM, looks like there is a problem finding the libyaml

Current version PyYAML in Fedora is 3.11

https://admin.fedoraproject.org/pkgdb/package/PyYAML/

libyaml is not found or a compiler error: forcing --without-libyaml (if libyaml is installed correctly, you may need to specify the option --include-dirs or uncomment and modify the parameter include_dirs in setup.cfg) zip_safe flag not set; analyzing archive contents...

Installed /home/makerpm/rpmbuild/BUILD/csvdiff-0.1.0/PyYAML-3.11-py3.4-linux-x86_64.egg running egg_info writing entry points to csvdiff.egg-info/entry_points.txt writing dependency_links to csvdiff.egg-info/dependency_links.txt writing requirements to csvdiff.egg-info/requires.txt writing top-level names to csvdiff.egg-info/top_level.txt writing csvdiff.egg-info/PKG-INFO reading manifest file 'csvdiff.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' writing manifest file 'csvdiff.egg-info/SOURCES.txt' running build_ext Traceback (most recent call last): File "setup.py", line 54, in test_suite='tests', File "/usr/lib64/python3.4/distutils/core.py", line 148, in setup dist.run_commands() File "/usr/lib64/python3.4/distutils/dist.py", line 955, in run_commands self.run_command(cmd) File "/usr/lib64/python3.4/distutils/dist.py", line 974, in run_command cmd_obj.run() File "/usr/lib/python3.4/site-packages/setuptools/command/test.py", line 138, in run self.with_project_on_sys_path(self.run_tests) File "/usr/lib/python3.4/site-packages/setuptools/command/test.py", line 118, in with_project_on_sys_path func() File "/usr/lib/python3.4/site-packages/setuptools/command/test.py", line 164, in run_tests testLoader = cks File "/usr/lib64/python3.4/unittest/main.py", line 92, in init self.parseArgs(argv) File "/usr/lib64/python3.4/unittest/main.py", line 139, in parseArgs self.createTests() File "/usr/lib64/python3.4/unittest/main.py", line 146, in createTests self.module) File "/usr/lib64/python3.4/unittest/loader.py", line 146, in loadTestsFromNames suites = [self.loadTestsFromName(name, module) for name in names] File "/usr/lib64/python3.4/unittest/loader.py", line 146, in suites = [self.loadTestsFromName(name, module) for name in names] File "/usr/lib64/python3.4/unittest/loader.py", line 105, in loadTestsFromName module = import('.'.join(parts_copy)) ImportError: No module named 'tests' error: Estado de salida erróneo de /var/tmp/rpm-tmp.MVG2PA (%check)

Errores de construcción RPM: Estado de salida erróneo de /var/tmp/rpm-tmp.MVG2PA (%check)

larsyencken commented 9 years ago

I just put out a new release (v0.3.0) that doesn't depend on PyYAML, instead it uses click and jsonschema. Want to try again with that?

It also adds a matching csvpatch command with its own man page.

williamjmorenor commented 9 years ago

Cool

I will update the package, now it is in the package repo of Fedora 21 and (than will be) Fedora 22

https://admin.fedoraproject.org/pkgdb/package/csvdiff/

larsyencken commented 9 years ago

Thanks William!

On 8 January 2015 at 02:23, William Moreno notifications@github.com wrote:

Cool

I will update the package, now it is in the package repo of Fedora 21 and (than will be) Fedora 22

https://admin.fedoraproject.org/pkgdb/package/csvdiff/

— Reply to this email directly or view it on GitHub https://github.com/larsyencken/csvdiff/issues/3#issuecomment-69036553.