pupil-labs / pupil

Open source eye tracking
https://pupil-labs.com
GNU Lesser General Public License v3.0
1.47k stars 676 forks source link

Error about run main.py directly from my IDE #1909

Closed hz-pupil closed 4 years ago

hz-pupil commented 4 years ago

when I run main.py directly from my IDE, there are these errors:

main.py: error: the following arguments are required: usage: main.py [-h] ...

positional arguments:

which application to start capture real-time processing and recording player process, visualize, and export recordings service low latency real-time processing with constrained feature set optional arguments: -h, --help show this help message and exit ----------------------------------------------------------------------------------------- How do I do next? I am a fresher of python.
romanroibu commented 4 years ago

Hi @hz-pupil, you need to configure your IDE to pass the name of the application you want to run (capture, player or service) as an argument to main.py.

pfaion commented 4 years ago

Hi @hz-pupil,

you cannot run main.py without specifying the app to start as a command-line argument.

E.g. for starting Pupil Capture, you have to run

python main.py capture

Specifying startup options works differently in every IDE. Maybe I can help you when you tell me which IDE you are using.

May I also ask why you intend to run Pupil from source? This will only be necessary if you need to modify Pupil's source code or develop custom plugins. Otherwise I'd recommend you download one of our pre-built bundles for your operating system.

hz-pupil commented 4 years ago

@pfaion Thank you for your reply. I can use the cmd to run "python main.py capture". And It runs OK. My IDE is the IDLE 3.6 of python 3.6 64 bit. I want to modify Pupil's source code to change the color of the PC screen and to add some pictures showing at the PC screen while testing. And I am studying the python now. Can you tell me what kind of information to study? Is there some web site I can get the relevant information? And which part source code to modify?

hz-pupil commented 4 years ago

@romanroibu Thank you for your reply. How do I configure my IDE to pass the name of the application I want to run (capture, player or service) as an argument to main.py.

pfaion commented 4 years ago

@hz-pupil Do I understand correctly that you want to create an experiment on the screen? Pupil does not offer any capability of doing this, normally you would use other software to run your experiments and use Pupil's network API to synchronize your experiment with Pupil Capture while recording.

Can you elaborate on your specific use case / idea / experiment? Maybe then I can give you tips on how to set things up.

I would also recommend you familiarize yourself a bit with our documentation on https://docs.pupil-labs.com/

papr commented 4 years ago

I think the relevant question has been answered here: https://github.com/pupil-labs/pupil/issues/1909#issuecomment-642462830

lubai1013 commented 4 years ago

Help: what should I do if I want to add a new function button in the main operation interface

pfaion commented 4 years ago

@lubai1013 please create a new issue for your questions, as it does not relate to this one here