Search found 16 matches
- Wed Feb 14, 2018 10:18 am
- Forum: General Discussion and Questions
- Topic: Sqlite3 throwing: AttributeError: 'NoneType' object has no attribute 'func'
- Replies: 2
- Views: 4437
Re: Sqlite3 throwing: AttributeError: 'NoneType' object has no attribute 'func'
There is no module as ffi. I'm using csv instead of sqlite now.
- Fri Feb 09, 2018 12:02 pm
- Forum: General Discussion and Questions
- Topic: How to send/ receive data through socket in Non-Blocking mode?
- Replies: 2
- Views: 2749
Re: How to send/ receive data through socket in Non-Blocking mode?
Thanks for the link. It's working now
- Fri Feb 09, 2018 8:17 am
- Forum: General Discussion and Questions
- Topic: How to send/ receive data through socket in Non-Blocking mode?
- Replies: 2
- Views: 2749
How to send/ receive data through socket in Non-Blocking mode?
In documentation, it is written that non-blocking just sets the timeout to 0 seconds
I'm working on ESP8266.
and thus it's not possible to get or send data. Is there some hack or workaround to get both of these things done simultaneously?sock.setblocking(False) is equivalent to sock.settimeout(0)
I'm working on ESP8266.
- Wed Feb 07, 2018 10:08 am
- Forum: General Discussion and Questions
- Topic: Sqlite3 throwing: AttributeError: 'NoneType' object has no attribute 'func'
- Replies: 2
- Views: 4437
Sqlite3 throwing: AttributeError: 'NoneType' object has no attribute 'func'
Hello, I was checking sqlite3 module from here: https://github.com/micropython/micropython-lib/tree/master/sqlite3 I imported ffilib library from here: https://github.com/micropython/micropython-lib/blob/master/ffilib/ffilib.py Now, when I'm running "import sqlite3", I'm getting this error: Tracebac...
- Tue Jan 23, 2018 7:03 am
- Forum: General Discussion and Questions
- Topic: What's the meaning of this error: MemoryError: memory allocation failed, allocating 964 bytes?
- Replies: 9
- Views: 29677
Re: What's the meaning of this error: MemoryError: memory allocation failed, allocating 964 bytes?
1 MB is a lot. I'll build custom firmware with frozen modules then. That'll save me some RAM memory. Thanks a lot for this clear detail
- Tue Jan 23, 2018 4:29 am
- Forum: General Discussion and Questions
- Topic: What's the meaning of this error: MemoryError: memory allocation failed, allocating 964 bytes?
- Replies: 9
- Views: 29677
Re: What's the meaning of this error: MemoryError: memory allocation failed, allocating 964 bytes?
Will there be a difference in frozen modules and .mpy files?
- Mon Jan 22, 2018 10:12 am
- Forum: General Discussion and Questions
- Topic: What's the meaning of this error: MemoryError: memory allocation failed, allocating 964 bytes?
- Replies: 9
- Views: 29677
Re: What's the meaning of this error: MemoryError: memory allocation failed, allocating 964 bytes?
There is no way to trace as it's not running at all. I think the issue is actually due to filesize which is getting bigger than available RAM. This is just a guess though as I don't really know how files are interpreted in Micropython. I'll follow your suggestion to add/remove blocks. It'd give some...
- Mon Jan 22, 2018 9:46 am
- Forum: General Discussion and Questions
- Topic: What's the meaning of this error: MemoryError: memory allocation failed, allocating 964 bytes?
- Replies: 9
- Views: 29677
Re: What's the meaning of this error: MemoryError: memory allocation failed, allocating 964 bytes?
There is only a limited amount of memory available. Due to fragmentation, or just because you are allocating a lot, you reached the limit and cannot allocate more. There have been numerous threads about this already, just search the forum for MemoryError. I went through many posts but couldn't real...
- Mon Jan 22, 2018 9:32 am
- Forum: General Discussion and Questions
- Topic: What's the meaning of this error: MemoryError: memory allocation failed, allocating 964 bytes?
- Replies: 9
- Views: 29677
What's the meaning of this error: MemoryError: memory allocation failed, allocating 964 bytes?
I'm getting this error: MemoryError: memory allocation failed, allocating 964 bytes
Now, I don't know how to approach for the fix as I don't really understand what's really happening here.
Please let me know about the error and what should I do to fix this?
Thanks a lot.
Now, I don't know how to approach for the fix as I don't really understand what's really happening here.
Please let me know about the error and what should I do to fix this?
Thanks a lot.
- Mon Jan 15, 2018 7:12 am
- Forum: General Discussion and Questions
- Topic: What modules are pre-installed in esp8266 firmware binary?
- Replies: 2
- Views: 2157
Re: What modules are pre-installed in esp8266 firmware binary?
Thanks a lotRoberthh wrote: ↑Mon Jan 15, 2018 6:52 amYou can see the list of all active modules with:Code: Select all
help("modules")