Code Monkey home page Code Monkey logo

pymodi's People

Contributors

94929 avatar devkoriel avatar funkywoong avatar imgbotapp avatar k2sebeom avatar patrick0331 avatar pyup-bot avatar winnieson avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

pymodi's Issues

Cannot retrieve a correct property value of an input module

  • pyMODI version: 0.7.0
  • Python version: 3.7
  • Operating System: Windows 10

Description

A single call of getter methods of the input modules does not return the correct state of the module.

What I Expected

In an initial call of a method of an input module, the module should return the correct property value.

I dont' like rules

Feature Description

Motivation

Why Do We Need This

Alternatives

Additional Context

No MODI network module connected

  • pyMODI version: 0.5.0 (2018-08-22)
  • Python version: Python 2.7.15 (v2.7.15:ca079a3ea3, Apr 30 2018, 16:30:26) [MSC v.1500 64 bit (AMD64)] on win32
  • Operating System: Win10

Description

Even though update the network module's FW using MODI Studio 1.3, modi.MODI() cannot find the network module. However, when give the COM port name as a parameter of MODI(), then can start talk w/ network module.

What I Did

import modi
bundle = modi.MODI()
Traceback (most recent call last):
File "", line 1, in
File "c:\Python27\lib\site-packages\modi\modi.py", line 55, in init
raise serial.SerialException("No MODI network module connected.")
serial.serialutil.SerialException: No MODI network module connected.
>>> bundle = modi.MODI("COM10")
bundle.modules
()
bundle.modules
(<modi.module.display.Display object at 0x0000000005E1B6D8>, <modi.module.env.Env object at 0x0000000005E1B550>, <modi.module.button.Button object at
0x0000000005E1B5C0>, <modi.module.led.Led object at 0x0000000005E1B4A8>, <modi.module.speaker.Speaker object at 0x0000000005E1B358>)

Processes is not being terminated properly

  • pyMODI version: 0.7.1 / develop
  • Python version: 3.7.5
  • Operating System: Windows 10

Description

When I executed pyMODI in Windows 10 OS, the script wasn't terminated properly.
I just thought this might occur because of problem related in multiprocessing module.
I confirmed that a process named 'self.__task' have already been stopped before the script over.
I attached the error messages.

(modi_ai) C:\Users\funkywoong\Desktop\MODI_AI\temp> python test.py
Start initializing connected MODI modules
MODI modules are initialized!
DONE
Exception ignored in: <function SerTask.__del__ at 0x0000019AD1DA0E58>
Traceback (most recent call last):
  File "C:\Users\funkywoong\AppData\Local\Continuum\anaconda3\envs\modi_ai\lib\modi\_ser_task.py", line 21, in __del__
  File "C:\Users\funkywoong\AppData\Local\Continuum\anaconda3\envs\modi_ai\lib\modi\_ser_task.py", line 51, in _close_conn
AttributeError: 'NoneType' object has no attribute 'close'

What I Did

Deleted '__del__()' magic method of 'ser_task.py' to prevent calling close() method.

IR module returns opposite distance value

  • pyMODI version: 0.7.1
  • Python version: 3.7.4
  • Operating System: macOS Catalina 10.15.3

Description

"ir.get_distance()" returns greater value when object gets closer.

What I Did

if ir.get_distance() > 30: led.set_on()

What I Expected

Returned distance value should be less when object gets closer.

Initializing pymodi gives SerialException

Issue Description

Connect to the network module via serial(usb) through my linux machine, however it gives me SerielException error. I think it's due that I use linux machine, because it works just fine in the Windows OS.

What I Did

Use linux, and connect to modi network module through usb.

school/coe202/playground  13svenv ❯ python -m modi --debug
Running PyMODI (v1.2.0)
>>> bundle = modi.MODI()
Traceback (most recent call last):
  File "/home/muradb/.pyenv/versions/3.8.14/lib/python3.8/runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/home/muradb/.pyenv/versions/3.8.14/lib/python3.8/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/home/muradb/school/coe202/playground/venv/lib/python3.8/site-packages/modi/__main__.py", line 183, in <module>
    bundle = Debugger()
  File "/home/muradb/school/coe202/playground/venv/lib/python3.8/site-packages/modi/util/debugging_util.py", line 30, in __init__
    super().__init__(verbose=True, *args, **kwargs)
  File "/home/muradb/school/coe202/playground/venv/lib/python3.8/site-packages/modi/modi.py", line 51, in __init__
    self._exe_thrd = ExeThrd(
  File "/home/muradb/school/coe202/playground/venv/lib/python3.8/site-packages/modi/_exe_thrd.py", line 13, in __init__
    conn_task.open_conn()
  File "/home/muradb/school/coe202/playground/venv/lib/python3.8/site-packages/modi/task/ser_task.py", line 49, in open_conn
    raise SerialException("No MODI port is available now")
serial.serialutil.SerialException: No MODI port is available now

Further information:

school/coe202/playground venv ❯ lsusb           
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 002: ID 8087:0029 Intel Corp. AX200 Bluetooth
Bus 003 Device 005: ID 2fde:0002 LUXROBO MODI Network Module
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 002: ID 322e:202c Sonix Technology Co., Ltd. USB2.0 HD UVC WebCam
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

as you can see, the OS detects network module, however pymodi cannot.

Expected Behavior

Connect just fine

System Info

  • PyMODI version: latest develop branch and v1.2.0
  • Python version: 3.8
  • Operating System: Pop OS 22.04 LTS

[Bug Report] LED module's input range

Issue Description

While running "-t" for the tutorial, Lesson 3 throws an error from LED module's color setting.

What I Did


                     Lesson 3: Controlling modules

Now you know how to access individual modules. Let's make an object named
"button" as well for your button module. You know how to do it (You have the
modi object, "bundle").

button = bundle.button[0]
Try again!
button = bundle.buttons[0]

Perfect. With your button module and led module, we can either get data from
the module or send command to the module.

"pressed" is a property method of a button module which returns whether the
button is pressed or not (i.e. press state).
Check the press state of the button by typing button.pressed

button.pressed
False

Now, see if the same command returns True when pressing the button.

Write below code precisely.

button.pressed

button.pressed
False

Good. Now let's send a command to the led module. Led's rgb is a property or
setter method of an led module.
Let there be light by typing led.rgb = 0, 0, 255

led.rgb = 0, 0, 100
Write below code precisely.
led.rgb = 0, 0, 255

led.rgb = 0, 0, 254
Write below code precisely.
led.rgb = 0, 0, 255

led.rgb = 0, 0, 255
Traceback (most recent call last):
File "D:\Anaconda\envs\pymodi\lib\runpy.py", line 193, in _run_module_as_main
"main", mod_spec)
File "D:\Anaconda\envs\pymodi\lib\runpy.py", line 85, in run_code
exec(code, run_globals)
File "C:\Users\Sean Kim\AppData\Roaming\Python\Python36\site-packages\modi_main
.py", line 89, in
pymodi_tutor.run_introduction()
File "C:\Users\Sean Kim\AppData\Roaming\Python\Python36\site-packages\modi\util\tutorial_util.py", line 113, in run_introduction
run_selected_lesson()
File "C:\Users\Sean Kim\AppData\Roaming\Python\Python36\site-packages\modi\util\tutorial_util.py", line 213, in run_lesson2
self.run_lesson3()
File "C:\Users\Sean Kim\AppData\Roaming\Python\Python36\site-packages\modi\util\tutorial_util.py", line 273, in run_lesson3
exec(response)
File "", line 1, in
File "C:\Users\Sean Kim\AppData\Roaming\Python\Python36\site-packages\modi\module\output_module\output_module.py", line 98, in set_property
raise ValueError(f"{setter.name} "
ValueError: rgb should be in range 0~100

Expected Behavior

Accept the RGB in range of 0 to 255, then show the right color

System Info

  • PyMODI version: 1.2.0
  • Python version: 3.6
  • Operating System: Windows

You can obtain the pymodi version with:

python -c "import modi"

You can obtain the Python version with:

python --version

[Bug Report]

Issue Description

Fail to install pymodi on my Win10.

ERROR: Failed building wheel for bleak-winrt
Failed to build bleak-winrt
ERROR: Could not build wheels for bleak-winrt which use PEP 517 and cannot be installed directly

What I Did

(pymodi) D:\pymodi>python -m pip install pymodi --user --upgrade
Collecting pymodi
Downloading pymodi-1.2.0-py2.py3-none-any.whl (1.6 MB)
|████████████████████████████████| 1.6 MB 3.3 MB/s
Collecting pyserial==3.5
Using cached pyserial-3.5-py2.py3-none-any.whl (90 kB)
Collecting websocket-client==1.2.3
Downloading websocket_client-1.2.3-py3-none-any.whl (53 kB)
|████████████████████████████████| 53 kB 3.8 MB/s
Collecting nest-asyncio==1.5.4
Downloading nest_asyncio-1.5.4-py3-none-any.whl (5.1 kB)
Collecting bleak==0.13.0
Downloading bleak-0.13.0-py2.py3-none-any.whl (111 kB)
|████████████████████████████████| 111 kB 3.3 MB/s
Collecting bleak-winrt>=1.0.1
Downloading bleak-winrt-1.1.1.tar.gz (4.0 MB)
|████████████████████████████████| 4.0 MB 6.4 MB/s
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing wheel metadata ... done
Building wheels for collected packages: bleak-winrt
Building wheel for bleak-winrt (PEP 517) ... error
ERROR: Command errored out with exit status 1:
command: 'D:\Anaconda\envs\pymodi\python.exe' 'D:\Anaconda\envs\pymodi\lib\site-packages\pip_vendor\pep517\in_process_in_process.py' build_wheel 'C:\Users\SEANKI1\AppData\Local\Temp\tmpm8mxb6uq'
cwd: C:\Users\SEANKI
1\AppData\Local\Temp\pip-install-_9rp72yw\bleak-winrt_3f66a56593cb454e893404859976ced4
Complete output (332 lines):
Not searching for unused variables given on the command line.
-- The C compiler identification is unknown
CMake Error at CMakeLists.txt:3 (ENABLE_LANGUAGE):
The CMAKE_C_COMPILER:

  cl

is not a full path and was not found in the PATH.

Tell CMake where to find the compiler by setting either the environment
variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to
the compiler, or to the compiler name if it is in the PATH.

-- Configuring incomplete, errors occurred!
See also "C:/Users/Sean Kim/AppData/Local/Temp/pip-install-_9rp72yw/bleak-winrt_3f66a56593cb454e893404859976ced4/_cmake_test_compile/build/CMakeFiles/CMakeOutput.log".
See also "C:/Users/Sean Kim/AppData/Local/Temp/pip-install-_9rp72yw/bleak-winrt_3f66a56593cb454e893404859976ced4/_cmake_test_compile/build/CMakeFiles/CMakeError.log".
Not searching for unused variables given on the command line.
CMake Error at CMakeLists.txt:2 (PROJECT):
Generator

  Visual Studio 17 2022

could not find any instance of Visual Studio.

-- Configuring incomplete, errors occurred!
See also "C:/Users/Sean Kim/AppData/Local/Temp/pip-install-_9rp72yw/bleak-winrt_3f66a56593cb454e893404859976ced4/_cmake_test_compile/build/CMakeFiles/CMakeOutput.log".
Not searching for unused variables given on the command line.
-- The C compiler identification is unknown
CMake Error at CMakeLists.txt:3 (ENABLE_LANGUAGE):
The CMAKE_C_COMPILER:

  cl

is not a full path and was not found in the PATH.

Tell CMake where to find the compiler by setting either the environment
variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to
the compiler, or to the compiler name if it is in the PATH.

-- Configuring incomplete, errors occurred!
See also "C:/Users/Sean Kim/AppData/Local/Temp/pip-install-_9rp72yw/bleak-winrt_3f66a56593cb454e893404859976ced4/_cmake_test_compile/build/CMakeFiles/CMakeOutput.log".
See also "C:/Users/Sean Kim/AppData/Local/Temp/pip-install-_9rp72yw/bleak-winrt_3f66a56593cb454e893404859976ced4/_cmake_test_compile/build/CMakeFiles/CMakeError.log".
Not searching for unused variables given on the command line.
CMake Error at CMakeLists.txt:2 (PROJECT):
Generator

  Visual Studio 16 2019

could not find any instance of Visual Studio.

-- Configuring incomplete, errors occurred!
See also "C:/Users/Sean Kim/AppData/Local/Temp/pip-install-_9rp72yw/bleak-winrt_3f66a56593cb454e893404859976ced4/_cmake_test_compile/build/CMakeFiles/CMakeOutput.log".
Not searching for unused variables given on the command line.
-- The C compiler identification is unknown
CMake Error at CMakeLists.txt:3 (ENABLE_LANGUAGE):
The CMAKE_C_COMPILER:

  cl

is not a full path and was not found in the PATH.

Tell CMake where to find the compiler by setting either the environment
variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to
the compiler, or to the compiler name if it is in the PATH.

-- Configuring incomplete, errors occurred!
See also "C:/Users/Sean Kim/AppData/Local/Temp/pip-install-_9rp72yw/bleak-winrt_3f66a56593cb454e893404859976ced4/_cmake_test_compile/build/CMakeFiles/CMakeOutput.log".
See also "C:/Users/Sean Kim/AppData/Local/Temp/pip-install-_9rp72yw/bleak-winrt_3f66a56593cb454e893404859976ced4/_cmake_test_compile/build/CMakeFiles/CMakeError.log".
Not searching for unused variables given on the command line.
CMake Error at CMakeLists.txt:2 (PROJECT):
Generator

  Visual Studio 15 2017

could not find any instance of Visual Studio.

-- Configuring incomplete, errors occurred!
See also "C:/Users/Sean Kim/AppData/Local/Temp/pip-install-_9rp72yw/bleak-winrt_3f66a56593cb454e893404859976ced4/_cmake_test_compile/build/CMakeFiles/CMakeOutput.log".
Not searching for unused variables given on the command line.
CMake Error at CMakeLists.txt:2 (PROJECT):
Running

 'nmake' '-?'

failed with:

 The system cannot find the file specified

-- Configuring incomplete, errors occurred!
See also "C:/Users/Sean Kim/AppData/Local/Temp/pip-install-_9rp72yw/bleak-winrt_3f66a56593cb454e893404859976ced4/_cmake_test_compile/build/CMakeFiles/CMakeOutput.log".
Not searching for unused variables given on the command line.
CMake Error at CMakeLists.txt:2 (PROJECT):
Running

 'nmake' '-?'

failed with:

 The system cannot find the file specified

-- Configuring incomplete, errors occurred!
See also "C:/Users/Sean Kim/AppData/Local/Temp/pip-install-_9rp72yw/bleak-winrt_3f66a56593cb454e893404859976ced4/_cmake_test_compile/build/CMakeFiles/CMakeOutput.log".
Not searching for unused variables given on the command line.
CMake Error at CMakeLists.txt:2 (PROJECT):
Running

 'nmake' '-?'

failed with:

 The system cannot find the file specified

-- Configuring incomplete, errors occurred!
See also "C:/Users/Sean Kim/AppData/Local/Temp/pip-install-_9rp72yw/bleak-winrt_3f66a56593cb454e893404859976ced4/_cmake_test_compile/build/CMakeFiles/CMakeOutput.log".


-- Trying "Ninja (Visual Studio 17 2022 x64 v143)" generator






--







-- Trying "Ninja (Visual Studio 17 2022 x64 v143)" generator - failure


-- Trying "Visual Studio 17 2022 x64 v143" generator






--







-- Trying "Visual Studio 17 2022 x64 v143" generator - failure


-- Trying "Ninja (Visual Studio 16 2019 x64 v142)" generator






--







-- Trying "Ninja (Visual Studio 16 2019 x64 v142)" generator - failure


-- Trying "Visual Studio 16 2019 x64 v142" generator






--







-- Trying "Visual Studio 16 2019 x64 v142" generator - failure


-- Trying "Ninja (Visual Studio 15 2017 x64 v141)" generator






--







-- Trying "Ninja (Visual Studio 15 2017 x64 v141)" generator - failure


-- Trying "Visual Studio 15 2017 x64 v141" generator






--







-- Trying "Visual Studio 15 2017 x64 v141" generator - failure


-- Trying "NMake Makefiles (Visual Studio 17 2022 x64 v143)" generator






--







-- Trying "NMake Makefiles (Visual Studio 17 2022 x64 v143)" generator - failure


-- Trying "NMake Makefiles (Visual Studio 16 2019 x64 v142)" generator






--







-- Trying "NMake Makefiles (Visual Studio 16 2019 x64 v142)" generator - failure


-- Trying "NMake Makefiles (Visual Studio 15 2017 x64 v141)" generator






--







-- Trying "NMake Makefiles (Visual Studio 15 2017 x64 v141)" generator - failure


scikit-build could not get a working generator for your system. Aborting build.

Building windows wheels for Python 3.6 requires Microsoft Visual Studio 2022.
Get it with "Visual Studio 2017":

https://visualstudio.microsoft.com/vs/

Or with "Visual Studio 2019":

https://visualstudio.microsoft.com/vs/

Or with "Visual Studio 2022":

https://visualstudio.microsoft.com/vs/


ERROR: Failed building wheel for bleak-winrt
Failed to build bleak-winrt
ERROR: Could not build wheels for bleak-winrt which use PEP 517 and cannot be installed directly

[Bug Report]

Issue Description

Describe what you were trying to get done.
Tell us what happened, what went wrong, and what you expected to happen.

What I Did

Provide a reproducible test case that is the bare minimum necessary to generate the problem.

Paste the command(s) you ran and the output.
If there was a crash, please include the traceback here.

Expected Behavior

System Info

  • pymodi version:
  • Python version:
  • Operating System:

You can obtain the pymodi version with:
python -c "import modi; print(modi.__version__)"

You can obtain the Python version with:
python --version

Additional Context

[Bug Report]

Issue Description

"print_topology_map" throws error.

What I Did

(pymodi) C:\Users\Sean Kim>python
Python 3.6.13 |Anaconda, Inc.| (default, Mar 16 2021, 11:37:27) [MSC v.1916 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.

import modi
Running PyMODI (v1.2.0)
bundle = modi.MODI()
Initiating serial connection...
Serial is open at "COM13 - USB Serial Device (COM13)"
Start initializing connected MODI modules
Button (2793) has been connected!
Led (1296) has been connected!
MODI init timeout over. Check your module connection.
MODI modules are initialized!

dir(bundle)
['_MODI__init_logger', '_MODI__init_task', '_MODI__wait_user_code_check', 'call', 'class', 'delattr', 'dict', 'dir', 'doc', 'eq', 'format', 'ge', 'getattribute', 'gt', 'hash', 'init', 'init_subclass', 'le', 'lt', 'module', 'ne', 'new', 'reduce', 'reduce_ex', 'repr', 'setattr', 'sizeof', 'str', 'subclasshook', 'weakref', '_conn', '_exe_thrd', '_modules', '_topology_data', '_topology_manager', 'buttons', 'close', 'dials', 'displays', 'envs', 'gyros', 'irs', 'leds', 'mics', 'modules', 'motors', 'network_uuids', 'networks', 'open', 'print_topology_map', 'recv', 'send', 'speakers', 'ultrasonics']
bundle.print_topology_map()
<>
==============================
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\Sean Kim\AppData\Roaming\Python\Python36\site-packages\modi\modi.py", line 187, in print_topology_map
self._topology_manager.print_topology_map(print_id)
File "C:\Users\Sean Kim\AppData\Roaming\Python\Python36\site-packages\modi\util\topology_util.py", line 254, in print_topology_map
tp_map.print_map(print_id)
File "C:\Users\Sean Kim\AppData\Roaming\Python\Python36\site-packages\modi\util\topology_util.py", line 201, in print_map
line += self.__compose_line(curr_elem, padding, print_id)
File "C:\Users\Sean Kim\AppData\Roaming\Python\Python36\site-packages\modi\util\topology_util.py", line 170, in __compose_line
self._modules, module_type.lower()
AttributeError: 'NoneType' object has no attribute 'lower'

Expected Behavior

Tell us what you expected to happen.

System Info

  • PyMODI version: 1.2.0
  • Python version: 3.6
  • Operating System: Win10

You can obtain the pymodi version with:

python -c "import modi"

You can obtain the Python version with:

python --version

Importing modi raises a RuntimeError

  • pyMODI version: 0.7.1
  • Python version: 3.7.4
  • Operating System: macOS Catalina

Description

When I import modi, it raises a RuntimeError.
One solution I got from Stackoverflow was to write the following code before I import modi.

import matplotlib
matplotlib.use('TkAgg')
import matplotlib.pyplot as plt

What I Did

import modi

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/dajungpark/Repos/pyMODI/modi/__init__.py", line 3, in <module>
    from modi.modi import MODI
  File "/Users/dajungpark/Repos/pyMODI/modi/modi.py", line 9, in <module>
    import matplotlib.pyplot as plt
  File "/Users/dajungpark/opt/anaconda3/lib/python3.7/site-packages/matplotlib/pyplot.py", line 115, in <module>
    _backend_mod, new_figure_manager, draw_if_interactive, _show = pylab_setup()
  File "/Users/dajungpark/opt/anaconda3/lib/python3.7/site-packages/matplotlib/backends/__init__.py", line 63, in pylab_setup
    [backend_name], 0)
  File "/Users/dajungpark/opt/anaconda3/lib/python3.7/site-packages/matplotlib/backends/backend_macosx.py", line 17, in <module>
    from matplotlib.backends import _macosx
RuntimeError: Python is not installed as a framework. The Mac OS X backend will not be able to function correctly if Python is not installed as a framework. See the Python documentation for more information on installing Python as a framework on Mac OS X. Please either reinstall Python as a framework, or try one of the other backends. If you are using (Ana)Conda please install python.app and replace the use of 'python' with 'pythonw'. See 'Working with Matplotlib on OSX' in the Matplotlib FAQ for more information.

[Feature Request] Automatically sync usage examples in a new release

Feature Description

Automatically update example codes living in examples/basic_usage_examples/, when a new release is created.
The examples to be updated should refer to the code snippets from modi/util/usage.py.

Motivation

I forgot to update the usage examples once, then realized this might happen again.

Why Do We Need This

The maintainer does not need to take care of the usage_examples to be updated.

Alternatives

If not, maintainer should check if codes under the path are updated.

Additional Context

Initial Update from pyup-bot

The bot created this issue to inform you that pyup.io has been set up on this repo.
Once you have closed it, the bot will open pull requests for updates as soon as they are available.

A simple python script using pymodi takes up too much CPU

  • pyMODI version: 0.7.0
  • Python version: 3.7.4
  • Operating System: macOS

Description

I was trying to get acceleration values from a gyro module.
Ran a simple python script utilizing the gyro module but the CPU rate went up to 70%.
It does not affect the performance of MODI modules but it may when the user script gets complicated.

What I Did

I ran the python script below.

import modi
import time

if __name__ == '__main__':
    bundle = modi.MODI()
    button = modi.buttons[0]
    gyro = modi.gyros[0]

    while True:
        if button.get_clicked():
            break

        print(
            gyro.get_acceleration_x(), 
            gyro.get_acceleration_y(), 
            gyro.get_acceleration_z()
        )

[Bug Report] GUI Debugger is not working

Issue Description

Cannot run GUI debugger on my machine.

What I Did

I tried running the GUI debugger utility:

$ python -m modi --gui

Expected Behavior

A GUI debugger running seamlessly.

Actual Behavior

The debugger erroneously halts with the output below:

Running PyMODI (v1.0.0)
>>> bundle = modi.MODI()
2020-09-22 20:04:31.777 python[59256:7662991] WARNING: NSWindow drag regions should only be invalidated on the Main Thread! This will throw an exception in the future. Called from (
        0   AppKit                              0x00007fff329b6629 -[NSWindow(NSWindow_Theme) _postWindowNeedsToResetDragMarginsUnlessPostingDisabled] + 371
        1   AppKit                              0x00007fff3299e052 -[NSWindow _initContent:styleMask:backing:defer:contentView:] + 1416
        2   AppKit                              0x00007fff3299dac3 -[NSWindow initWithContentRect:styleMask:backing:defer:] + 42
        3   libtk8.6.dylib                      0x0000000107794426 TkMacOSXMakeRealWindowExist + 742
        4   libtk8.6.dylib                      0x000000010779ac04 ApplyWindowAttributeFlagChanges + 196
        5   libtk8.6.dylib                      0x00000001077988a5 Tk_WmObjCmd + 14293
        6   libtcl8.6.dylib                     0x000000010752eb26 Tcl_EvalObjv + 342
        7   _tkinter.cpython-36m-darwin.so      0x0000000107501582 Tkapp_Call + 210
        8   python                              0x0000000107093e48 _PyCFunction_FastCallDict + 200
        9   python                              0x000000010716942f call_function + 143
        10  python                              0x0000000107166f83 _PyEval_EvalFrameDefault + 46819
        11  python                              0x000000010715a6e9 _PyEval_EvalCodeWithName + 425
        12  python                              0x000000010716988a fast_function + 362
        13  python                              0x000000010716948c call_function + 236
        14  python                              0x0000000107166f83 _PyEval_EvalFrameDefault + 46819
        15  python                              0x00000001071697dc fast_function + 188
        16  python                              0x000000010716948c call_function + 236
        17  python                              0x0000000107166f83 _PyEval_EvalFrameDefault + 46819
        18  python                              0x00000001071697dc fast_function + 188
        19  python                              0x000000010716948c call_function + 236
        20  python                              0x0000000107166f83 _PyEval_EvalFrameDefault + 46819
        21  python                              0x000000010716a012 _PyFunction_FastCallDict + 178
        22  python                              0x0000000107012db0 _PyObject_FastCallDict + 320
        23  python                              0x000000010703a3f8 method_call + 136
        24  python                              0x000000010701a3ae PyObject_Call + 62
        25  python                              0x00000001071ddd8a t_bootstrap + 122
        26  python                              0x00000001071d60f7 pythread_wrapper + 39
        27  libsystem_pthread.dylib             0x00007fff6f987109 _pthread_start + 148
        28  libsystem_pthread.dylib             0x00007fff6f982b8b thread_start + 15
)

System Info

  • pymodi version: 1.0.0
  • Python version: 3.6.10
  • Operating System: macOS

Code blocks not showing on Read the Docs site

Issue Description

Some pages of the PyMODI Read the Docs site are missing code blocks. The problem is only on Read the Docs. I checked the same pages on GitHub and the code blocks were displayed identically for all 4 pages. There is some difference in how the code blocks are implemented in each file, so when the .rst files are generated, some of those code blocks are lost in the process.

Read the Docs - Missing code blocks:

https://pymodi.readthedocs.io/en/master/readme.html
https://pymodi.readthedocs.io/en/master/contributing.html

Read the Docs - OK code blocks

https://pymodi.readthedocs.io/en/master/usage.html
https://pymodi.readthedocs.io/en/master/installation.html

What I Did

Expected Behavior

System Info

Read the Docs website, GitHub website

You can obtain the pymodi version with:
python -c "import modi; print(modi.__version__)"

You can obtain the Python version with:
python --version

Additional Context

[Bug Report] CAN does not work

Issue Description

Describe what you were trying to get done.
Tell us what happened, what went wrong, and what you expected to happen.

What I Did

Provide a reproducible test case that is the bare minimum necessary to generate the problem.

Paste the command(s) you ran and the output.
If there was a crash, please include the traceback here.

Expected Behavior

System Info

  • pymodi version:
  • Python version:
  • Operating System:

You can obtain the pymodi version with:
python -c "import modi; print(modi.__version__)"

You can obtain the Python version with:
python --version

Additional Context

[Feature Request] Refactor UML Diagram Creation Process

Feature Description

Make UML creation automate, currently the maintainer needs to build and update the uml-diagram of modi/ code.

Motivation

Can't be bothered to manually build and update the diagram.

Why Do We Need This

Can't be bothered to manually build and update the diagram.

Alternatives

None.

Additional Context

None.

[Bug Report] CAN connection sometimes malfunction

Issue Description

Describe what you were trying to get done.
Tell us what happened, what went wrong, and what you expected to happen.

What I Did

Provide a reproducible test case that is the bare minimum necessary to generate the problem.

Paste the command(s) you ran and the output.
If there was a crash, please include the traceback here.

Expected Behavior

System Info

  • pymodi version:
  • Python version:
  • Operating System:

You can obtain the pymodi version with:
python -c "import modi; print(modi.__version__)"

You can obtain the Python version with:
python --version

Additional Context

[Feature Request] Rename display's show_variable method

Feature Description

I don't think display's show_variable is intuitive at all.

Motivation

I was told that the function name is very confusing.

Why Do We Need This

PyMODI new-comers can be confused by its name.

Alternatives

Could just leave it and write documentation for this function. But not all users read docs carefully.

Additional Context

None

Help Wanted

  • MODI Python API version:
  • Python version:
  • Operating System:

Description

Describe what you were trying to get done.
Tell us what happened, what went wrong, and what you expected to happen.

What I Did

Paste the command(s) you ran and the output.
If there was a crash, please include the traceback here.

[Bug Report] Examples galaga does not work

Issue Description

Describe what you were trying to get done.
Tell us what happened, what went wrong, and what you expected to happen.

What I Did

Provide a reproducible test case that is the bare minimum necessary to generate the problem.

Paste the command(s) you ran and the output.
If there was a crash, please include the traceback here.

Expected Behavior

System Info

  • pymodi version:
  • Python version:
  • Operating System:

You can obtain the pymodi version with:
python -c "import modi; print(modi.__version__)"

You can obtain the Python version with:
python --version

Additional Context

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.