Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crashes during updatetools #1

Closed
wbwkx opened this issue Jan 24, 2017 · 2 comments
Closed

Crashes during updatetools #1

wbwkx opened this issue Jan 24, 2017 · 2 comments
Assignees

Comments

@wbwkx
Copy link

wbwkx commented Jan 24, 2017

1. sys info

Python 3.5.0
macos 10.12.2
Darwin baidapang.local 16.3.0 Darwin Kernel Version 16.3.0: Thu Nov 17 20:23:58 PST 2016; root:xnu-3789.31.2~1/RELEASE_X86_64 x86_64

2. step to it

1. up with root
2. updatetools
3. wait seconds after all tools checked.

3. logs

Traceback (most recent call last):
  File "wmd.py", line 242, in <module>
    main()
  File "wmd.py", line 236, in main
    console(path)
  File "wmd.py", line 172, in console
    updatetools()
  File "wmd.py", line 78, in updatetools
    ctools.clonegits('u')
  File "/Users/wuten/WMD/core/tools.py", line 165, in clonegits
    os.mknod(updatefile)
OSError: [Errno 22] Invalid 

Touch a lastupdate.txt is no need in my opinion.

updatefile = 'logs/lasttoolupdate.txt'
    # if not os.path.isfile(updatefile):
        # os.mknod(updatefile)
    with open(updatefile, 'w') as file:
        file.write(datetime.now().strftime('%Y-%m-%d %H:%M:%S'))
@ThomasTJdev ThomasTJdev self-assigned this Jan 24, 2017
@ThomasTJdev
Copy link
Owner

Hi @wbwkx

Thank you for the detailed issue description!

  1. The tool is developed on a Linux box (ARCH). WMD is not tested on Mac devices. The README.md is updated with Linux as a requirement in commit @b09ac97.
  2. You are completely right regarding your code suggestion for the "lasttoolsupdate.txt". I have removed the code according to your suggestion @3ba66a1. Thank you!

Would you mind try again?

@ThomasTJdev
Copy link
Owner

Closed - no feedback

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants