issue with docopt
amine2233 opened this issue · comments
Hello, thank you for your awesome work.
i had an issue with mackup restore --force
on Mac 0S
i installed mackup
using brew my setup is
macOS = 14.2.1
python = 3.11.7
mackup = 0.8.40
the result of the command is
mackup restore --force
/opt/homebrew/opt/python-docopt/lib/python3.12/site-packages/docopt.py:165: SyntaxWarning: invalid escape sequence '\S'
name = re.findall('(<\S*?>)', source)[0]
/opt/homebrew/opt/python-docopt/lib/python3.12/site-packages/docopt.py:166: SyntaxWarning: invalid escape sequence '\['
value = re.findall('\[default: (.*)\]', source, flags=re.I)
/opt/homebrew/opt/python-docopt/lib/python3.12/site-packages/docopt.py:207: SyntaxWarning: invalid escape sequence '\['
matched = re.findall('\[default: (.*)\]', description, flags=re.I)
/opt/homebrew/opt/python-docopt/lib/python3.12/site-packages/docopt.py:456: SyntaxWarning: invalid escape sequence '\S'
split = re.split('\n *(<\S+?>|-\S+?)', doc)[1:]
other test
mackup --version
/opt/homebrew/opt/python-docopt/lib/python3.12/site-packages/docopt.py:165: SyntaxWarning: invalid escape sequence '\S'
name = re.findall('(<\S*?>)', source)[0]
/opt/homebrew/opt/python-docopt/lib/python3.12/site-packages/docopt.py:166: SyntaxWarning: invalid escape sequence '\['
value = re.findall('\[default: (.*)\]', source, flags=re.I)
/opt/homebrew/opt/python-docopt/lib/python3.12/site-packages/docopt.py:207: SyntaxWarning: invalid escape sequence '\['
matched = re.findall('\[default: (.*)\]', description, flags=re.I)
/opt/homebrew/opt/python-docopt/lib/python3.12/site-packages/docopt.py:456: SyntaxWarning: invalid escape sequence '\S'
split = re.split('\n *(<\S+?>|-\S+?)', doc)[1:]
Mackup 0.8.40
I found a solution:
- i removed mackup using homebrew
- I update python3 using homebrew
- i cleanup homebrew
- i installed mackup
- restart the terminal
- all works now
fixed
Running into this issue on first install:
▲ ~ mackup backup
Traceback (most recent call last):
File "/opt/homebrew/bin/mackup", line 5, in <module>
from mackup.main import main
File "/opt/homebrew/lib/python3.12/site-packages/mackup/main.py", line 38, in <module>
from docopt import docopt
ModuleNotFoundError: No module named 'docopt'
Is this related? Tried the troubleshooting steps above to no avail.
I'm still getting the error. I've tried uninstall mackup & python@3 then reinstalling mackup and letting it pull in python@3... but it's not working