Python Forum
using WinRt module in python script
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
using WinRt module in python script
#1
I want to enable sim pin using WinRT API MobileBroadbandPin. I have imported the API in my script but it is giving an error while initializing.

from winrt.windows.networking.networkoperators import MobileBroadbandPin

mobileBroadbandPinObj = MobileBroadbandPin()
Error:
Error:
Traceback (most recent call last): File "C:/Python38/pinOperation.py", line 3, in <module> mobileBroadbandPinObj = MobileBroadbandPin() TypeError: MobileBroadbandPin is not activatable
buran write Apr-23-2021, 05:40 AM:
Please, use proper tags when post code, traceback, output, etc. This time I have added tags for you.
See BBcode help for more info.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Is there a *.bat DOS batch script to *.py Python Script converter? pstein 3 3,293 Jun-29-2023, 11:57 AM
Last Post: gologica
  No module named '_cffi_backend' error with executable not with python script stephanh 2 5,682 Nov-25-2021, 06:52 AM
Last Post: stephanh
  python/winrt Bluetooth.GenericAttributProfile CreateAsync(GUID) method throws Not Imp pbvinoth 0 2,147 Jul-08-2020, 04:27 AM
Last Post: pbvinoth
  How to kill a bash script running as root from a python script? jc_lafleur 4 5,942 Jun-26-2020, 10:50 PM
Last Post: jc_lafleur
  crontab on RHEL7 not calling python script wrapped in shell script benthomson 1 2,316 May-28-2020, 05:27 PM
Last Post: micseydel
  Is there any way to convert a python script (with Tkinter module), to a .exe (Windows moste 3 4,019 May-12-2019, 12:02 PM
Last Post: snippsat
  Package python script which has different libraries as a single executable or script tej7gandhi 1 2,640 May-11-2019, 08:12 PM
Last Post: keames
  How to modify __init__ of built-in module directly from the script? sonicblind 5 3,577 Jul-31-2018, 12:48 PM
Last Post: sonicblind
  How to run python script which has dependent python script in another folder? PrateekG 1 3,161 May-23-2018, 04:50 PM
Last Post: snippsat
  How to call one python script and use its output in another python script lravikumarvsp 3 32,439 May-16-2018, 02:08 AM
Last Post: lravikumarvsp

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020