Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] #36

Closed
evanmang opened this issue May 10, 2024 · 3 comments
Closed

[BUG] #36

evanmang opened this issue May 10, 2024 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@evanmang
Copy link

evanmang commented May 10, 2024

Describe the bug
get_timeline_selection is not working. I get this error:

function get_timeline_selection in engine.py at line 947

response = self.client.run(op)
function run in client.py at line 161
raise CommandError(command_errors.errors)

function get_timeline_selection in engine.py at line 947
response = self.client.run(op)
function run in client.py at line 161
raise CommandError(command_errors.errors)

To Reproduce
Please enter code here that demonstrates the bug:

import sys
import datetime
import math

from ptsl import open_engine
from ptsl import PTSL_pb2 as pt

with open_engine(company_name="py-ptsl",
                 application_name=sys.argv[0]) as engine:
    
    selection = engine.get_timeline_selection()
    print(selection)

Expected behavior
Return of Timeline Selection

Platform:

  • Operating System: macOS 12.7.4
  • Pro Tools Version: 2023.12

Additional context
I tried changing

def get_timeline_selection(self) -> Tuple[str, str]:
            """
            Returns data about the current timeline selection.
            :returns: a Tuple of the In and Out time.
            """
            op = ops.GetMemoryLocations()
            response = self.client.run(op)
            return (response.in_time, ops.response.out_time)

to

def get_timeline_selection(self) -> Tuple[str, str]:
            """
            Returns data about the current timeline selection.
            :returns: a Tuple of the In and Out time.
            """
            op = ops.GetTimelineSelection()
            response = self.client.run(op)
            return (response.in_time, ops.response.out_time)

but just get no return value.

@evanmang evanmang added the bug Something isn't working label May 10, 2024
@iluvcapra
Copy link
Owner

Do you mind posting the stderr message you get?

@iluvcapra
Copy link
Owner

I figured it out, this was a typo in the engine source, it's fixed on master.

@evanmang
Copy link
Author

thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants