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
------------------------------
Original Message:
Sent: 04-11-2022 00:42
From: Shaun Usher
Subject: Python Automation on Rocket - Session Manager 10.1.2 (32bit)
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
Original Message:
Sent: 04-07-2022 16:20
From: Mike Jones
Subject: Python Automation on Rocket - Session Manager 10.1.2 (32bit)
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
Original Message:
Sent: 04-05-2022 01:06
From: Shaun Usher
Subject: Python Automation on Rocket - Session Manager 10.1.2 (32bit)
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
Original Message:
Sent: 04-04-2022 09:39
From: Mike Jones
Subject: Python Automation on Rocket - Session Manager 10.1.2 (32bit)
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
Original Message:
Sent: 04-01-2022 00:34
From: Shaun Usher
Subject: Python Automation on Rocket - Session Manager 10.1.2 (32bit)
Yeah, ran a restart after the version change. Hoping something in the below stands out.
------------------------------
Shaun Usher
Mr
Rocket Forum Shared Account
Original Message:
Sent: 03-31-2022 12:30
From: Mike Jones
Subject: Python Automation on Rocket - Session Manager 10.1.2 (32bit)
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
Original Message:
Sent: 03-31-2022 11:58
From: Shaun Usher
Subject: Python Automation on Rocket - Session Manager 10.1.2 (32bit)
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
Original Message:
Sent: 03-31-2022 10:50
From: Mike Jones
Subject: Python Automation on Rocket - Session Manager 10.1.2 (32bit)
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
Original Message:
Sent: 03-31-2022 09:56
From: Shaun Usher
Subject: Python Automation on Rocket - Session Manager 10.1.2 (32bit)
Below is a screen shot of session Manager
------------------------------
Shaun Usher
Mr
Rocket Forum Shared Account
------------------------------