Robert Huselius

Results 10 comments of Robert Huselius

Update: I find it works fine for text files for some reason, but only if I take the strings returned by `MegaTransfer.getLastBytes()`, convert them to `bytes`, and then crop them...

I would like to try building the Python bindings with `SWIG_PYTHON_STRICT_BYTE_CHAR`, as per the SWIG documentation: http://swig.org/Doc4.0/Python.html#Python_nn77 How to do that is unfortunately beyond my competence at the moment.

Been doing a little more debugging, and it seems that whatever generates the return value of `MegaTransfer.getLastBytes()` stops as soon as it encounters a null character. E.g. if I do...

I managed to build the SDK with `#define SWIG_PYTHON_STRICT_BYTE_CHAR`. Everything is indeed `bytes` instead of `str` now, but unfortunately that didn't solve anything. The returned values still stop at the...

@jorgeajimenezl Thanks! I was thinking along the same lines myself. Manually patching an auto generated file is of course not the optimal solution, but it's better than nothing. :)

@AdamDonna I'm not comfortable with sharing much of the actual code since it's not open source and belongs to my employer. But it should be possible to replicate by setting...

@AdamDonna Of course, if you're only asking for the actual test, it looks like this: ```python class LicenseViewTests(TestCase): [...] def test_do_not_send_expiration_reminder_has_newer_license(self): _today = today() school_class = self.school_classes[0] # This one...

@AdamDonna 1. LicenseExpirationReminder looks like this: ```python class LicenseExpirationReminder(models.Model): license = models.ForeignKey( "License", on_delete=models.CASCADE, related_name="expiration_reminders", verbose_name=_("license")) date = models.DateField(_("date"), help_text=_("Send reminder on this date.")) sent = models.BooleanField(_("sent"), help_text=_("Whether reminder has...

Did some more debugging, and indeed it looks like the `msodbcsql17` driver is not available during `POST_BUILD_SCRIPT_PATH` execution. Output of `odbcinst -j` in post build script: ``` unixODBC 2.3.4 DRIVERS............:...

@s-mccarthy No, I'm afraid I gave up on it, and instead refactored so I don't run anything requiring a DB connection in the post build script. Not the optimal solution,...