Coder Social home page Coder Social logo

Unable to trigger VNC plugin/hook about see HOT 3 CLOSED

jacob20 avatar jacob20 commented on May 22, 2024
Unable to trigger VNC plugin/hook

from see.

Comments (3)

noxdafox avatar noxdafox commented on May 22, 2024

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.

jacob20 avatar jacob20 commented on May 22, 2024

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.

noxdafox avatar noxdafox commented on May 22, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.