Install wasanbon in Windows7 x64, Windows8.1


1. Install Developmental Environment

1.1 Install Python

Download Python 2.7.9 from this link.

Use 32bit version (x86) python. Never use another version of Python (like python3 or python2.6 series).

After finishing installing the python,
you must add “C:¥Python27; C:¥Python27¥Scripts” to PATH environmental variable.

— REFERENCE
Computer Hope
Using Python in Windows – Python.org
Use of Environment Variable in Windows 8
The quickest way to edit environment variables in Windows8

1.2 Install Microsoft Visual C++ Compiler for Python 2.7

Download VC Compiler for Python27 from http://aka.ms/vcpython27.

1.3 Install Visual Studio

Install Visual Studio 2013 Community from HERE.

–REFERENCE
Visual Studio Official Web

1.4 Turn the UAC off

Turn off your UAC (User Account Control) from your control panel, and reboot your windows.

Launching Command-Prompt with Administrator authority will result same output, but we strongly recommend to turn off the UAC for developers...

— REFERENCE
Windows Official

1.5 Install JDK

Download installer of JDK from here.

After installation, you need to modify PATH environmental variables for system to be able to find “java” command and “javac” command.

2. Install

2.1 Install wasanbon

wasanbon will be installed by following command:

$ pip install wasanbon

Then, RT-middlewares and related tools must be installed.
First, you can use following helper command:

$ wasanbon-admin.py environment init -v

This will automatically install some dependency modules.
You will be asked from “cmake” installer if you want to launch cmake from command-line (or not). We recommend you to select “yes” option just for your convenience.

You will be asked yes/no option when wasanbon installing “rtshell” package. We recommend you to input “yes” option to get documentation.

If this automatic installer fails, please install following packages manually:

  • CMake 3.2
  • Doxygen
  • OpenRTM-aist 1.1.1 RELEASE C++
  • OpenRTM-aist 1.1.0 RELEASE Python
  • OpenRTM-aist 1.1.0 RELEASE Java
  • rtctree
  • rtsprofile
  • rtshell

You can also install the packages separately by

$ wasanbon-admin.py install [package]

At first, try installing ‘eclipse’ with above command.

After installing the packages, you need to download repository information. Input…

$ wasanbon-admin.py binder update 

This command will download the repository information into your $HOME/.wasanbon/binder directory.

13 comments for “Install wasanbon in Windows7 x64, Windows8.1

  1. Sunday July 8th, 2018 at 12:13 AM

    wasanbon-admin.py environment init -vのコマンドを実行すると下記のエラーが出ます。どのようにすれば、対処できるのかご教授ください。

    C:\>wasanbon-admin.py environment init -v
    Traceback (most recent call last):
    File “C:\Python27\Scripts\wasanbon-admin.py”, line 17, in
    sys.exit(application.execute())
    File “C:\Python27\lib\site-packages\wasanbon\core\management\application.py”, line 97, in execute
    opts = get_subcommand_list(package)
    File “C:\Python27\lib\site-packages\wasanbon\core\management\application.py”, line 15, in get_subcommand_list
    if wasanbon.plugins.get_plugin(package, n).is_manifest_plugin():
    File “C:\Python27\lib\site-packages\wasanbon\core\plugins\__init__.py”, line 81, in is_manifest_plugin
    return len(self.get_manifest_function_names()) != 0
    File “C:\Python27\lib\site-packages\wasanbon\core\plugins\__init__.py”, line 74, in get_manifest_function_names
    func = getattr(self, name)
    File “C:\Python27\lib\site-packages\wasanbon\core\plugins\admin\environment_plugin\__init__.py”, line 173, in setting_path
    raise wasanbon.UnsupportedPlatformException()
    wasanbon.UnsupportedPlatformException

  2. admin
    Monday July 9th, 2018 at 10:07 AM

    ysugaです.質問ありがとうございます.

    これはUnsupporedPlatformExceptionですので,お使いの環境への対応がまだだった,という下忍だと思います.
    お使いの環境についてお教えください.それと,wasanbon-admin.py version というコマンドで,バージョンの確認ができますので,こちらの情報もいただければ助かります.

    ー今後はこの付加情報もエラーメッセージに含めると良さそうですね.質問していただければ課題が明確化されるし,モチベーションも復活するので助かります!ありがとうございます!!

    • Monday July 9th, 2018 at 04:16 PM

      ご教授していただき、ありがとうございます。

      現在使っている環境は、「OS:windows10Pro、バージョン1803」「プロセッサ:intel(R)Celeron(R)2980U」でした。wasanbon-admin.py versionのコマンドを実行すると、下記のエラーが出ます。

      C:\>wasanbon-admin.py version
      Traceback (most recent call last):
      File “C:\Python27\Scripts\wasanbon-admin.py”, line 17, in
      sys.exit(application.execute())
      File “C:\Python27\lib\site-packages\wasanbon\core\management\application.py”, line 97, in execute
      opts = get_subcommand_list(package)
      File “C:\Python27\lib\site-packages\wasanbon\core\management\application.py”, line 15, in get_subcommand_list
      if wasanbon.plugins.get_plugin(package, n).is_manifest_plugin():
      File “C:\Python27\lib\site-packages\wasanbon\core\plugins\__init__.py”, line 81, in is_manifest_plugin
      return len(self.get_manifest_function_names()) != 0
      File “C:\Python27\lib\site-packages\wasanbon\core\plugins\__init__.py”, line 74, in get_manifest_function_names
      func = getattr(self, name)
      File “C:\Python27\lib\site-packages\wasanbon\core\plugins\admin\environment_plugin\__init__.py”, line 173, in setting_path
      raise wasanbon.UnsupportedPlatformException()
      wasanbon.UnsupportedPlatformException

      • admin
        Tuesday July 10th, 2018 at 12:44 PM

        すみません,あと2点ほど

        pipから入れましたか? pip install wasanbonのように・・・
        もしそうなら,pip install -U wasanbonのように,アップデートして実行してもらえませんか?

        あと,Windowsは32bit版ですか?
        スタートメニュー右クリックー>システムー>システムの種類
        でわかります.

        Windowsが32bitなら,ちょっと改修が必要になりそうです.あと,こちらで試せない・・・

        • 立花健吾
          Wednesday July 11th, 2018 at 02:18 AM

          たびたび失礼します。

          pip install -U wasanbonコマンドを実行したら、特にエラーはありませんでした。ですが、pip install [package]でパッケージの下3つ以外をインストールすれば、下記のエラーが出ました。

          Could not find a version that satisfies the requirement 3.2 (from versions: )
          No matching distribution found for 3.2

          システムの種類は「64ビットオペレーション、x64ベースプロセッサ」でした。

          これ以上インストールできなければ、別のパソコンのwindows7を使ってインストールしようと思います

          • admin
            Wednesday July 11th, 2018 at 10:51 AM

            > たびたび失礼します。

            いえいえ.構いません.励みになります.

            > pip install -U wasanbonコマンドを実行したら、特にエラーはありませんでした。ですが、pip install [package]でパッケージの下3つ以外をインストールすれば、下記のエラーが出ました。

            ちょっとよくわかりません.
            メッセージからも,何をどうやってインストールしたのかがわかりません.「下3つ以外」というのは,requirements.txtの下三つという意味ですか?

            あと,お使いのPythonのバージョンについても知りたいです.
            $ python –version
            の実行結果でPythonのバージョンが(2.7.10がサポートです)

            $ python -c “import sys; print sys.maxsize > 2**32”
            というコマンドの実行結果で,64bit版か否か.Falseなら32bit版 (32bit版のみ対応です)

            OpenRTMのPython版が上記Pythonのみ対応なので(いまベータ版の1.2.0ではpython3対応らしい)・・・もう少しお付き合いください!

          • admin
            Thursday July 12th, 2018 at 12:03 AM

            ひょっとするとこちらのパッケージがわるいかも,と思って,エラーメッセージ関連をアップデートしてパッケージを再構成しておきました.

            $ pip install -U wasanbon –no-cache-dir

            でインストールしてみてください.バージョンは1.1.0-post4というバージョンになります.

  3. 立花健吾
    Thursday July 12th, 2018 at 02:42 AM

    説明不足で申し訳ありません。

    「下3つ以外」とは、
    CMake 3.2
    Doxygen
    OpenRTM-aist 1.1.1 RELEASE C++
    OpenRTM-aist 1.1.0 RELEASE Python
    OpenRTM-aist 1.1.0 RELEASE Java
    rtctree
    rtsprofile
    rtshell
    のrtctreeとrtsprofileとrtshellのことです。下記のようにインストールしてエラーが出ました。

    C:\>pip install CMake 3.2
    Collecting CMake
    Using cached https://files.pythonhosted.org/packages/7a/24/080d7eb68ba5294e65432a8e1c3119399dd737b5805a17193081ffa4523d/cmake-3.11.0-cp27-cp27m-win32.whl
    Collecting 3.2
    Could not find a version that satisfies the requirement 3.2 (from versions: )
    No matching distribution found for 3.2

    pythonは「Python 2.7.9」でした。さらに、python -c “import sys; print sys.maxsize > 2**32″コマンドを実行すると下記のようになりました。

    C:\>python -c “import sys; print sys.maxsize > 2**32”
    False

    • admin
      Thursday July 12th, 2018 at 10:26 AM

      何点か.

      CMake 3.2はpipからはインストールできません.CMakeの公式からダウンロードしてインストールするべきです.

      それと,Windowsのコマンドラインでは,空白が入った文字列を使うときは””で括ります.つまり,
      意図するところがpipでCMake 3.2をインストールするのであればpip install “Cmake 3.2″と入れます.
      このコマンドは意味がないですけど.

      この辺は実は,wasanbon-admin.py environment initコマンドで入れられるのですが・・・

      とりあえず,再度,

      pip install -U wasanbon –no-cache-dir

      はどうですか?

      • 立花健吾
        Friday July 13th, 2018 at 02:35 AM

        pip install -U wasanbon –no-cache-dirコマンドを実行すると下記のようになりました。

        C:\>pip install -U wasanbon -no-cache-dir

        Usage:
        pip install [options] [package-index-options] …
        pip install [options] -r [package-index-options] …
        pip install [options] [-e] …
        pip install [options] [-e] …
        pip install [options] …

        no such option: -n
        この後、wasanbon-admin.py environment init -vコマンドを実行しても、前回入力したエラーと同様のエラーがでました。

        • admin
          Friday July 13th, 2018 at 10:26 AM

          すみません,オートコレクトで線が一本抜けていました.

          $ pip install -U wasanbon –-no-cache-dir

          というコマンドです.
          no-cache-dirの前にハイフンを2本入れます.
          使い方と意味はpipのヘルプを参照してください.このオプションを入れるとキャッシュを使わないので最新の物が入るはずです.

  4. 立花健吾
    Friday July 13th, 2018 at 02:22 PM

    pip install -U wasanbon –-no-cache-dirコマンドを入力すると、正常にインストールされました。
    その後、wasanbon-admin.py environment init -vコマンドを入力すると下記のようになり、windowsインストーラーのポップが出てきました。内容は、「インストールパッケージを開くことができませんでした。アプリケーションベンダーに問い合わせ、このパッケージが有効なwindowsインストーラーパッケージであることを確認してください」でした。JavaとDoxygenはインストールされました。

    C:\>wasanbon-admin.py environment init -v
    # Starting wasanbon environment initialization…
    # Checking Installationg and Repair Environment…..
    # Trying to import setuptools module.
    ## Package %s is successfully imported.
    # Trying to import pip module.
    ## Package %s is successfully imported.
    # Trying to import yaml module.
    ## Package %s is successfully imported.
    # Trying to import github module.
    ## Package %s is successfully imported.
    # Trying to import psutil module.
    ## Package %s is successfully imported.
    # Trying to import requests module.
    ## Package %s is successfully imported.
    # Trying to import requests_oauthlib module.
    ## Package %s is successfully imported.
    # Trying to import bitbucket module.
    ## Package %s is successfully imported.
    # Success.
    # Initializing .wasanbon directory….
    ## Platform: windows8_x64
    ## Searching Command (svn)
    ### Hint: C:\Program Files\TortoiseSVN\bin\svn.exe
    ### Hint: C:\Program Files\SlikSvn\bin\svn.exe
    ## Searching svn … Not found.
    ## Searching Command (msbuild)
    ### Hint: C:\Program Files (x86)\MSBuild\12.0\Bin\MSBuild.exe
    ### Hint: C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe
    ## Searching msbuild … Found in C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe.
    ## Searching Command (java)
    ### Hint: C:\Program Files (x86)\Java\jdk1.7.0_17\bin\java.exe
    ### Hint: C:\Program Files (x86)\Java\jdk1.7.0_21\bin\java.exe
    ### Hint: C:\Program Files\Java\jdk1.7.0_17\bin\java.exe
    ### Hint: C:\Program Files\Java\jdk1.7.0_21\bin\java.exe
    ## Searching java … Found in C:\Program Files (x86)\Java\jdk1.7.0_21\bin\java.exe.
    ## Searching Command (javac)
    ### Hint: C:\Program Files (x86)\Java\jdk1.7.0_17\bin\javac.exe
    ### Hint: C:\Program Files (x86)\Java\jdk1.7.0_21\bin\javac.exe
    ### Hint: C:\Program Files\Java\jdk1.7.0_17\bin\javac.exe
    ### Hint: C:\Program Files\Java\jdk1.7.0_21\bin\javac.exe
    ## Searching javac … Found in C:\Program Files (x86)\Java\jdk1.7.0_21\bin\javac.exe.
    ## Searching Command (doxygen)
    ### Hint: C:\Program Files\doxygen\bin\doxygen.exe
    ## Searching doxygen … Found in C:\Program Files\doxygen\bin\doxygen.exe.
    ## Searching Command (emacs)
    ### Hint: C:\Users\USER\.wasanbon\emacs\emacs-23.4\bin\emacs.exe
    ## Searching emacs … Not found.
    ## Searching Command (git)
    ### Hint: C:\Program Files (x86)\Git\bin\git.exe
    ### Hint: C:\Program Files\Git\bin\git.exe
    ## Searching git … Not found.
    ## Searching Command (cmake)
    ### Hint: C:\Program Files (x86)\CMake 2.8\bin\cmake.exe
    ### Hint: C:\Program Files (x86)\CMake 3.2\bin\cmake.exe
    ### Hint: C:\Program Files (x86)\CMake\bin\cmake.exe
    ### Hint: C:\Program Files\CMake 2.8\bin\cmake.exe
    ### Hint: C:\Program Files\CMake 3.2\bin\cmake.exe
    ### Hint: C:\Program Files\CMake\bin\cmake.exe
    ## Searching cmake … Not found.
    ## Searching Command (hg)
    ### Hint: C:\Program Files\Mercurial\hg.exe
    ### Hint: C:\Program Files\TortoiseHg\hg.exe
    ## Searching hg … Not found.
    # Installing Commands….
    # Checking Command [svn ] …# Checking Path :
    not installed.
    # Installing Command [svn ] …
    # Unsupported package name svn
    # Download and Intall [http://www.sliksvn.com/pub/Slik-Subversion-1.7.9-x64.msi]
    – Installing C:\Users\USER\.wasanbon\temp\svn\Slik-Subversion-1.7.9-x64.msi
    – Executing [‘msiexec’, ‘/i’, ‘C:\\Users\\USER\\.wasanbon\\temp\\svn\\Slik-Subversion-1.7.9-x64.msi’]
    Installing C:\Users\USER\.wasanbon\temp\svn\Slik-Subversion-1.7.9-x64.msi is successful.
    # Checking Command [msbuild ] …# Checking Path : C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe
    installed in C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe
    # Command [msbuild ] is already installed.
    # Checking Command [javac ] …# Checking Path : C:\Program Files (x86)\Java\jdk1.7.0_21\bin\javac.exe
    installed in C:\Program Files (x86)\Java\jdk1.7.0_21\bin\javac.exe
    # Command [javac ] is already installed.
    # Checking Command [doxygen ] …# Checking Path : C:\Program Files\doxygen\bin\doxygen.exe
    installed in C:\Program Files\doxygen\bin\doxygen.exe
    # Command [doxygen ] is already installed.
    # Checking Command [emacs ] …# Checking Path :
    not installed.
    # Installing Command [emacs ] …
    # Unsupported package name emacs
    # Download and Intall [http://ftp.jaist.ac.jp/pub/GNU/emacs/windows/emacs-23.4-bin-i386.zip]
    # Extracting C:\Users\USER\.wasanbon\temp\emacs\emacs-23.4-bin-i386.zip
    – Unpacking C:\Users\USER\.wasanbon\temp\emacs\emacs-23.4-bin-i386.zip
    Traceback (most recent call last):
    File “C:\Python27\lib\site-packages\wasanbon\core\management\application.py”, line 148, in execute
    return run_command(package, subcommand, args)
    File “C:\Python27\lib\site-packages\wasanbon\core\management\application.py”, line 197, in run_command
    return getattr(plugin, target_function)(args)
    File “C:\Python27\lib\site-packages\wasanbon\core\plugins\__init__.py”, line 20, in wrapper__
    return func(*args, **kwds)
    File “C:\Python27\lib\site-packages\wasanbon\core\plugins\admin\environment_plugin\__init__.py”, line 79, in init
    ret = self._install_commands(verbose)
    File “C:\Python27\lib\site-packages\wasanbon\core\plugins\admin\environment_plugin\__init__.py”, line 253, in _install_commands
    ret[key] = self._install_command(key, verbose=verbose, force=force)
    File “C:\Python27\lib\site-packages\wasanbon\core\plugins\admin\environment_plugin\__init__.py”, line 271, in _install_command
    return self._install_package(cmd, verbose=verbose, force=force)
    File “C:\Python27\lib\site-packages\wasanbon\core\plugins\admin\environment_plugin\__init__.py”, line 334, in _install_package
    installpath=wasanbon.home_path)
    File “C:\Python27\lib\site-packages\wasanbon\core\plugins\admin\environment_plugin\setup\__init__.py”, line 143, in download_and_install
    _download_and_install_url(u, verbose=verbose, force=force, temppath=temppath, installpath=installpath)
    File “C:\Python27\lib\site-packages\wasanbon\core\plugins\admin\environment_plugin\setup\__init__.py”, line 177, in _download_and_install_url
    return extract_zip_and_install(filename, verbose=verbose, distpath=installpath)
    File “C:\Python27\lib\site-packages\wasanbon\core\plugins\admin\environment_plugin\setup\__init__.py”, line 84, in extract_zip_and_install
    unpack_zip(filename, dist_path, verbose=verbose)
    File “C:\Python27\lib\site-packages\wasanbon\core\plugins\admin\environment_plugin\setup\archive.py”, line 35, in unpack_zip
    zf = zipfile.ZipFile(filepath)
    File “C:\Python27\lib\zipfile.py”, line 793, in __init__
    self._RealGetContents()
    File “C:\Python27\lib\zipfile.py”, line 835, in _RealGetContents
    raise BadZipfile, “File is not a zip file”
    BadZipfile: File is not a zip file
    ## UnknownError.

    • admin
      Tuesday July 17th, 2018 at 03:01 PM

      ご迷惑をおかけしております.

      OpenRTMのサーバーや,他のサーバーのファイルのURLの変更などがありました.
      新しいwasanbonをpypiにアップロードしております.

      同じく
      $ pip install -U wasanbon –no-cache-dir
      でインストールしてみてください.バージョンは1.1.0-5です.
      バージョン確認は,wasanbon-admin.py versionでできます.

      よろしくお願いします.

Leave a Reply to 立花健吾 Cancel reply

Your email address will not be published. Required fields are marked *