itermocil: brew error on M1 with macOS Monterey 12.3

I’m getting this.

→ brew install TomAnthony/brews/itermocil
==> Downloading https://pypi.python.org/packages/source/P/PyYAML/PyYAML-3.11.tar.gz
Already downloaded: /Users/Leeiio/Library/Caches/Homebrew/downloads/d98de4b2d4d986c9eacf67d572ad3182da5555a27ae39f38260d899047b9ef4b--PyYAML-3.11.tar.gz
==> Downloading https://github.com/TomAnthony/itermocil/archive/0.2.1.tar.gz
Already downloaded: /Users/Leeiio/Library/Caches/Homebrew/downloads/7660c48dfb6cb50ac68fa581c5de591c2db93fb698776e83084c669a45eb0299--itermocil-0.2.1.tar.gz
==> Installing itermocil from tomanthony/brews
==> python -c import setuptools... --no-user-cfg install --prefix=/opt/homebrew/Cellar/itermocil/0.2.1/libexec/vendor --install-scripts=/opt/homebrew/Cellar/itermocil/0.2.1/libexec/vendor/bin --single-version-externally-managed --r
Last 15 lines from /Users/Leeiio/Library/Logs/Homebrew/itermocil/01.python:
2022-03-16 04:59:53 +0000

python
-c
import setuptools, tokenize
__file__ = 'setup.py'
exec(compile(getattr(tokenize, 'open', open)(__file__).read()
  .replace('\r\n', '\n'), __file__, 'exec'))
--no-user-cfg
install
--prefix=/opt/homebrew/Cellar/itermocil/0.2.1/libexec/vendor
--install-scripts=/opt/homebrew/Cellar/itermocil/0.2.1/libexec/vendor/bin
--single-version-externally-managed
--record=installed.txt


If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
  https://github.com/tomanthony/homebrew-brews/issues

These open issues may also help:
I can't install itermocil.  https://github.com/TomAnthony/homebrew-brews/issues/4
itermocil install is failing https://github.com/TomAnthony/homebrew-brews/issues/2

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 66 (3 by maintainers)

Most upvoted comments

just in case. as this repo doesn’t seem to be updated anymore, i’ve forked and updated for Python3: https://github.com/godbout/itermocil

Python support was dropped from MacOS 12.3. The script is pointing at /usr/bin/python which is now kaput!

I’ll update if I find a decent solution.

I am using the following very hacky, very dirty workaround:

  1. Install Python 2.7.18 through pyenv, given Homebrew no longer supports it:
> brew install pyenv
> pyenv install 2.7.18
  1. Replace the Python2 bin location in itermocil binary:
> nano /usr/local/Cellar/itermocil/0.2.1/libexec/bin/itermocil
-#!/usr/bin/python
+#!/Users/YOUR_USERNAME/.pyenv/versions/2.7.18/bin/python2.7

Now the proper solution would be to migrate the codebase to Python3 and change the Python binary location, but I don’t see that happening anytime soon unfortunately.

@DougThwaites i definitely can help with making the official repo up to date. i forked before instead because the repo didn’t seem maintained anymore. for future PRs tho i don’t think i’ll have the Python skills to judge tho. PHP JS Swift here and going full Mac apps dev so Python is definitively not on the list. if it’s fine with you guys then i’m in.

i will accept the liquid rewards eventually.

@DougThwaites that one’s on you:

IMG_2389

(hopefully i’m better at building software than i am at taking pictures.)

thanks a lot. greatly appreciated!

ok so if no one does it i’ll do it. well i did it.

huh i saw the PR made by @Leeiio only after i’ve made the changes 😄 sorry, didn’t receive any notification. strange. anyways, still merged. i’ve made the changes necessary regarding this issue for the other layouts too.

ok. @TomAnthony any reason why this has to be installed through brew install TomAnthony/brews/itermocil and not directly in Homebrew core? brew install itermocil?

Just that it was a long time ago, and I tried to submit it to core a few times but couldn’t get it accepted at the time.

@TomAnthony Please invite @godbout and @ruudk to the https://github.com/TomAnthony/homebrew-brews repo so that we can fix it there too.

Done!

oh also @TomAnthony. not sure how you want to handle the repo now. are you completely out or you still want to have a say? because what i usually do in my own projects is support only the two latest official language versions (usually the last one being the stable, the previous one being the security fixes and bugs updates).

Whilst I would love to stay involved, realistically I am too time poor and I don’t want to hold things back. I’m happy for you to make decisions. 😃 I might want to be involved more again in the future, but in that case I would expect to be more of an equal collaborator rather then benevolent dictator. 😃

Thanks for your work on this!

@godbout I’d chuck another few beers in the pot along with @ruudk to get the original repo all ticky boo.

@ruudk - I have added you. I haven’t had time to maintain this for sometime now, and have reached out to a few people before to find a new maintainer without much luck. Happy if someone on this thread wants to take a wider maintainer role! 😃

and of course i’ll update this thread with the next beer.

as promised.

C8C59CC8-73AD-4DE4-8DB1-16A20D13C267

Erdinger during lunch break at a client (Wed afternoon are reserved for clients. all the other half days are for open source). but 10$. i think i overdid it. ☹️

and of course i’ll update this thread with the next beer.

just in case. as this repo doesn’t seem to be updated anymore, i’ve forked and updated for Python3: https://github.com/godbout/itermocil

@godbout Nice job! But when I install the itermocil and use itermocil test, I am getting this

Traceback (most recent call last):
  File "/Users/Leeiio/.pyenv/versions/3.7.12/bin/itermocil", line 11, in <module>
    load_entry_point('itermocil==0.2.3', 'console_scripts', 'itermocil')()
  File "/Users/Leeiio/.pyenv/versions/3.7.12/lib/python3.7/site-packages/itermocil.py", line 752, in main
    instance = Itermocil(filepath, here=args.here, cwd=cwd)
  File "/Users/Leeiio/.pyenv/versions/3.7.12/lib/python3.7/site-packages/itermocil.py", line 79, in __init__
    self.process_file()
  File "/Users/Leeiio/.pyenv/versions/3.7.12/lib/python3.7/site-packages/itermocil.py", line 568, in process_file
    self.arrange_panes(len(window['panes']), layout)
  File "/Users/Leeiio/.pyenv/versions/3.7.12/lib/python3.7/site-packages/itermocil.py", line 262, in arrange_panes
    for p in range(0, second_columns):
TypeError: 'float' object cannot be interpreted as an integer

Anyone know how to solve this? I have zero knowledge in 🐍

@scottluxford enjoy 💫 had to get this fixed before working on my projects. life without iTermocil is so sparkless.