You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just tried to install pynitrokey, but the installation failed with re.error.
$ pipx install pynitrokey
Fatal error from pip prevented installation. Full pip output in file:
/home/user/.local/pipx/logs/cmd_2023-07-11_16.25.11_pip_errors.log
pip failed to build package:
cmsis-pack-manager
Some possibly relevant errors from pip install:
error: subprocess-exited-with-error
re.error: global flags not at the start of the expression at position 9
Error installing pynitrokey.
The relevant part in the pip_errors.log seems to be:
[...]
Traceback (most recent call last):
File "<string>", line 2, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "/tmp/pip-install-0_jthvp7/cmsis-pack-manager_6832c02299354638bcced6cbfc7574a6/setup.py", line 55, in <module>
setup(
File "/home/user/.local/pipx/shared/lib/python3.11/site-packages/setuptools/__init__.py", line 107, in setup
return distutils.core.setup(**attrs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/user/.local/pipx/shared/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 185, in setup
return run_commands(dist)
^^^^^^^^^^^^^^^^^^
File "/home/user/.local/pipx/shared/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
dist.run_commands()
File "/home/user/.local/pipx/shared/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
self.run_command(cmd)
File "/home/user/.local/pipx/shared/lib/python3.11/site-packages/setuptools/dist.py", line 1234, in run_command
super().run_command(command)
File "/home/user/.local/pipx/shared/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "/home/user/.local/pipx/shared/lib/python3.11/site-packages/wheel/bdist_wheel.py", line 343, in run
self.run_command("build")
File "/home/user/.local/pipx/shared/lib/python3.11/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
self.distribution.run_command(command)
File "/home/user/.local/pipx/shared/lib/python3.11/site-packages/setuptools/dist.py", line 1234, in run_command
super().run_command(command)
File "/home/user/.local/pipx/shared/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "/home/user/.local/pipx/shared/lib/python3.11/site-packages/setuptools/_distutils/command/build.py", line 131, in run
self.run_command(cmd_name)
File "/home/user/.local/pipx/shared/lib/python3.11/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
self.distribution.run_command(command)
File "/home/user/.local/pipx/shared/lib/python3.11/site-packages/setuptools/dist.py", line 1234, in run_command
super().run_command(command)
File "/home/user/.local/pipx/shared/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "/tmp/pip-install-0_jthvp7/cmsis-pack-manager_6832c02299354638bcced6cbfc7574a6/.eggs/milksnake-0.1.5-py3.11.egg/milksnake/setuptools_ext.py", line 88, in run
func(base_path=base_path, inplace=False)
File "/tmp/pip-install-0_jthvp7/cmsis-pack-manager_6832c02299354638bcced6cbfc7574a6/.eggs/milksnake-0.1.5-py3.11.egg/milksnake/setuptools_ext.py", line 276, in build_cffi
ffi = make_ffi()
^^^^^^^^^^
File "/tmp/pip-install-0_jthvp7/cmsis-pack-manager_6832c02299354638bcced6cbfc7574a6/.eggs/milksnake-0.1.5-py3.11.egg/milksnake/setuptools_ext.py", line 262, in make_ffi
from milksnake.ffi import make_ffi
File "/tmp/pip-install-0_jthvp7/cmsis-pack-manager_6832c02299354638bcced6cbfc7574a6/.eggs/milksnake-0.1.5-py3.11.egg/milksnake/ffi.py", line 8, in <module>
_directive_re = re.compile(r'^\s*#.*?$(?m)')
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/re/__init__.py", line 227, in compile
return _compile(pattern, flags)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/re/__init__.py", line 294, in _compile
p = _compiler.compile(pattern, flags)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/re/_compiler.py", line 743, in compile
p = _parser.parse(p, flags)
^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/re/_parser.py", line 980, in parse
p = _parse_sub(source, state, flags & SRE_FLAG_VERBOSE, 0)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/re/_parser.py", line 455, in _parse_sub
itemsappend(_parse(source, state, verbose, nested + 1,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/re/_parser.py", line 841, in _parse
raise source.error('global flags not at the start '
re.error: global flags not at the start of the expression at position 9
The text was updated successfully, but these errors were encountered:
Let’s keep this open as we want to support 3.11 at some point (and we actually advertise it in the package metadata). Currently, it looks like this is the blocker: getsentry/milksnake#33
I just tried to install pynitrokey, but the installation failed with re.error.
The cmd.log:
The relevant part in the pip_errors.log seems to be:
The text was updated successfully, but these errors were encountered: