Rocket Terminal Emulator

 View Only
  • 1.  RE: Python Automation on Rocket - Session Manager 10.1.2 (32bit)

    Posted 03-31-2022 09:56
    Below is a screen shot of session Manager

    CAMS Session - which is what i attempt my connection on



    ------------------------------
    Shaun Usher
    Mr
    Rocket Forum Shared Account
    ------------------------------


  • 2.  RE: Python Automation on Rocket - Session Manager 10.1.2 (32bit)

    ROCKETEER
    Posted 03-31-2022 10:51
    Edited by Mike Jones 03-31-2022 10:51
      |   view attached
    I tried to get the same exact python build/bitness and RTE version to test. So far it seems to work fine on my pc.



    ------------------------------
    Mike Jones
    Rocket Internal - All Brands
    ------------------------------



  • 3.  RE: Python Automation on Rocket - Session Manager 10.1.2 (32bit)

    Posted 03-31-2022 11:58
    Stabbing in the dark here - you think it would be worth sharing the the global.ini file? see if there is any differences there?

    ------------------------------
    Shaun Usher
    Mr
    Rocket Forum Shared Account
    ------------------------------



  • 4.  RE: Python Automation on Rocket - Session Manager 10.1.2 (32bit)

    ROCKETEER
    Posted 03-31-2022 12:30
    Sure, I'm thinking there has to be something in your setup that's throwing it off. Silly question but have you rebooted your pc to see if it works on a clean boot?

    ------------------------------
    Mike Jones
    Rocket Internal - All Brands
    ------------------------------



  • 5.  RE: Python Automation on Rocket - Session Manager 10.1.2 (32bit)

    Posted 04-01-2022 00:34
    Yeah, ran a restart after the version change.  Hoping something in the below stands out. 




    ------------------------------
    Shaun Usher
    Mr
    Rocket Forum Shared Account
    ------------------------------



  • 6.  RE: Python Automation on Rocket - Session Manager 10.1.2 (32bit)

    ROCKETEER
    Posted 04-04-2022 09:39
    I do not see anything special in the global.ini that could be throwing us off.

    Can you add the following line after the loading of the bz object and run the script again to tell me what it reports?

    print ('Bzo version: ' + bzo.Version);

    ------------------------------
    Mike Jones
    Rocket Internal - All Brands
    ------------------------------



  • 7.  RE: Python Automation on Rocket - Session Manager 10.1.2 (32bit)

    Posted 04-05-2022 01:06
    import sys
    import os
    import win32com.client
    import pythoncom


    >>> pythoncom.CoInitialize()
    >>> bzo = win32com.client.Dispatch("BZWhll.WhllObj")
    >>> bzo.Connect('');
    1
    >>> print ('Bzo version: ' + bzo.Version);
    Bzo version: BZWhll v10.1.2.4170

    ------------------------------
    Shaun Usher
    Mr
    Rocket Forum Shared Account
    ------------------------------



  • 8.  RE: Python Automation on Rocket - Session Manager 10.1.2 (32bit)

    ROCKETEER
    Posted 04-07-2022 16:20
    Shaun,

    Do you have BlueZone running inside some sort of application virtualization like App-V? I'm just trying to think of reasons why the COM object's Connect fails from another application but works fine when run directly from the BlueZone application.

    Mike

    ------------------------------
    Mike Jones
    Rocket Internal - All Brands
    ------------------------------



  • 9.  RE: Python Automation on Rocket - Session Manager 10.1.2 (32bit)

    Posted 04-11-2022 00:43
    Hi Mike, 

    Had to confirm with the team that loaded the software on our machines. Yes it is running inside APP-V.

    ------------------------------
    Shaun Usher
    Mr
    Rocket Forum Shared Account
    ------------------------------



  • 10.  RE: Python Automation on Rocket - Session Manager 10.1.2 (32bit)

    ROCKETEER
    Posted 05-31-2022 04:05
    Hello Shaun,

    When some process runs as App-V virtual application, it actually runs in the App-V sandbox, so this process will be isolated with any local process and the underlying operating system. This is the design of App-V.  In your case, bzmd.exe is the virtual application, python.exe is the local application. Similarly, if I write some VBScript to do similar thing to your python code and run it from local command line or double-click, it would fail too, but if run this script in BlueZone script host, it works.
    On the other hand, App-V provides several ways for a local application to run inside the virtual environment by some configurations, please look at here. By the way, to get the package id and version id of App-V package, you can run PowerShell cmdlet Get-AppvClientPackage on your local machine.

    Thanks,

    ------------------------------
    Zhi Li
    Rocket Software Inc
    ------------------------------