-
Notifications
You must be signed in to change notification settings - Fork 651
Closed
Labels
Description
Describe the bug
Attempting to run the test suite, I see:
starting phase `check'
running "python setup.py" with command "test" and parameters ()
running test
WARNING: Testing via this command is deprecated and will be removed in a future version. Users looking for a generic test entry point independent of test runner are encouraged to use tox.
running egg_info
writing python_can.egg-info/PKG-INFO
writing dependency_links to python_can.egg-info/dependency_links.txt
writing requirements to python_can.egg-info/requires.txt
writing top-level names to python_can.egg-info/top_level.txt
reading manifest file 'python_can.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
adding license file 'LICENSE.txt'
writing manifest file 'python_can.egg-info/SOURCES.txt'
running build_ext
WARNING:can.interfaces.cantact:The CANtact module is not installed. Install it using `python -m pip install cantact`
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "setup.py", line 38, in <module>
setup(
File "/gnu/store/b6j1qw1a5rkbfvcy7lc9fm95abbzpa4x-python-3.9.9/lib/python3.9/site-packages/setuptools/__init__.py", line 153, in setup
return distutils.core.setup(**attrs)
File "/gnu/store/b6j1qw1a5rkbfvcy7lc9fm95abbzpa4x-python-3.9.9/lib/python3.9/distutils/core.py", line 148, in setup
dist.run_commands()
File "/gnu/store/b6j1qw1a5rkbfvcy7lc9fm95abbzpa4x-python-3.9.9/lib/python3.9/distutils/dist.py", line 966, in run_commands
self.run_command(cmd)
File "/gnu/store/b6j1qw1a5rkbfvcy7lc9fm95abbzpa4x-python-3.9.9/lib/python3.9/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/gnu/store/b6j1qw1a5rkbfvcy7lc9fm95abbzpa4x-python-3.9.9/lib/python3.9/site-packages/setuptools/command/test.py", line 223, in run
self.run_tests()
File "/gnu/store/b6j1qw1a5rkbfvcy7lc9fm95abbzpa4x-python-3.9.9/lib/python3.9/site-packages/setuptools/command/test.py", line 226, in run_tests
test = unittest.main(
File "/gnu/store/b6j1qw1a5rkbfvcy7lc9fm95abbzpa4x-python-3.9.9/lib/python3.9/unittest/main.py", line 100, in __init__
self.parseArgs(argv)
File "/gnu/store/b6j1qw1a5rkbfvcy7lc9fm95abbzpa4x-python-3.9.9/lib/python3.9/unittest/main.py", line 124, in parseArgs
self._do_discovery(argv[2:])
File "/gnu/store/b6j1qw1a5rkbfvcy7lc9fm95abbzpa4x-python-3.9.9/lib/python3.9/unittest/main.py", line 244, in _do_discovery
self.createTests(from_discovery=True, Loader=Loader)
File "/gnu/store/b6j1qw1a5rkbfvcy7lc9fm95abbzpa4x-python-3.9.9/lib/python3.9/unittest/main.py", line 154, in createTests
self.test = loader.discover(self.start, self.pattern, self.top)
File "/gnu/store/b6j1qw1a5rkbfvcy7lc9fm95abbzpa4x-python-3.9.9/lib/python3.9/unittest/loader.py", line 349, in discover
tests = list(self._find_tests(start_dir, pattern))
File "/gnu/store/b6j1qw1a5rkbfvcy7lc9fm95abbzpa4x-python-3.9.9/lib/python3.9/unittest/loader.py", line 405, in _find_tests
tests, should_recurse = self._find_test_path(
File "/gnu/store/b6j1qw1a5rkbfvcy7lc9fm95abbzpa4x-python-3.9.9/lib/python3.9/unittest/loader.py", line 483, in _find_test_path
tests = self.loadTestsFromModule(package, pattern=pattern)
File "/gnu/store/b6j1qw1a5rkbfvcy7lc9fm95abbzpa4x-python-3.9.9/lib/python3.9/site-packages/setuptools/command/test.py", line 56, in loadTestsFromModule
tests.append(self.loadTestsFromName(submodule))
File "/gnu/store/b6j1qw1a5rkbfvcy7lc9fm95abbzpa4x-python-3.9.9/lib/python3.9/unittest/loader.py", line 191, in loadTestsFromName
return self.loadTestsFromModule(obj)
File "/gnu/store/b6j1qw1a5rkbfvcy7lc9fm95abbzpa4x-python-3.9.9/lib/python3.9/site-packages/setuptools/command/test.py", line 56, in loadTestsFromModule
tests.append(self.loadTestsFromName(submodule))
File "/gnu/store/b6j1qw1a5rkbfvcy7lc9fm95abbzpa4x-python-3.9.9/lib/python3.9/unittest/loader.py", line 154, in loadTestsFromName
module = __import__(module_name)
File "/tmp/guix-build-python-can-4.0.0.drv-0/python-can-4.0.0/can/interfaces/etas/__init__.py", line 7, in <module>
from .boa import *
File "/tmp/guix-build-python-can-4.0.0.drv-0/python-can-4.0.0/can/interfaces/etas/boa.py", line 7, in <module>
_csi = ctypes.windll.LoadLibrary("dll-csiBind")
AttributeError: module 'ctypes' has no attribute 'windll'
To Reproduce
Run the test suite on GNU/Linux.
Expected behavior
Test suite succeeds.
Additional context
OS and version: Guix System
Python version: 3.9.9.
python-can version: 4.0.0
python-can interface/s (if applicable): etas/boa.py