Comments (3)
Hello,
The HookManager
is responsible for loading the plugins. In case of a plugin failing to initialize, it will log the actual error. To do so, you need to enable logging in your script.
Just add the following code at the beginning of the sandbox.py
script.
import logging
logging.BasicConfig()
You should then see the actual error triggered when trying to initialize the VNC plugin.
My bet is the plugin cannot be imported by the Python interpreter. In that case, you can fix it by adding your plugin path to the PYTHONPATH
environment variable.
from see.
Thanks for the prompt response! As suggested, I've added logging
DEBUG:see.environment.Environment:Allocating environment.
DEBUG:see.hooks.HookManager:Loading vnc.VNCHook hook.
ERROR:see.hooks.HookManager:Hook vnc.VNCHook initialization failure, error: super() takes at least 1 argument (0 given).
Traceback (most recent call last):
File "build/bdist.linux-x86_64/egg/see/hooks.py", line 70, in _load_hook
context))
File "<path>/vnc.py", line 20, in __init__
super().__init__(parameters)
TypeError: super() takes at least 1 argument (0 given)
DEBUG:see.environment.Environment:Environment successfully allocated.
Google led me to this. Taking reference, I modified line 20 to super(VNCHook, self).__init__(parameters)
and the VNC plugin is now able to be loaded and initialized.
Should have noticed that I was running python2 instead of the required 3 in the first place haha
Once again, thank you for the help!
from see.
The tutorial was written in Python 3 so some adjustment might be necessary to run it with Python 2.
Glad you solved the issue. I will close this ticket.
from see.
Related Issues (16)
- Provide tutorial in documentation HOT 1
- Add Xen hypervisor support
- Add filesystem forensics example plugin HOT 1
- Add guest command execution example plugin HOT 1
- No network resource in context if not specified in its JSON configuration HOT 2
- Execution is halted if a Hook with no name is provided HOT 1
- Resource leak when the domain XML is not valid HOT 1
- Plugin based disk image manager HOT 4
- Network: address starvation when too many instances are started at the same time HOT 1
- AttributeError when accessing uninitialized resources HOT 1
- SEE setup.py is packaging the plugins HOT 4
- Feature: Debug mode logging signals to handler calls
- 'NoneType' object has no attribute 'get' in Dummy provider HOT 7
- Deprecated qemu-img convert option "-s"
- Proposing a PR to fix a few small typos
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from see.