Comments (2)
@sloria I just tried the unpatched (regarding #6) version using Win 7 in a virtualbox and this happens:
Running python3 doitlive.py play test.sh
We'll do it live!
STARTING SESSION: Press Ctrl-C at any time to exit.
Traceback (most recent call last):
File "doitlive.py", line 375, in format_prompt
return prompt.format(**get_prompt_state())
File "doitlive.py", line 264, in get_prompt_state
cwd_raw = full_cwd.replace(env['HOME'], '~')
File "C:\Users\IEUser\AppData\Local\Programs\Python\Python35-32\lib\os.py", line 681, in __getitem__
raise KeyError(key) from None
KeyError: 'HOME'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "doitlive.py", line 827, in <module>
cli()
File "C:\Users\IEUser\AppData\Local\Programs\Python\Python35-32\lib\site-packages\click\core.py", line 700, in __call__
return self.main(*args, **kwargs)
File "C:\Users\IEUser\AppData\Local\Programs\Python\Python35-32\lib\site-packages\click\core.py", line 680, in main
rv = self.invoke(ctx)
File "C:\Users\IEUser\AppData\Local\Programs\Python\Python35-32\lib\site-packages\click\core.py", line 1027, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "C:\Users\IEUser\AppData\Local\Programs\Python\Python35-32\lib\site-packages\click\core.py", line 873, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "C:\Users\IEUser\AppData\Local\Programs\Python\Python35-32\lib\site-packages\click\core.py", line 508, in invoke
return callback(*args, **kwargs)
File "doitlive.py", line 695, in play
commentecho=commentecho)
File "doitlive.py", line 588, in run
magicrun(command, **state)
File "doitlive.py", line 368, in magicrun
magictype(text, prompt_template, speed)
File "doitlive.py", line 353, in magictype
echo_prompt(prompt_template)
File "doitlive.py", line 386, in echo_prompt
prompt = make_prompt_formatter(template)()
File "doitlive.py", line 382, in <lambda>
return lambda: format_prompt(tpl)
File "doitlive.py", line 377, in format_prompt
raise ConfigurationError('Invalid variable in prompt template.')
__main__.ConfigurationError: Invalid variable in prompt template.
from doitlive.
Ha, well that answers that question. Should be easy to fix that specific issue, but that can happen outside of your PR.
from doitlive.
Related Issues (20)
- provide stealth mode allowing to pause and resume scenario silently HOT 4
- Xonsh support? HOT 1
- function not found in dotilive playbback session HOT 1
- Actually typing comments?
- Add option to not exit with esc HOT 2
- Pausing/typing whole lines HOT 1
- Unable to activate a conda environment during recording HOT 7
- Staircase on background commands
- bugs in <tab> editing mode HOT 1
- Document Ctrl-C and Ctrl-Z behavior and prompt themes HOT 1
- Small typo in doitlive/termutils.py
- setup.py records the full python path HOT 4
- doitlive doesn't run on stock CentOS 7 HOT 5
- Dependabot couldn't authenticate with https://pypi.python.org/simple/
- Drop support for Python 2 HOT 2
- Issue with python 3.9 and ipython shell HOT 4
- Handle Ctrl-L so we don't have to use `clear` all the time HOT 3
- Re-design the keyboard module
- Using \ for line-break exits doitlive
- Start/End of script
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from doitlive.