SDKBOX failed to import

When I try importing a plugin in my project i says “Query SDKBOX Info Failed SyntaxError: Unexpected end of JSON input”

Can someone help me fix this?

Same problem MacOS Sierra 10.12.5

you probably have a wrong comma in your sdkbox_config.json
Copy/paste it here so I can help you

i did it through command line and it worked! :slight_smile:

which Creator and SDKBox version do you use ?

i’m not using creator i’m using cocos2d-x
sdkbox version 1.0.1.23

Could you please show more infomation by:

sdkbox import pluginname -vv

@yinjimmy, I am facing same issue.
I have successfully installed the sdkbox in my project as instructed at http://docs.sdkbox.com/en/installer/ :
python -c "import urllib; s = urllib.urlopen('https://raw.githubusercontent.com/sdkbox-doc/en/master/install/install.py').read(); exec s"

Then when I run the command sdkbox import sdkboxplay to import to my project, it says that this plugin couldn’t be found (detailed log added below).

As mentioned in the error messages, I run 'sdkbox list' and that shows the plugin sdkboxplay installed.
I am not sure what it needs to integrate the plugin with the project.

Could you please help.
@nite @SonarSystems @energy @slackmoehrle.

C:\MyProjects\GameDevelopment\Atom2048\Code\Atom2048>sdkbox import sdkboxplay -vv
  _______ ______  _     _ ______   _____  _     _
  |______ |     \ |____/  |_____] |     |  \___/
  ______| |_____/ |    \_ |_____] |_____| _/   \_
 Copyright (c) 2016 SDKBOX Inc. v1.0.1.23
 Namespace(alwaysupdate=0, command='import', days=10, dryrun=None, forcecopy=0, forcedownload=0, info=None, installer='C:/Users/radhey/.sdkbox/bin/sdkbox.pyc', jsonapi=0, legacy=None, local=1, manifest='manifest.json', mkey=None, mvalue=None, nohelp=0, nopatching=0, nopatchingcpp=0, noupdate=0, patcherrors=0, plugin='sdkboxplay/', project='C:/MyProjects/GameDevelopment/Atom2048/Code/Atom2048/', remote=0, runin=None, server='download.sdkbox.com/installer/v1/', symbol=None, verbose=2)
 cocos2d-x installation directory C:/cocos2d-x-3.10/
 cocos2d-x header directory C:/cocos2d-x-3.10/cocos/
 cocos2d-x installation version 3.10.0
 looking for cocos2d.h at C:/MyProjects/GameDevelopment/Atom2048/Code/Atom2048/cocos2d/cocos
 cocos2d-x project root C:/MyProjects/GameDevelopment/Atom2048/Code/Atom2048/
 fallback to cocos project search False
 cocos2d-x project type cpp
 loaded package manifest
 loaded cocos project
 iOS project dirs ['C:/MyProjects/GameDevelopment/Atom2048/Code/Atom2048/proj.ios_mac']
 failed to load xcode project
 loaded android project
 load android studio project
 supported projects cocos android android studio
 package base name sdkboxplay
 no packages are available
 setting plugin source to sdkboxplay
 failed to find plugin source sdkboxplay
 adding to backup .sdkbox_packages.json.WF4Z8foc.sdkbox.temp as C:/MyProjects/GameDevelopment/Atom2048/Code/Atom2048/.sdkbox_packages.json
 adding to backup Android.mk.wMOV8ar4.sdkbox.temp as C:/MyProjects/GameDevelopment/Atom2048/Code/Atom2048/proj.android/jni/Android.mk
 adding to backup Application.mk.C78K0SAo.sdkbox.temp as C:/MyProjects/GameDevelopment/Atom2048/Code/Atom2048/proj.android/jni/Application.mk
 adding to backup AndroidManifest.xml.2PSUByw0.sdkbox.temp as C:/MyProjects/GameDevelopment/Atom2048/Code/Atom2048/proj.android/AndroidManifest.xml
 adding to backup project.properties.RGFrgVqN.sdkbox.temp as C:/MyProjects/GameDevelopment/Atom2048/Code/Atom2048/proj.android/project.properties
Traceback (most recent call last):
  File "monolith.py", line 9273, in <module>
  File "monolith.py", line 9248, in main
  File "monolith.py", line 7378, in perform
  File "monolith.py", line 8029, in main
  File "monolith.py", line 7378, in perform
  File "monolith.py", line 8930, in cmd_import
