2018-03-30 22:37:26

Hi, I am working on a game, and I am using accessible_output2 for python 3.4. I was trying to test it on my mac, but accessible_output2 was throwing an error.

The error is:

File "/Users/timothybreitenfeldt/Documents/game/accessible_output2/outputs/auto.py", line 33, in output
    output = self.get_first_available_output()
  File "/Users/timothybreitenfeldt/Documents/game/accessible_output2/outputs/auto.py", line 18, in get_first_available_output
    if output.is_active():
  File "/Users/timothybreitenfeldt/Documents/game/accessible_output2/outputs/voiceover.py", line 33, in is_active
    return self.runAppleScript('return (name of processes) contains "VoiceOver"', 'system events').startswith('true') and not self.runAppleScript('try\nreturn bounds of vo cursor\non error\nreturn false\nend try').startswith('false')
TypeError: startswith first arg must be bytes or a tuple of bytes, not str

I did some searching, and from what I could find, this problem was addressed here
http://forum.audiogames.net/viewtopic.php?id=21258

My problem is that I can't seem to find a working link for accessible_output2. The link is  giving me an 502 gateway error when I click on them.

The link I am using is:

http://hg.q-continuum.net/accessible_ou … c3f1ca3048

Thanks

Thumbs up

2018-03-31 03:39:57

here you go. The link is set to delete in 21 days, hopefully the repositories will be back up by then.

https://pypi.python.org/pypi

Thumbs up

2018-03-31 03:45:15

Hi, It looks like you just gave the link to the homepage of the python package index.
Am I missing something? I can't find a download to accessible_output2 and its dependencies.

Thumbs up

2018-03-31 05:12:24

@TJ.Breitenfeldt, get it through PIP. If its not on PIP, chances are its a very unknown package.

"On two occasions I have been asked [by members of Parliament!]: 'Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out ?' I am not able rightly to apprehend the kind of confusion of ideas that could provoke such a question."    — Charles Babbage.

Thumbs up

2018-03-31 06:52:32

Okay, I got it working on my mac, but not exactly how I want. I am using accessible_output2 as supplemental output with wx python, so I want the currently used screen reader to just read the text output. However, what is happening on my mac is that a new instance of voiceover is used to speak the text, rather than the currently running instance. As a result, I get two instances of voiceover talking at the same time.

Is there a way to send speech output to directly to the currently running instance of voiceover, such as with NVDA or Jaws?


Thanks

Thumbs up

2018-03-31 07:15:16

Sorry about that, accidentally pasted clipboard and well, there you have it.

Thumbs up