Coder Social home page Coder Social logo

Question: Windows compability about doitlive HOT 2 CLOSED

sloria avatar sloria commented on May 23, 2024
Question: Windows compability

from doitlive.

Comments (2)

Stefan-Code avatar Stefan-Code commented on May 23, 2024

@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.

sloria avatar sloria commented on May 23, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.