MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. vivian0239
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.
    V
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 5
    • Groups 0

    vivian0239

    @vivian0239

    0
    Reputation
    4
    Profile views
    5
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online

    vivian0239 Unfollow Follow

    Latest posts made by vivian0239

    • RE: Install MMM-GoogleAssistant on windows, error: argument --credentials: No such file or directory: "***credentials.json"

      Thank you for your reply!

      posted in Troubleshooting
      V
      vivian0239
    • RE: Install MMM-GoogleAssistant on windows, error: argument --credentials: No such file or directory: "***credentials.json"

      Thank you for your reply! It’s really bad news.

      posted in Troubleshooting
      V
      vivian0239
    • RE: Install MMM-GoogleAssistant on windows, error: argument --credentials: No such file or directory: "***credentials.json"

      I change this to :
      default=‘C:\Users\myname\AppData\Roaming\google-oauthlib-tool\credentials.json’,

      And another issue appeared:
      $ /c/Users/myname/env/Scripts/python -u assistant.py
      pubnub subscription completed
      Traceback (most recent call last):
      File “assistant.py”, line 140, in
      main()
      File “assistant.py”, line 137, in main
      init_googleAssistant()
      File “assistant.py”, line 131, in init_googleAssistant
      with Assistant(credentials,“873445380749-it4rg69bo0sbrqg69upkorp79m6mbq0d.apps.googleusercontent.com”) as assistant:
      File “C:\Users\myname\env\lib\site-packages\google\assistant\library\assistant.py”, line 90, in init
      self._load_lib()
      File “C:\Users\myname\env\lib\site-packages\google\assistant\library\assistant.py”, line 270, in _load_lib
      self.lib = cdll.LoadLibrary(lib_path)
      File "c:\python38\lib\ctypes_init
      .py", line 451, in LoadLibrary
      return self.dlltype(name)
      File "c:\python38\lib\ctypes_init
      .py", line 373, in init
      self._handle = _dlopen(self._name, mode)
      OSError: [WinError 193] %1 is not a valid Win32 application
      hello from python!!

      posted in Troubleshooting
      V
      vivian0239
    • Install MMM-GoogleAssistant on windows, error: argument --credentials: No such file or directory: "***credentials.json"

      Hi,

      I installed Google Assistant on windows 10 and pass audio and push to talk test, now I got error at the last step:
      assistant.py: error: argument --credentials: No such file or directory: “/c/Users/myname/AppData/Roaming/google-oauthlib-tool/credentials.json”
      I checked this path, I do have credentials.json there.
      And I tried to modify this part in MMM-GoogleAssistant/pi/assistant.py,
      def init_googleAssistant():
      parser = argparse.ArgumentParser(
      formatter_class=argparse.RawTextHelpFormatter)
      parser.add_argument(‘–credentials’, type=existing_file,
      metavar=‘OAUTH2_CREDENTIALS_FILE’,
      default=‘/c/Users/vellm/AppData/Roaming/google-oauthlib-tool/credentials.json’,
      #default=os.path.join(
      # os.path.expanduser(“~”), #/AppData/Roaming/google-oauthlib-tool/credentials.json
      # ‘google-oauthlib-tool’,
      # ‘credentials.json’
      #),
      help=‘Path to store and read OAuth2 credentials’)
      I think the issue happened in this line, but I cannot solve it:
      default=‘/c/Users/vellm/AppData/Roaming/google-oauthlib-tool/credentials.json’,

      Anyone can tell me how to solve it?
      Thanks!

      posted in Troubleshooting
      V
      vivian0239
    • RE: Installing Magic mirror on windows 10

      Hi, everyone!

      I have a task to install Magic Mirror on Windows. And I am very happy to find here. I tried the steps, but it still has error. My pc is Windows 10.
      I also changed package.json from:
      “start”: “DISPLAY=”${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js",
      to
      “start”: “node_modules/.bin/electron js/electron.js”,
      I am new to JS, please tell me where I am wrong. Thank you!

      This is my log:
      ssdrive@home MINGW64 ~/MagicMirror
      $ npm install --only=prod

      magicmirror@2.12.0 install C:\Users\ssdrive\MagicMirror
      echo "Installing vendor files …
      " && cd vendor && npm install --loglevel=error

      "Installing vendor files …

      magicmirror@2.12.0 postinstall C:\Users\ssdrive\MagicMirror
      npm run install-fonts && echo "MagicMirror installation finished successfully!
      "

      magicmirror@2.12.0 install-fonts C:\Users\ssdrive\MagicMirror
      echo "Installing fonts …
      " && cd fonts && npm install --loglevel=error

      "Installing fonts …
      "MagicMirror installation finished successfully!
      audited 1050 packages in 16.723s

      75 packages are looking for funding
      run npm fund for details

      found 3 low severity vulnerabilities
      run npm audit fix to fix them, or npm audit for details

      ssdrive@home MINGW64 ~/MagicMirror
      $ cd vendor

      ssdrive@home MINGW64 ~/MagicMirror/vendor
      $ npm install
      npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4 (node_modules\fsevents):
      npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.4: wanted {“os”:“darwin”,“arch”:“any”} (current: {“os”:“win32”,“arch”:“x64”})

      added 82 packages from 57 contributors and audited 150 packages in 15.029s
      found 8 vulnerabilities (7 low, 1 high)
      run npm audit fix to fix them, or npm audit for details

      ssdrive@home MINGW64 ~/MagicMirror/vendor
      $ cd …\fonts
      bash: cd: …fonts: No such file or directory

      ssdrive@home MINGW64 ~/MagicMirror/vendor
      $ cd …

      ssdrive@home MINGW64 ~/MagicMirror
      $ cd fonts

      ssdrive@home MINGW64 ~/MagicMirror/fonts
      $ npm install
      added 1 package from 1 contributor and audited 1 package in 0.993s
      found 0 vulnerabilities

      ssdrive@home MINGW64 ~/MagicMirror/fonts
      $ cd …

      ssdrive@home MINGW64 ~/MagicMirror
      $ notepad package.json

      ssdrive@home MINGW64 ~/MagicMirror
      $ npm start
      npm ERR! code EJSONPARSE
      npm ERR! file C:\Users\ssdrive\MagicMirror\package.json
      npm ERR! JSON.parse Failed to parse json
      npm ERR! JSON.parse Unexpected token , in JSON at position 209 while parsing near ‘…tron js/electron.js",
      npm ERR! JSON.parse “server”: "node …’
      npm ERR! JSON.parse Failed to parse package.json data.
      npm ERR! JSON.parse package.json must be actual JSON, not just JavaScript.

      npm ERR! A complete log of this run can be found in:
      npm ERR! C:\Users\ssdrive\AppData\Roaming\npm-cache_logs\2020-08-09T20_33_43_328Z-debug.log

      ssdrive@home MINGW64 ~/MagicMirror
      $ npm start
      npm ERR! code EJSONPARSE
      npm ERR! file C:\Users\ssdrive\MagicMirror\package.json
      npm ERR! JSON.parse Failed to parse json
      npm ERR! JSON.parse Unexpected token , in JSON at position 209 while parsing near ‘…tron js/electron.js",
      npm ERR! JSON.parse “server”: "node …’
      npm ERR! JSON.parse Failed to parse package.json data.
      npm ERR! JSON.parse package.json must be actual JSON, not just JavaScript.

      npm ERR! A complete log of this run can be found in:
      npm ERR! C:\Users\ssdrive\AppData\Roaming\npm-cache_logs\2020-08-09T20_41_40_531Z-debug.log

      ssdrive@home MINGW64 ~/MagicMirror
      $

      posted in Troubleshooting
      V
      vivian0239