hjstn / miniDjiController

Python VJoy interface for Mavic Mini RC. Inspired (and with help from) Matsemann/mDjiController and slaterbbx/mDjiController.
Apache License 2.0
27 stars 12 forks source link

Python script not opening #3

Open awake12 opened 3 years ago

awake12 commented 3 years ago

When i double click the main.py it opens and closes.i triend opening it from the cmd with no success it gives me ; usage: main.py [-h] -p PORT [-d DEVICE] [-i [INVERT [INVERT ...]]] main.py: error: the following arguments are required: -p/--port

hjstn commented 3 years ago

You have to specify the COM port the controller is connected on.

dekid69 commented 3 years ago

You have to specify the COM port the controller is connected on.

i have similar problem it said this Traceback (most recent call last): File "C:\Users\deboi\Downloads\miniDjiController-master\miniDjiController-master\main.py", line 6, in import serial, pyvjoy, argparse ModuleNotFoundError: No module named 'serial'

hjstn commented 3 years ago

You have to specify the COM port the controller is connected on.

i have similar problem it said this Traceback (most recent call last): File "C:\Users\deboi\Downloads\miniDjiController-master\miniDjiController-master\main.py", line 6, in import serial, pyvjoy, argparse ModuleNotFoundError: No module named 'serial'

Did you run pip install in the directory to install requirements?

dekid69 commented 2 years ago

You have to specify the COM port the controller is connected on.

i have similar problem it said this Traceback (most recent call last): File "C:\Users\deboi\Downloads\miniDjiController-master\miniDjiController-master\main.py", line 6, in import serial, pyvjoy, argparse ModuleNotFoundError: No module named 'serial'

Did you run pip install in the directory to install requirements?

yes i have now it said = RESTART: C:\Users\beanz\Downloads\miniDjiController-master\miniDjiController-master\main.py Traceback (most recent call last): File "C:\Users\beanz\Downloads\miniDjiController-master\miniDjiController-master\main.py", line 6, in import serial, pyvjoy, argparse ModuleNotFoundError: No module named 'pyvjoy'

K177ok commented 10 months ago

I think I got it. It was necessary to write pip install until everything that is needed is installed. But there was no information about it anywhere... I prescribed

pip install serial and other, but:

C:\Users\k177o\Desktop\DJI SIM\MiniDJIController>python main.py Traceback (most recent call last): File "C:\Users\k177o\Desktop\DJI SIM\MiniDJIController\main.py", line 6, in import serial, pyvjoy, argparse File "C:\Users\k177o\AppData\Local\Programs\Python\Python312\Lib\site-packages\serial__init.py", line 10, in from . import utilities, abc, model, marshal, errors, properties, meta, hooks, test, request File "C:\Users\k177o\AppData\Local\Programs\Python\Python312\Lib\site-packages\serial\utilities__init__.py", line 5, in compatibility.backport() # noqa ^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\k177o\AppData\Local\Programs\Python\Python312\Lib\site-packages\serial\utilities\compatibility.py", line 28, in backport exec(BACKWARDS_COMPATIBILITY_IMPORTS, frame.f_globals, frame.f_locals) File "", line 4, in File "C:\Users\k177o\AppData\Local\Programs\Python\Python312\Lib\site-packages\future\standard_library\init__.py", line 65, in import imp ModuleNotFoundError: No module named 'imp'

C:\Users\k177o\Desktop\DJI SIM\MiniDJIController>

K177ok commented 10 months ago

Oh, it worked! And how could I guess that there was still a lot to install) The problem now is the following, if you run from cmd, you can specify the port, but the delay is VERY large. And if you just run the main file, then it immediately closes. Is it possible to register the port directly in the file and where?