pytailwindcss
pytailwindcss copied to clipboard
PyTailwindCssBinaryNotFound with latest (v4.0.0)
Tailwindcss stopped working and I go following error that the tailwindcss binary was not found.:
File "/redacted/.venv/lib/python3.12/site-packages/pytailwindcss/__init__.py", line 50, in run
output = subprocess.run([str(bin_path)] + tailwindcss_cli_args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/subprocess.py", line 548, in run
with Popen(*popenargs, **kwargs) as process:
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/subprocess.py", line 1026, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "/usr/lib/python3.12/subprocess.py", line 1955, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: '/redacted/.venv/lib/python3.12/site-packages/pytailwindcss/bin/latest/tailwindcss'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/redacted/.venv/bin/tailwindcss", line 8, in <module>
sys.exit(main())
^^^^^^
File "/redacted/.venv/lib/python3.12/site-packages/pytailwindcss/__main__.py", line 13, in main
completed_process = pytailwindcss.run(
^^^^^^^^^^^^^^^^^^
File "/redacted/.venv/lib/python3.12/site-packages/pytailwindcss/__init__.py", line 55, in run
raise PyTailwindCssBinaryNotFound(err)
pytailwindcss.exceptions.PyTailwindCssBinaryNotFound: [Errno 2] No such file or directory: '/redacted/.venv/lib/python3.12/site-packages/pytailwindcss/bin/latest/tailwindcss'
What I checked.
- tailwindcss binary is availabe under given path.
- Permissions are correct also.
After some research I loaded the v3.4.7 binary manual into the correct location and it worked again.
if I use tailwind with the following env var: export TAILWINDCSS_VERSION=v3.4.17 it works perfectly fine.
For me it looks like sth. is broken with the latest release.