Cognos Analytics

 View Only
  • 1.  CustomVis install Issue

    Posted Fri May 29, 2020 10:11 AM
    I am facing error while setting up customvis using
    https://www.ibm.com/support/knowledgecenter/SSEP7J_11.1.0/com.ibm.swg.ba.cognos.dg_custom_vis.doc/ca_customviz_tutstepbystep1.html

    After downloading node v10.20.1 from previous release, install commands doesn't install it

    • npm install -g customvis.tgz

     

    npm WARN deprecated rollup-plugin-node-resolve@4.0.1: This package has been deprecated and is no longer maintained. Please use @rollup/plugin-node-resolve.

    npm WARN deprecated rollup-plugin-babel@3.0.7: This package has been deprecated and is no longer maintained. Please use @rollup/plugin-babel.

    After this step, it fails in validation.

    I am using CA 11.1.6 on Cloud.

    Will there be any issue with customvis package downloaded from Cognos Server? 

    Thanks for any inputs for troubleshooting issue further.



    ------------------------------
    Buddhi Gupta
    ------------------------------

    #CognosAnalyticswithWatson


  • 2.  RE: CustomVis install Issue

    Posted Tue June 02, 2020 07:32 AM

    Hi Buddhi

    The warnings should not impact anything... 
    Did you restart your laptop after installing NodeJS?

    Torben



    ------------------------------
    Torben Noer
    ------------------------------



  • 3.  RE: CustomVis install Issue

    Posted Tue June 02, 2020 09:53 AM
    Yes @Torben Noer, I restarted my machine but it doesn't recognize customvis --help command.

    I tested with my colleague as well and have same behavior. We tested on CA 11.1.6 on cloud.​

    ------------------------------
    Buddhi Gupta
    ------------------------------



  • 4.  RE: CustomVis install Issue

    Posted Tue June 02, 2020 10:02 AM
    and what are you using... Mac or Win?

    - If you run this command, what does it return? 
    node --version


    - When you download the customvis cli, it's not in Firefox, correct? (since they will break the tgz format)
    - And when installing the CLI, you are opening the CMD as an administrator (on Windows) or using the command (on Mac):
    sudo npm install -g customvis.tgz

    - And finally, if it's installing, what will this command return?

    customvis --help


    Torben



    ------------------------------
    Torben Noer
    ------------------------------



  • 5.  RE: CustomVis install Issue

    Posted Tue June 02, 2020 06:04 PM
    Hi @Torben Noer,

    I am using windows. 

    • Installed Node V10


    >node --version
    v10.20.1

    • I had restarted machine after installing Node.


    • Downloaded customviz.tgz using chrome from Environment path:


    https://<cognosroot>/bi/js/vida/customvis.tgz

    • Opened CMD with Administrator previleges.


    >npm install -g customvis.tgz
    npm WARN registry Using stale data from https://registry.npmjs.org/ because the host is inaccessible -- are you offline?npm WARN registry Using stale data from https://registry.npmjs.org/ due to a request error during revalidation.
    npm WARN deprecated rollup-plugin-node-resolve@4.0.1: This package has been deprecated and is no longer maintained. Please use @rollup/plugin-node-resolve.
    npm WARN deprecated rollup-plugin-babel@3.0.7: This package has been deprecated and is no longer maintained. Please use @rollup/plugin-babel.
    npm WARN deprecated core-js@2.6.11: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.
    npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
    npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
    C:\Users\User1\AppData\Roaming\npm\customvis -> C:\Users\User1\AppData\Roaming\npm\node_modules\@businessanalytics\customvis\dist\cli\customvis.js
    npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^2.0.6 (node_modules\@businessanalytics\customvis\node_modules\chokidar\node_modules\fsevents):
    npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

    + @businessanalytics/customvis@1.1.118
    updated 1 package in 5.677s

    • Ran test command to validate

    >customvis --help
    'customvis' is not recognized as an internal or external command,
    operable program or batch file.

    ------------------------------
    Buddhi Gupta
    ------------------------------



  • 6.  RE: CustomVis install Issue

    Posted Wed June 03, 2020 02:31 AM

    Looks like the same issue as in this post - can you take a look at this and let me know if it helps?
    https://community.ibm.com/community/user/businessanalytics/communities/community-home/digestviewer/viewthread?GroupId=3061&MessageKey=d879a67e-1fc4-4aec-a64b-919a255408c2&CommunityKey=6b10df83-0b3c-4f92-8b1f-1fd80d0e7e58&tab=digestviewer&ReturnUrl=%2Fcommunity%2Fuser%2Fbusinessanalytics%2Fcommunities%2Fcommunity-home%2Fdigestviewer%3Fcommunitykey%3D6b10df83-0b3c-4f92-8b1f-1fd80d0e7e58%26tab%3Ddigestviewer

    Also, be aware that the url have changed for downloading the CLI from R5 to [CAserverroot]/bi/js/vida/customvis.tgz (in the post above, it's another url mentioned for downloading it since it's R4)

    Torben



    ------------------------------
    Torben Noer
    Offering Manager, Cognos Analytics and Planning Analytics
    IBM
    ------------------------------



  • 7.  RE: CustomVis install Issue

    Posted Wed June 03, 2020 10:30 AM
    Thank you @Torben Noer for sharing the link. It seems customvis.tgz file downloaded from ​[CAserverroot]/bi/js/vida/customvis.tgz is not correct and need to get correct version from Cloud OPS team. 



    ------------------------------
    Buddhi Gupta
    ------------------------------