-
Notifications
You must be signed in to change notification settings - Fork 79
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
Cannot run detector_server.py or import_data_py3.py #107
Comments
Hi,
Where did the detector_server.py code come from? In the Arduino folder there is only import_data.py.
It looks like the first error is just that the code has spaces instead of indents, and your text editor cares about that. You would have to change the spaces into tabs, or tabs into spaces.
The second error relating to threads. I cannot test it at the moment. But I see that we are importing something called _thread, whereas the text uses something called thread. My guess is that you should be able to change thread->_thread and it will work.
Best,
Spencer
─
Dr. Spencer N. Axani
***@***.*** ***@***.***>
Assistant Professor
The University of Delaware
203 Sharp Lab
104 The Green, Newark, DE 19716
(608) 572-8426
… On Jul 20, 2023, at 7:21 AM, fbarradas ***@***.***> wrote:
And this is the same working from the Linux terminal
<https://user-images.githubusercontent.com/49408729/254867638-ce3a888e-7957-4d4d-a13b-8a0104591d51.png>
—
Reply to this email directly, view it on GitHub <#107 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AANF5O53P2ZT7JAOOL7LCXLXREIB3ANCNFSM6AAAAAA2QVKNGQ>.
You are receiving this because you are subscribed to this thread.
|
Hi,
Would you be able to post a screen shot? Does your computer see the Arduino? As in, were you able to upload the code to the Arduino through the Arduino IDE?
Thanks,
Spencer
─
Dr. Spencer N. Axani
***@***.*** ***@***.***>
Assistant Professor
The University of Delaware
203 Sharp Lab
104 The Green, Newark, DE 19716
(608) 572-8426
… On Jul 26, 2023, at 5:30 PM, anthony.fuller ***@***.***> wrote:
I'm also seeing this error code, running "import_data_py3.py" as well. When running the script, there are five choices, the last being [h] for help. When selecting option "1", Record data on computer, the script prompts for a USB Port number, entering the number, I get this error:
Traceback (most recent call last):
File "/home/radiomuon/muon/CosmicWatch-Desktop-Muon-Detector-v2/Recording_Data/import_data_py3.py", line 195, in
port_name_list.append(str(port_list[int(ArduinoPort[i])-1]))
IndexError: list index out of range
Can you help with this, looks like an issue with the script on line 195?
—
Reply to this email directly, view it on GitHub <#107 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AANF5O4FTWMQL4UCGDDGM53XSGSADANCNFSM6AAAAAA2QVKNGQ>.
You are receiving this because you commented.
|
@anthfuller Your "IndexError: list index out of range" error is different from the previous errors in this thead and likely has a separate solution. Fortunately I had the exact same problem, which I traced to this issue: arduino/help-center-content#155 The Linux BRLTTY utility for braille displays is sometimes enabled by default, and has been in particular for recent versions of Ubuntu. Unfortunately, BRLTTY is programmed to take over serial ports automatically, which interferes with the You can confirm whether or not this is your problem by checking
If you don't need the If you do need the |
This is what happens if I try to run detector_server.py (from Spyder from MacOS 13.4.1):
and if I try tro run import_data_py3.py:
The text was updated successfully, but these errors were encountered: