Search found 4 matches
- Tue Dec 14, 2021 8:30 am
- Forum: Development of MicroPython
- Topic: Weird inheritance assertion difference between embedded library and interpreter
- Replies: 1
- Views: 12126
Weird inheritance assertion difference between embedded library and interpreter
Hey all, I am trying to use the static library in example/embedding to try and run on a unix system. When I do so, the following code throws an assertion error: class _Environ(dict): def __init__(self): dict.__init__(self) <------ That is the line that fails :_( :_( env = uctypes.struct(_environ_ptr...
- Mon Nov 15, 2021 3:58 pm
- Forum: Development of MicroPython
- Topic: Compilation problem with modffi
- Replies: 0
- Views: 8128
Compilation problem with modffi
Hey all, I am trying to compile the embedded example to work as a static library on iOS. I was able to compile it, but when I try to enable ffi (By compiling modffi.c as well), I get the following error: "No rule to make target `modffi.c`, needed by `build/genhdr/qstr.i.last`" Can anyone please assi...
- Tue Oct 12, 2021 11:36 am
- Forum: General Discussion and Questions
- Topic: Adding ucontextlib to my MP
- Replies: 0
- Views: 1067
Adding ucontextlib to my MP
Hey guys,
I am trying to add ucontextlib to my micropython compilation.
Can anyone give any pointers as to how to come about this?
I used `micropython -m pip install ucontextlib`, but for some reason the import still fails.
Can anyone please assist?
I am trying to add ucontextlib to my micropython compilation.
Can anyone give any pointers as to how to come about this?
I used `micropython -m pip install ucontextlib`, but for some reason the import still fails.
Can anyone please assist?
- Mon Oct 11, 2021 4:58 pm
- Forum: General Discussion and Questions
- Topic: Missing exception logs
- Replies: 1
- Views: 915
Missing exception logs
Hey all, I am trying to run the following code: class A(object): def __init__(self, a): self.a = a def bobo(self): print("here") yield print("there") a_instance = A(4) with a_instance.bobo(): print("inside") inside a c function as follows: mp_stack_set_limit(40000 * (sizeof(void *) / 4)); // Initial...