Welcome new user! You can search existing questions and answers without registering, but please register to post new questions and receive answers. Note that due to large amounts of spam attempts, your first three posts will be manually moderated, so please be patient.
Because of un-manageable amounts of spam despite our use of CAPTCHAs, email authorization, and other tools, we have discontinued this forum (see the 700k+ registered users with validated email addresses at right?). Please email us any questions or post bug reports and feature requests on GitHub at https://github.com/jevois -- The content below remains available for future reference.
Welcome to JeVois Tech Zone, where you can ask questions and receive answers from other members of the community.

Jevois 1.11 "ERR: Could not write file /jevois/modules/..."

+1 vote

Using the latest Jevois image (1.11), and the Jevois Inventor 0.5.0 on Windows 10, I will occasionally get this error when trying to save my custom python module that I am developing, "ERR: Could not write file /jevois/modules/...". There doesn't seem to be any particular pattern as to when I encounter this error, it will just happen occasionally when I try to save my module to the Jevois. After encountering this error, if I reboot the Jevois, everything will reboot normally, and all of the vision modules, including my custom python module, are able to be run using the inventor. However, I still am unable to save my custom module. The only workaround I have found for this running, "usbsd", going into the folder for my custom module, and deleting everything in the "__pycache__" folder. After ejecting the Jevois, the camera boots up, and everything works fine again. I can save my custom python module to the camera without problems. Sometimes when I go to clear the "__pycache__" folder, there is a ".pyc" file, and there is also some other file that has a name like the ".pyc" file, but is has an extension that is unknown to Windows. I suspect that this mystery file is some sort of corrupted file created by the Inventor in a failed attempt to save the custom python module. Although clearing the "__pycache__" folder seems to be an effective workaround, it would be great if this issue could be resolved in the next version of the inventor.

asked Jan 29, 2019 in Programmer Questions by hamac2003 (400 points)

1 Answer

0 votes
I have a similar problem except mine happens all the time, with all modules, not just my own. Rebooting the Jevois doesn't help me.

I'll try your workaround and look in __pycache__

Wow, I deleted all the files in __pycache__ for my own code (which is where the problem seemed to start) then rebooted Jevois, restarted Inventor and connected and now I can save code, mine and other modules.

In case it helps, this all seemed to start when I modified my module to send binary data (I was experimenting with MAVlink-like packets) Are you sending anything using jevois.sendSerial() that might be unprintable chars?
answered Jan 30, 2019 by Tcornall (700 points)
edited Jan 30, 2019 by Tcornall
...