-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Setting up the software #12
Comments
Hi @hentsd, |
Hey @danielsk78 , thanks for the quick response. |
Hi @hentsd, For the moment, use the Jupyyter notebooks. You can find them under "notebooks/tutorials". Try running the calibration first, and then you can start looking into the different available modules. We are also working on expanding the notebooks' documentation, so if any questions, don't hesitate to open new issues. |
Hey @danielsk78, ValueError Traceback (most recent call last) ~\open_AR_Sandbox\sandbox\projector\projector.py in init(self, calibprojector, use_panel, p_width, p_height, **kwargs) ~\open_AR_Sandbox\sandbox\projector\projector.py in create_panel(self) ~\Anaconda3\envs\sandbox-env\lib\site-packages\panel\pane\base.py in init(self, object, **params) ~\Anaconda3\envs\sandbox-env\lib\site-packages\panel\pane\plot.py in applies(cls, obj) ValueError: Matplotlib figure has no canvas and cannot be rendered. From there on I can't open the widget as well. I tried to figure it out using Google but got nowhere.. |
I could not recreate the error. So I just corrected what seems to be the error.
pn.extension() is repeated in several parts of the main code and modules. This may cause conflict with the css_classes that define the color in the Projector module. I made a partial change that hopefully will solve the problem. But I will look more in detail at how I am using this extension over the whole code. Which version of panel and matplotlib are you using? |
Big thanks for your time and for the help @danielsk78. I'm running panel 0.9.7 and matplotlib 3.3.2. ~\open_AR_Sandbox\sandbox\sensor\calibration_sensor.py in init(self, calibprojector, name, **kwargs) AttributeError: '_state' object has no attribute 'add_periodic_callback' And after that the widget box won't run as well. "widget = module.calibrate_sensor() NameError: name 'module' is not defined |
Hi @hentsd, found the problem. Thank you. please upgrade panel to version 0.10.2. Use pip install --upgrade panel. This should solve the compatibility problem.
I modified the requirements.txt and setup.py file with the correct version of panel, plus a small deprecation warning of matplotlib in the calibration_sensor.py script. |
Hey @danielsk78, getting further every time. NameError Traceback (most recent call last) ~\open_AR_Sandbox\sandbox\markers\markers_plotting.py in init(self, sensor, **kwargs) ~\open_AR_Sandbox\sandbox\markers\aruco.py in init(self, sensor, aruco_dict, **kwargs) NameError: name 'aruco' is not defined |
Hi @hentsd Please do: pip uninstall opencv-python pip install opencv-contrib-python |
@danielsk78, thanks, that was the issue in that case. ~\open_AR_Sandbox\sandbox\sensor\kinectV2.py in _stop(self) AttributeError: 'KinectV2' object has no attribute '_thread_status' and later in markerdetection_calibration i once again get: ModuleNotFoundError: No module named 'sandbox' after: |
2 comments:
import os,sys |
Got it. |
When trying to play around with the BuFaTa model, I once again get the same "ModuleNotFoundError: No module named 'sandbox'" error despite of changing the first lines to: |
This is a relative import. Is when you don't have the pip version installed. For the BuFaTa model use: If you want an easier solution, so you don't worry anymore about the relative import, use the setup.py provided for a local installation. (pip install -e .) |
Alrighty, huge thanks @danielsk78, seems like I've almost got it set up. AttributeError Traceback (most recent call last) AttributeError: 'TopoModule' object has no attribute 'widgets' |
The structure of the sandbox was recently changed to have consistency between modules. Ideally every module have or will have a function in the form of [ModuleName].show_widgets(). For your case just change the name of widgets() to show_widgets(). These "errors" are part of the documentation that we are currently working on. |
Hey @danielsk78, last time i added gempy module everything worked fine, today i'm getting AttributeError: module 'gempy' has no attribute 'widget_model_selector' and AttributeError Traceback (most recent call last) AttributeError: module 'gempy' has no attribute 'show_widgets' |
When exactly was that "last time"? You need to correctly initialize the GempyModule class to be able to show the widgets. |
The last time was 2 days ago, but seems like reinstalling gempy fixed the problem. |
Hey @danielsk78, thank you again for the thorough cooperation for getting the sandbox running. I'm just curious, what is your recommended PC hardware or what systems are you using yourself? Asking it because it's loading/updating time with i7-8750H (at 2.2GHz), RTX2060 (6GB) and 16GB of RAM is quite horrendous. |
Hi @hentsd, your system is more than enough! |
Hey @danielsk78,got it. |
Hey @hentsd, |
Discussion is now part of issue #3. Follow this conversation there. |
Hey. Since I'm quite new to programming then it is a bit confusing for me. I've set up the hardware and installed the software, but like, what now? What would the next steps be to get the program up and running?
The text was updated successfully, but these errors were encountered: