Git Product home page Git Product logo

Comments (10)

JohnLegrandRichards avatar JohnLegrandRichards commented on June 19, 2024

@travisroberts-sf Are you able to run a .yml file at all or does that fail also?

from itomate.

travisroberts-sf avatar travisroberts-sf commented on June 19, 2024

Nope same thing:

myusernamehere@travisrober-ltm Downloads % itomate -c panes-only.yml
Traceback (most recent call last):
  File "/Users/myusernamehere/.pyenv/versions/3.7.0/lib/python3.7/site-packages/iterm2/connection.py", line 412, in async_connect
    return await coro(self)
  File "/Users/myusernamehere/.pyenv/versions/3.7.0/lib/python3.7/site-packages/iterm2/connection.py", line 219, in async_main
    result = await coro(connection)
  File "/Users/myusernamehere/.pyenv/versions/3.7.0/lib/python3.7/site-packages/itomate/itomate.py", line 200, in activate
    await render_tab_panes(curr_tab, tab_panes, profile_name)
  File "/Users/myusernamehere/.pyenv/versions/3.7.0/lib/python3.7/site-packages/itomate/itomate.py", line 74, in render_tab_panes
    current_session = await current_session.async_split_pane(vertical=True, profile=pofile_name)
  File "/Users/myusernamehere/.pyenv/versions/3.7.0/lib/python3.7/site-packages/iterm2/session.py", line 509, in async_split_pane
    result.split_pane_response.status))
iterm2.session.SplitPaneException: INVALID_PROFILE_NAME
Traceback (most recent call last):
  File "/Users/myusernamehere/.pyenv/versions/3.7.0/lib/python3.7/site-packages/websockets/protocol.py", line 827, in transfer_data
    message = await self.read_message()
  File "/Users/myusernamehere/.pyenv/versions/3.7.0/lib/python3.7/site-packages/websockets/protocol.py", line 895, in read_message
    frame = await self.read_data_frame(max_size=self.max_size)
  File "/Users/myusernamehere/.pyenv/versions/3.7.0/lib/python3.7/site-packages/websockets/protocol.py", line 971, in read_data_frame
    frame = await self.read_frame(max_size)
  File "/Users/myusernamehere/.pyenv/versions/3.7.0/lib/python3.7/site-packages/websockets/protocol.py", line 1051, in read_frame
    extensions=self.extensions,
  File "/Users/myusernamehere/.pyenv/versions/3.7.0/lib/python3.7/site-packages/websockets/framing.py", line 105, in read
    data = await reader(2)
  File "/Users/myusernamehere/.pyenv/versions/3.7.0/lib/python3.7/asyncio/streams.py", line 677, in readexactly
    raise IncompleteReadError(incomplete, n)
asyncio.streams.IncompleteReadError: 0 bytes read on a total of 2 expected bytes

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/Users/myusernamehere/.pyenv/versions/3.7.0/lib/python3.7/site-packages/iterm2/connection.py", line 173, in _async_dispatch_forever
    data = await self.websocket.recv()
  File "/Users/myusernamehere/.pyenv/versions/3.7.0/lib/python3.7/site-packages/websockets/protocol.py", line 509, in recv
    await self.ensure_open()
  File "/Users/myusernamehere/.pyenv/versions/3.7.0/lib/python3.7/site-packages/websockets/protocol.py", line 803, in ensure_open
    raise self.connection_closed_exc()
websockets.exceptions.ConnectionClosedError: code = 1006 (connection closed abnormally [internal]), no reason
myusernamehere@myusernamehere-ltm Downloads %

from itomate.

JohnLegrandRichards avatar JohnLegrandRichards commented on June 19, 2024

@travisroberts-sf Are you sure that the api permissions in iTerm2 were accepted properly?

from itomate.

travisroberts-sf avatar travisroberts-sf commented on June 19, 2024

other than checking the box that enables the API is there any other place that needs to be enabled/granted?

from itomate.

travisroberts-sf avatar travisroberts-sf commented on June 19, 2024

Any other thoughts of why this would be failing?

from itomate.

JohnLegrandRichards avatar JohnLegrandRichards commented on June 19, 2024

@travisroberts-sf What is your python version and iTerm version? I noticed you also posted an issue that looks like you can now run a file. Is this issue still valid?

from itomate.

travisroberts-sf avatar travisroberts-sf commented on June 19, 2024

from itomate.

JohnLegrandRichards avatar JohnLegrandRichards commented on June 19, 2024

@travisroberts-sf There is a pull request open that fixes this issue. I was able to reproduce it.

from itomate.

kamranahmedse avatar kamranahmedse commented on June 19, 2024

Thanks, this should be fine in 0.3.9

from itomate.

nerijunior avatar nerijunior commented on June 19, 2024

This problem was solved on 0.3.9? I'm with this version and it still happening.

Python 3.8.9 under asdf.

Traceback (most recent call last):
  File "/Users/neri/.asdf/installs/python/3.8.9/lib/python3.8/site-packages/iterm2/connection.py", line 421, in async_connect
    return await coro(self)
  File "/Users/neri/.asdf/installs/python/3.8.9/lib/python3.8/site-packages/iterm2/connection.py", line 228, in async_main
    result = await coro(connection)
  File "/Users/neri/.asdf/installs/python/3.8.9/lib/python3.8/site-packages/itomate/itomate.py", line 192, in activate
    commands.insert(0, f"cd {root_path}")
AttributeError: 'str' object has no attribute 'insert'
Traceback (most recent call last):
  File "/Users/neri/.asdf/installs/python/3.8.9/lib/python3.8/site-packages/websockets/legacy/protocol.py", line 944, in transfer_data
    message = await self.read_message()
  File "/Users/neri/.asdf/installs/python/3.8.9/lib/python3.8/site-packages/websockets/legacy/protocol.py", line 1013, in read_message
    frame = await self.read_data_frame(max_size=self.max_size)
  File "/Users/neri/.asdf/installs/python/3.8.9/lib/python3.8/site-packages/websockets/legacy/protocol.py", line 1089, in read_data_frame
    frame = await self.read_frame(max_size)
  File "/Users/neri/.asdf/installs/python/3.8.9/lib/python3.8/site-packages/websockets/legacy/protocol.py", line 1144, in read_frame
    frame = await Frame.read(
  File "/Users/neri/.asdf/installs/python/3.8.9/lib/python3.8/site-packages/websockets/legacy/framing.py", line 70, in read
    data = await reader(2)
  File "/Users/neri/.asdf/installs/python/3.8.9/lib/python3.8/asyncio/streams.py", line 721, in readexactly
    raise exceptions.IncompleteReadError(incomplete, n)
asyncio.exceptions.IncompleteReadError: 0 bytes read on a total of 2 expected bytes

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/Users/neri/.asdf/installs/python/3.8.9/lib/python3.8/site-packages/iterm2/connection.py", line 182, in _async_dispatch_forever
    data = await self.websocket.recv()
  File "/Users/neri/.asdf/installs/python/3.8.9/lib/python3.8/site-packages/websockets/legacy/protocol.py", line 552, in recv
    await self.ensure_open()
  File "/Users/neri/.asdf/installs/python/3.8.9/lib/python3.8/site-packages/websockets/legacy/protocol.py", line 920, in ensure_open
    raise self.connection_closed_exc()
websockets.exceptions.ConnectionClosedError: sent 1000 (OK); no close frame received

from itomate.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.