AttributeError: 'module' object has no attribute 'alloc_extra_fb'

Discussion related to "under the hood" OpenMV topics.
sig_UVa78
Posts: 4
Joined: Wed Jan 24, 2018 7:55 pm

AttributeError: 'module' object has no attribute 'alloc_extra_fb'

Postby sig_UVa78 » Wed Jan 24, 2018 9:10 pm

Hello,

I received the error in the subject link when I ran the 20-Frame-Differencing example openmv/usr/examples/20-Frame-Differenci ... rencing.py. The program halts at line 24.

Anything I can do to fix this? I couldn't find the error on the forums.

Thanks for your help. Cool product so far, but I am a noob, so I'm stumbling through.
User avatar
kwagyeman
Posts: 1736
Joined: Sun May 24, 2015 2:10 pm

Re: AttributeError: 'module' object has no attribute 'alloc_extra_fb'

Postby kwagyeman » Wed Jan 24, 2018 9:25 pm

You need to install the latest firmware which was just released. It's not packaged for download yet though. See the release tab on the OpenMV GitHub.
Nyamekye,
sig_UVa78
Posts: 4
Joined: Wed Jan 24, 2018 7:55 pm

Re: AttributeError: 'module' object has no attribute 'alloc_extra_fb'

Postby sig_UVa78 » Wed Jan 24, 2018 9:52 pm

Thank you. I am not sure what you mean by Release tab though.

I found this folder: https://github.com/openmv/openmv/tree/master/firmware

Would I still be able to use the IDE to update the firmware or can it only be done manually?

OPENMV4 folder?

Thanks!
User avatar
kwagyeman
Posts: 1736
Joined: Sun May 24, 2015 2:10 pm

Re: AttributeError: 'module' object has no attribute 'alloc_extra_fb'

Postby kwagyeman » Wed Jan 24, 2018 10:11 pm

https://github.com/openmv/openmv/releases

Use either the firmware.bin or OpenMV.dfu file in the OPENMV3 folder. You can use the IDE to update the camera.
Nyamekye,
sig_UVa78
Posts: 4
Joined: Wed Jan 24, 2018 7:55 pm

Re: AttributeError: 'module' object has no attribute 'alloc_extra_fb'

Postby sig_UVa78 » Thu Jan 25, 2018 9:30 pm

So I downloaded those files. However in the IDE, I can't seem to force it to ask for the DFU.

I read in the hardware setup tutorial that it would prompt me to do so, but my firmware is also up-to-date with 2.6.0 (according the IDE). It does ask me if I want to reset to the release version, but that didn't seem to go well. I'm still at 2.6.0.

Thanks for your patience!
User avatar
kwagyeman
Posts: 1736
Joined: Sun May 24, 2015 2:10 pm

Re: AttributeError: 'module' object has no attribute 'alloc_extra_fb'

Postby kwagyeman » Fri Jan 26, 2018 12:47 am

See Tools->Run bootloader.
Nyamekye,
sig_UVa78
Posts: 4
Joined: Wed Jan 24, 2018 7:55 pm

Re: AttributeError: 'module' object has no attribute 'alloc_extra_fb'

Postby sig_UVa78 » Fri Jan 26, 2018 9:17 pm

That worked. Thank you!
Nando
Posts: 2
Joined: Mon Feb 12, 2018 11:54 am

Re: AttributeError: 'module' object has no attribute 'alloc_extra_fb'

Postby Nando » Mon Feb 12, 2018 12:03 pm

Hi kwagyeman,

I've run across the same 'alloc_extra_fb' problem trying to use one of the examples on your github, https://github.com/kwagyeman/openmv/blo ... calflow.py

Is the OPENMV3 folder for the OpenMV M7 cam?
I was looking at the old firmwares, and for example firmware 2.0 has a clear "OPENMV7" folder.
User avatar
kwagyeman
Posts: 1736
Joined: Sun May 24, 2015 2:10 pm

Re: AttributeError: 'module' object has no attribute 'alloc_extra_fb'

Postby kwagyeman » Mon Feb 12, 2018 12:30 pm

OpenMV 3 is the OpenMV Cam M7. OpenMV 2 is the M4 board, 1 is the oldest OpenMV Cam from 2013 that was never sold commerically. 4 is the upcoming H7 model.
Nyamekye,
Nando
Posts: 2
Joined: Mon Feb 12, 2018 11:54 am

Re: AttributeError: 'module' object has no attribute 'alloc_extra_fb'

Postby Nando » Mon Feb 12, 2018 1:18 pm

Thank you very much.
The update and python code on the openmv worked right away. Now to get the whole thing working.

Return to “Technical Discussion”

Who is online

Users browsing this forum: No registered users and 1 guest