![]() Note that calling os.system() in place of subprocess.Popen() causes same, anomalous behavior.įor some reason, FastScripts and only FastScripts seems to direct the content of the script it's running (in the above case, test_subprocess_stdin.py) to the stdin of any (sub) script that gets called within the toplevel script/program. Stdin: subprocess.Popen(cmd2, shell=True) Stdin: subprocess.Popen(cmd1, shell=True) Stdin: cmd2 = '/tmp/reprint_stdin.py /tmp/cmd2out.txt' Stdin: cmd1 = '/tmp/reprint_stdin.py >/tmp/cmd1out.txt' However, strange stuff happens when running the above script(s) from FastScripts: $ # The following demonstrates the scripts running properly: $ cat test_subprocess_stdin.pyĬmd1 = '/tmp/reprint_stdin.py >/tmp/cmd1out.txt'Ĭmd2 = '/tmp/reprint_stdin.py /tmp/cmd2out.txt' ![]() I'll be emailing a link to this question to the FastScripts developers/technical support. I've not tested similar behavior with non-Python scripts, but multiple independent Python programs I've written all behave the same way. ![]() Not only is this just plain weird, it can cause significant confusion when developing software triggered by FastScripts directives. I'm running MacOS 10.9.5.)įastScripts 2.6.8 appears to copy the content of the current script its running to stdin for any subprocess that runs in said script, as demonstrated by the command-line session below. ![]() Why does the FastScripts application do the following, is it purposeful, and can I or FastScripts developers somehow fix/change the behavior to not do this? (I otherwise find FastScripts to be a superb application. 1 x 16000 for 1s audio), as well as attributes for the sample_rate and the originating file of each audio.Summary. AudioItem extends tuple, and has a sig attribute for the audio signal (2d tensor, channels x samples, e.g. My signal transforms take an AudioItem as an argument. I’m confused about how the magic that allows transforms to be handled seamlessly for both individual items and batches, and it’s causing a few problems. Is there something I did wrong? Also, what is nbdev used for in fastai? Is it required for basic usage of the library? I installed the libraries like this: !pip install torch torchvision feather-format kornia pyarrow Pillow wandb nbdev -upgrade > 28 assert nfig_file.exists(), "Use `Config.create` to create a `Config` object the first time"Ģ9 self.d = read_config_file(nfig_file)ĪssertionError: Use `Config.create` to create a `Config` object the first time usr/local/lib/python3.6/dist-packages/nbdev/imports.py in _init_(self, cfg_name)Ģ6 while cfg_path != Path('/') and not (cfg_path/cfg_name).exists(): cfg_path = cfg_path.parent usr/local/lib/python3.6/dist-packages/nbdev/export.py in ()Ģ00 #Catches any from nbdev.bla import something and catches nbdev.bla in group 1, the imported thing(s) in group 2. usr/local/lib/python3.6/dist-packages/nbdev/showdoc.py in ()ġ0 from IPython.display import Markdown,display I got the following error: -ĪssertionError Traceback (most recent call last) I could not importįrom nbdev.showdoc import *. In google colab, I am trying to follow along with this tutorial.
0 Comments
Leave a Reply. |