Marionette.Upgrade icon indicating copy to clipboard operation
Marionette.Upgrade copied to clipboard

ValueError: inappropriately formatted position string

Open Ratikant01 opened this issue 10 years ago • 3 comments

Hello,

I am getting below error even after spending a lot of time in doing this!

image

Any idea where I am doing wrong?

Ratikant01 avatar Aug 01 '14 17:08 Ratikant01

Hi @Ratikant01 - I apologize for the confusion.

Unfortunately I don't have a windows computer, so I'm not sure how to reproduce what you're seeing. Would you mind updating the script locally to remove the formatting and let me know if this fixes the problem?

jasonLaster avatar Aug 03 '14 05:08 jasonLaster

In windows, use relative path to project:

python c:\Marionette.Upgrade\upgrade.py .\

It will fix this issue but add another one:

Searching for first instance...
Traceback (most recent call last):
  File "c:/Marionette.Upgrade/bin/codemod.py", line 813, in <module>
    run_interactive(**options)
  File "c:/Marionette.Upgrade/bin/codemod.py", line 145, in run_interactive
    _ask_about_patch(patch, editor)
  File "c:/Marionette.Upgrade/bin/codemod.py", line 572, in _ask_about_patch
    terminal_clear()
  File "c:/Marionette.Upgrade/bin/codemod.py", line 699, in terminal_clear
    if not _terminal_use_capability('clear'):
  File "c:/Marionette.Upgrade/bin/codemod.py", line 714, in _terminal_use_capability
    import curses, sys
  File "c:\Python27\lib\curses\__init__.py", line 15, in <module>
    from _curses import *
ImportError: No module named _curses

I don't know how to fix this second issue :(

amelon avatar Aug 08 '14 07:08 amelon

@jasonLaster, Can you please verify codemod.py & upgrade.py script for Windows OS and provide the updated scripts? It would be a really great help indeed!

Ratikant01 avatar Aug 11 '14 15:08 Ratikant01