You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
can't event import your python package successfully
from prismacloud.api import pc_api
Expected behavior
should import your package successfully
Current behavior
Traceback (most recent call last):
File "c:\code\pl-docker-infrastructure\production\aws\PrismaAutomation\PrismaTest.py", line 2, in
from prismacloud.api import pc_api
File "C:\code\pl-docker-infrastructure.venv\lib\site-packages\prismacloud\api_init_.py", line 5, in
from .pc_lib_api import PrismaCloudAPI
File "C:\code\pl-docker-infrastructure.venv\lib\site-packages\prismacloud\api\pc_lib_api.py", line 9, in
from .pc_lib_utility import PrismaCloudUtility
File "C:\code\pl-docker-infrastructure.venv\lib\site-packages\prismacloud\api\pc_lib_utility.py", line 26, in
class PrismaCloudUtility():
File "C:\code\pl-docker-infrastructure.venv\lib\site-packages\prismacloud\api\pc_lib_utility.py", line 29, in PrismaCloudUtility
CONFIG_DIRECTORY = os.path.join(os.environ['HOME'], '.prismacloud')
File "C:\Program Files\Python39\lib\os.py", line 679, in getitem
raise KeyError(key) from None
KeyError: 'HOME'
Possible solution
Steps to reproduce
create a python file
import your package from prismacloud.api import pc_api
run the script
Screenshots
Context
Your Environment
Version used:
Environment name and version (e.g. Chrome 59, node.js 5.4, python 3.7.3):
Operating System and version (desktop or mobile):
Link to your project:
The text was updated successfully, but these errors were encountered:
Describe the bug
can't event import your python package successfully
from prismacloud.api import pc_api
Expected behavior
should import your package successfully
Current behavior
Traceback (most recent call last):
File "c:\code\pl-docker-infrastructure\production\aws\PrismaAutomation\PrismaTest.py", line 2, in
from prismacloud.api import pc_api
File "C:\code\pl-docker-infrastructure.venv\lib\site-packages\prismacloud\api_init_.py", line 5, in
from .pc_lib_api import PrismaCloudAPI
File "C:\code\pl-docker-infrastructure.venv\lib\site-packages\prismacloud\api\pc_lib_api.py", line 9, in
from .pc_lib_utility import PrismaCloudUtility
File "C:\code\pl-docker-infrastructure.venv\lib\site-packages\prismacloud\api\pc_lib_utility.py", line 26, in
class PrismaCloudUtility():
File "C:\code\pl-docker-infrastructure.venv\lib\site-packages\prismacloud\api\pc_lib_utility.py", line 29, in PrismaCloudUtility
CONFIG_DIRECTORY = os.path.join(os.environ['HOME'], '.prismacloud')
File "C:\Program Files\Python39\lib\os.py", line 679, in getitem
raise KeyError(key) from None
KeyError: 'HOME'
Possible solution
Steps to reproduce
Screenshots
Context
Your Environment
The text was updated successfully, but these errors were encountered: