Is not working (again??) i get the same error on both raspi 3b and 4:
Installed /usr/local/lib/python2.7/dist-packages/grovepi-1.4.1-py2.7.egg
Processing dependencies for grovepi==1.4.1
Searching for smbus-cffi
Reading https://pypi.org/simple/smbus-cffi/
Downloading https://files.pythonhosted.org/packages/29/3d/a50bd997979c7554c9c571753d34e976eb88ebf41d3a66accb2468bd3c69/smbus-cffi-0.5.1.tar.gz#sha256=fb4195aaabfc01586863f60d3190b5cb1bf8f12622fd597e23e48768dad6bde8
Best match: smbus-cffi 0.5.1
Processing smbus-cffi-0.5.1.tar.gz
Writing /tmp/easy_install-fw2XEt/smbus-cffi-0.5.1/setup.cfg
Running smbus-cffi-0.5.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-fw2XEt/smbus-cffi-0.5.1/egg-dist-tmp-Lyuc4Y
File "build/bdist.linux-armv7l/egg/cffi/_shimmed_dist_utils.py", line 16
raise Exception("This CFFI feature requires setuptools on Python >= 3.12. The setuptools module is missing or non-functional.") from ex
^
SyntaxError: invalid syntax
File "/tmp/easy_install-fw2XEt/smbus-cffi-0.5.1/.eggs/cffi-1.17.0rc1-py2.7-linux-armv7l.egg/cffi/_shimmed_dist_utils.py", line 16
raise Exception("This CFFI feature requires setuptools on Python >= 3.12. The setuptools module is missing or non-functional.") from ex
^
SyntaxError: invalid syntax
Installed /tmp/easy_install-fw2XEt/smbus-cffi-0.5.1/.eggs/cffi-1.17.0rc1-py2.7-linux-armv7l.egg
Searching for pycparser
Reading https://pypi.org/simple/pycparser/
Downloading https://files.pythonhosted.org/packages/1d/b2/31537cf4b1ca988837256c910a668b553fceb8f069bedc4b1c826024b52c/pycparser-2.22.tar.gz#sha256=491c8be9c040f5390f5bf44a5b07752bd07f56edf992381b05c701439eec10f6
Best match: pycparser 2.22
Processing pycparser-2.22.tar.gz
Writing /tmp/easy_install-fw2XEt/smbus-cffi-0.5.1/temp/easy_install-RZceae/pycparser-2.22/setup.cfg
Running pycparser-2.22/setup.py -q bdist_egg --dist-dir /tmp/easy_install-fw2XEt/smbus-cffi-0.5.1/temp/easy_install-RZceae/pycparser-2.22/egg-dist-tmp-chOY1s
warning: no previously-included files found matching 'setup.pyc'
warning: no previously-included files matching 'yacctab.*' found under directory 'tests'
warning: no previously-included files matching 'lextab.*' found under directory 'tests'
warning: no previously-included files matching 'yacctab.*' found under directory 'examples'
warning: no previously-included files matching 'lextab.*' found under directory 'examples'
zip_safe flag not set; analyzing archive contents...
pycparser.ply.lex: module references __file__
pycparser.ply.lex: module MAY be using inspect.getsourcefile
pycparser.ply.yacc: module references __file__
pycparser.ply.yacc: module MAY be using inspect.getsourcefile
pycparser.ply.yacc: module MAY be using inspect.stack
pycparser.ply.ygen: module references __file__
creating /tmp/easy_install-fw2XEt/smbus-cffi-0.5.1/.eggs/pycparser-2.22-py2.7.egg
Extracting pycparser-2.22-py2.7.egg to /tmp/easy_install-fw2XEt/smbus-cffi-0.5.1/.eggs
Installed /tmp/easy_install-fw2XEt/smbus-cffi-0.5.1/.eggs/pycparser-2.22-py2.7.egg
Traceback (most recent call last):
File "setup.py", line 125, in <module>
test_suite = 'test_script.test_suite.TestMethods'
File "/usr/lib/python2.7/dist-packages/setuptools/__init__.py", line 145, in setup
return distutils.core.setup(**attrs)
File "/usr/lib/python2.7/distutils/core.py", line 151, in setup
dist.run_commands()
File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
self.run_command(cmd)
File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "/usr/lib/python2.7/dist-packages/setuptools/command/install.py", line 67, in run
self.do_egg_install()
File "/usr/lib/python2.7/dist-packages/setuptools/command/install.py", line 117, in do_egg_install
cmd.run()
File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 443, in run
self.easy_install(spec, not self.no_deps)
File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 685, in easy_install
return self.install_item(None, spec, tmpdir, deps, True)
File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 732, in install_item
self.process_distribution(spec, dist, deps)
File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 777, in process_distribution
[requirement], self.local_index, self.easy_install
File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 782, in resolve
replace_conflicting=replace_conflicting
File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 1065, in best_match
return self.obtain(req, installer)
File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 1077, in obtain
return installer(requirement)
File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 704, in easy_install
return self.install_item(spec, dist.location, tmpdir, deps)
File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 730, in install_item
dists = self.install_eggs(spec, download, tmpdir)
File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 915, in install_eggs
return self.build_and_install(setup_script, setup_base)
File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 1183, in build_and_install
self.run_setup(setup_script, setup_base, args)
File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 1169, in run_setup
run_setup(setup_script, args)
File "/usr/lib/python2.7/dist-packages/setuptools/sandbox.py", line 253, in run_setup
raise
File "/usr/lib/python2.7/contextlib.py", line 35, in __exit__
self.gen.throw(type, value, traceback)
File "/usr/lib/python2.7/dist-packages/setuptools/sandbox.py", line 195, in setup_context
yield
File "/usr/lib/python2.7/contextlib.py", line 35, in __exit__
self.gen.throw(type, value, traceback)
File "/usr/lib/python2.7/dist-packages/setuptools/sandbox.py", line 166, in save_modules
saved_exc.resume()
File "/usr/lib/python2.7/dist-packages/setuptools/sandbox.py", line 141, in resume
six.reraise(type, exc, self._tb)
File "/usr/lib/python2.7/dist-packages/setuptools/sandbox.py", line 154, in save_modules
yield saved
File "/usr/lib/python2.7/dist-packages/setuptools/sandbox.py", line 195, in setup_context
yield
File "/usr/lib/python2.7/dist-packages/setuptools/sandbox.py", line 250, in run_setup
_execfile(setup_script, ns)
File "/usr/lib/python2.7/dist-packages/setuptools/sandbox.py", line 45, in _execfile
exec(code, globals, locals)
File "/tmp/easy_install-fw2XEt/smbus-cffi-0.5.1/setup.py", line 48, in <module>
import os
File "/usr/lib/python2.7/dist-packages/setuptools/__init__.py", line 145, in setup
return distutils.core.setup(**attrs)
File "/usr/lib/python2.7/distutils/core.py", line 111, in setup
_setup_distribution = dist = klass(attrs)
File "/usr/lib/python2.7/dist-packages/setuptools/dist.py", line 447, in __init__
k: v for k, v in attrs.items()
File "/usr/lib/python2.7/distutils/dist.py", line 287, in __init__
self.finalize_options()
File "/usr/lib/python2.7/dist-packages/setuptools/dist.py", line 739, in finalize_options
ep.load()(self, ep.name, value)
File "/tmp/easy_install-fw2XEt/smbus-cffi-0.5.1/.eggs/cffi-1.17.0rc1-py2.7-linux-armv7l.egg/cffi/setuptools_ext.py", line 216, in cffi_modules
File "/tmp/easy_install-fw2XEt/smbus-cffi-0.5.1/.eggs/cffi-1.17.0rc1-py2.7-linux-armv7l.egg/cffi/setuptools_ext.py", line 49, in add_cffi_module
File "/tmp/easy_install-fw2XEt/smbus-cffi-0.5.1/.eggs/cffi-1.17.0rc1-py2.7-linux-armv7l.egg/cffi/setuptools_ext.py", line 25, in execfile
File "smbus_cffi_build.py", line 60, in <module>
File "/tmp/easy_install-fw2XEt/smbus-cffi-0.5.1/.eggs/cffi-1.17.0rc1-py2.7-linux-armv7l.egg/cffi/api.py", line 112, in cdef
File "/tmp/easy_install-fw2XEt/smbus-cffi-0.5.1/.eggs/cffi-1.17.0rc1-py2.7-linux-armv7l.egg/cffi/api.py", line 126, in _cdef
File "/tmp/easy_install-fw2XEt/smbus-cffi-0.5.1/.eggs/cffi-1.17.0rc1-py2.7-linux-armv7l.egg/cffi/cparser.py", line 390, in parse
File "/tmp/easy_install-fw2XEt/smbus-cffi-0.5.1/.eggs/cffi-1.17.0rc1-py2.7-linux-armv7l.egg/cffi/cparser.py", line 395, in _internal_parse
File "/tmp/easy_install-fw2XEt/smbus-cffi-0.5.1/.eggs/cffi-1.17.0rc1-py2.7-linux-armv7l.egg/cffi/cparser.py", line 337, in _parse
File "/tmp/easy_install-fw2XEt/smbus-cffi-0.5.1/.eggs/cffi-1.17.0rc1-py2.7-linux-armv7l.egg/cffi/cparser.py", line 53, in _get_parser
File "/tmp/easy_install-fw2XEt/smbus-cffi-0.5.1/.eggs/pycparser-2.22-py2.7.egg/pycparser/c_parser.py", line 86, in __init__
File "/tmp/easy_install-fw2XEt/smbus-cffi-0.5.1/.eggs/pycparser-2.22-py2.7.egg/pycparser/c_lexer.py", line 65, in build
File "/tmp/easy_install-fw2XEt/smbus-cffi-0.5.1/.eggs/pycparser-2.22-py2.7.egg/pycparser/ply/lex.py", line 914, in lex
File "/tmp/easy_install-fw2XEt/smbus-cffi-0.5.1/.eggs/pycparser-2.22-py2.7.egg/pycparser/ply/lex.py", line 233, in readtab
File "/usr/lib/python2.7/re.py", line 194, in compile
return _compile(pattern, flags)
File "/usr/lib/python2.7/re.py", line 249, in _compile
p = sre_compile.compile(pattern, flags)
File "/usr/lib/python2.7/sre_compile.py", line 583, in compile
"sorry, but this version only supports 100 named groups"
AssertionError: sorry, but this version only supports 100 named groups
cat /etc/os-release
PRETTY_NAME="Raspbian GNU/Linux 10 (buster)"
NAME="Raspbian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"
pi@raspberrypi:~ $ i2cdetect -y 1
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- 08 -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
When i try to run the firmware detection it gets stuck…
The grovepi import works with python but not with python3
any clues? updates? weapons of selfdestruction?
al the best