RuntimeError: Package sdkboxplay couldn't be found. Please run 'sdkbox list' to list all available pacakges
 Performing at_exit cleanup.
 Tracking: {'cocos_installation': '3.10.0', 'sdkbox_version': '1.0.1.23', 'cocos': '3.10.0', 'args': {'verbose': 2, 'legacy': None, 'installer': 'C:/Users/radhey/.sdkbox/bin/sdkbox.pyc', 'manifest': 'manifest.json', 'nopatching': 0, 'runin': None, 'patcherrors': 0, 'project': 'C:/MyProjects/GameDevelopment/Atom2048/Code/Atom2048/', 'noupdate': 0, 'mvalue': None, 'nopatchingcpp': 0, 'local': 1, 'nohelp': 0, 'dryrun': None, 'jsonapi': 0, 'symbol': None, 'mkey': None, 'info': None, 'remote': 0, 'plugin': 'sdkboxplay', 'forcecopy': 0, 'days': 10, 'server': 'download.sdkbox.com/installer/v1/', 'forcedownload': 0, 'command': 'import', 'alwaysupdate': 0}, 'return_status': None}
C:\MyProjects\GameDevelopment\Atom2048\Code\Atom2048>sdkbox list
  _______ ______  _     _ ______   _____  _     _
  |______ |     \ |____/  |_____] |     |  \___/
  ______| |_____/ |    \_ |_____] |_____| _/   \_
 Copyright (c) 2016 SDKBOX Inc. v1.0.1.23
 gpg
     v2.3.14.3
         cocos2d-x v3.x (installed)

 amazon
     v2.3.13.2
         cocos2d-x v3.x (installed)

 googleplayservices
     v2.3.1.1
         cocos2d-x v3.x (installed)
     v2.3.14.3
         cocos2d-x v3.x (installed)
     v2.3.13.5
         cocos2d-x v3.x (installed)

 admob
     v2.3.14.3
         cocos2d-x v3.x (installed)
     v2.3.13.5
         cocos2d-x v3.x (installed)

 sdkboxplay
     v2.3.14.3
         cocos2d-x v3.x (installed)

 iap
     v2.3.1.1
         cocos2d-x v3.x (installed)
     v2.3.14.3
         cocos2d-x v3.x (installed)
     v2.3.13.2
         cocos2d-x v3.x (installed)

C:\MyProjects\GameDevelopment\Atom2048\Code\Atom2048>

run import command again. At that time, you can not access our network resources.

It just means you have downloaded these plugins, not mean you have imported them.

@yinjimmy Thanks for the quick response.

I have faced this at multiple instances.
The servers which host the plugins only run during a specific time of day? If so, Which time ?

Server is always up. Can you tell me which server you connects with, sdkbox will ping different server during the start of the operation, and it will tell you which server it connects to. Maybe one server is experience issue.

I think it’s in China (see log below).
Btw I faced the same error which I reported earlier (plugin couldn’t be found) today again.

C:\MyProjects\GameDevelopment\Atom2048\Code\Atom2048>sdkbox import googleanalytics


|______ | \ |____/ |] | | _/
| |/ | _ |
] |____| _/ _
Copyright © 2016 SDKBOX Inc. v1.0.1.23
test speed of hosts…

  • test host main: 29.90KB/s.
  • test host china: 0.00KB/s.
    choose the fastest server ‘main’, speed is 29.90KB/s.
    Installation Successful :slight_smile:
    downloading package sdkbox-googleanalytics_v2.3.14.3.tar.gz
    #FATAL: timed out ] 13%
    Installation failed :frowning:
    C:\MyProjects\GameDevelopment\Atom2048\Code\Atom2048>

try sdkbox import googleanalytics until success :slight_smile:

@yinjimmy, Yeah, I ran the same command one more time, and it succeeded.
But I have observed the frequent non response of server between 1400hrs to 1900hrs IST (GMT + 5.30).

Looks like network has timed out while downloading the plugin, I suggest download the plugin manually and install them locally, with -b <local path to the plugin>

@nite everytime i open a project in sdkboxgui i get this error…

@nite nevermind using the console first fixed this problem