Note that there are some explanatory texts on larger screens.

plurals
  1. POhelp with winsys module
    primarykey
    data
    text
    <p>i am trying to use the WinSys module to get the event logs of my system(windows). But i dont know why the following code doesnt run:</p> <pre><code>from winsys import event_logs print len (event_logs.event_log ("Application")) </code></pre> <p>or </p> <pre><code>for logs in event_logs.event_logs(computer='.'): print logs </code></pre> <p>these yield errors</p> <pre><code>Traceback (most recent call last): File "Q:\8th sem\python\untitled1.py", line 10, in &lt;module&gt; event_logs.event_log("Application") File "C:\Python26\lib\site-packages\winsys\event_logs.py", line 376, in event_log return EventLog (computer, log_name) File "C:\Python26\lib\site-packages\winsys\event_logs.py", line 119, in __init__ key = registry.registry (self.REG_ROOT % self.computer).get_key (self.name) File "C:\Python26\lib\site-packages\winsys\registry.py", line 503, in registry return Registry.from_string (root, access=access, accept_value=accept_value) File "C:\Python26\lib\site-packages\winsys\registry.py", line 485, in from_string hKey, moniker, value = cls._from_string (string, access, accept_value) File "C:\Python26\lib\site-packages\winsys\registry.py", line 469, in _from_string hRoot = wrapped (win32api.RegConnectRegistry, computer, root) File "C:\Python26\lib\site-packages\winsys\exc.py", line 44, in _wrapped raise exception (errno, errctx, errmsg) winsys.registry.x_registry: (53, 'RegConnectRegistry', 'The network path was not found.') </code></pre> <p>Is there anything im missing?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload