question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Ok, so Supriya appears to be running here on windows. However, when I tried the ‘Quickstart’ part of the documentation here: http://josiahwolfoberholtzer.com/supriya/#quickstart, I get this:

C:\Windows\System32>py
Python 3.9.7 (tags/v3.9.7:1016ef3, Aug 30 2021, 20:19:38) [MSC v.1929 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import supriya
>>> server = supriya.Server().boot()
>>> from supriya.ugens import EnvGen, Out, SinOsc
>>> from supriya.synthdefs import Envelope, synthdef
>>> @synthdef()
... def simple_sine(frequency=440, amplitude=0.1, gate=1):
...     sine = SinOsc.ar(frequency) * amplitude
...     envelope = EnvGen.kr(envelope=Envelope.adsr(), gate=gate, done_action=2)
...     Out.ar(0, [sine * envelope] * 2)
...
>>> supriya.graph(simple_sine)
'open' is not recognized as an internal or external command,
operable program or batch file.
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "E:\prg\Python39\lib\site-packages\supriya\io.py", line 114, in graph
    return Grapher(
  File "E:\prg\Python39\lib\site-packages\uqbar\graphs\graphers.py", line 56, in __call__
    self.open_output_path(output_path)
  File "E:\prg\Python39\lib\site-packages\uqbar\graphs\graphers.py", line 120, in open_output_path
    subprocess.run(f"{viewer} {output_path}", shell=True, check=True)
  File "E:\prg\Python39\lib\subprocess.py", line 528, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command 'open C:\Users\falkd\AppData\Local\supriya\supriya\Cache\2022-08-14T06-02-39-722229-b70cc34.pdf' returned non-zero exit status 1.
>>>

Looking in the C:\Users\falkd\AppData\Local\supriya\supriya\Cache\, I found that Graphviz had successfully generated the 2022-08-14T06-02-39-722229-b70cc34.pdf which I can open in Acrobat for example.

Generally, when using windows paths in python, I’ve found that using double backslash yields better handling of names with blankspaces, dots and numbers. Like this:

>>> open ('C:\Users\falkd\AppData\Local\supriya\supriya\Cache\2022-08-14T06-02-39-722229-b70cc34.pdf')
  File "<stdin>", line 1
    open ('C:\Users\falkd\AppData\Local\supriya\supriya\Cache\2022-08-14T06-02-39-722229-b70cc34.pdf')
                                                                                                     ^
SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 2-3: truncated \UXXXXXXXX escape

>>> open ('C:\\Users\\falkd\\AppData\\Local\\supriya\\supriya\\Cache\\2022-08-14T06-02-39-722229-b70cc34.pdf')
<_io.TextIOWrapper name='C:\\Users\\falkd\\AppData\\Local\\supriya\\supriya\\Cache\\2022-08-14T06-02-39-722229-b70cc34.pdf' mode='r' encoding='cp1252'>
>>>
  • SuperCollider: 3.12.12
  • Supriya: 22.8b3

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
josiah-wolf-oberholtzercommented, Aug 15, 2022

OK, I can work with that. Will let you know when the libraries are updated.

0reactions
enchilada404commented, Aug 15, 2022

Happy daze! 😀

I’ll let you know if/when I find anything else. For now, I’m really stoked on digging into the intricacies of Supriya…

Read more comments on GitHub >

github_iconTop Results From Across the Web

Grapher Install Errors
A list of install errors sometimes seen with Grapher is provided below. ... To resolve this issue you must re-assign the original letter...
Read more >
Grapher [PENDING ISSUE SINCE 2015]: Can't…
After you create a 2D-graph containing inequalities, save it, and close it, it becomes corrupted and cannot be opened again. Steps to reproduce ......
Read more >
Grapher issue: Error: <gvedit>: syntax error in line 3 near ',' ...
I used Guice's grapher to print .dot file (which dump dependency graph from xtext), and attempt to use graphviz to open it.
Read more >
Known issues with Microsoft Graph
This article describes known issues and limitations with Microsoft Graph and provides workarounds when possible.
Read more >
Issue Graph
Visualizes your issues' dependencies at once. Exportable graphs as SVG or PNG; Automatic arrangement of the graph; Shows issues as graph node and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found