Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
fkobayashi
@fkobayashi:matrix.org
[m]
Hmm that’s weird
Usually the link appears for me as a comment to the student if the upload worked correctly…might be a bug in my code
This is weird
Did the grade you assigned get pushed successfuly?
fkobayashi
@fkobayashi:matrix.org
[m]
I'm not seeing your comment on the canvas sandbox
That's super strange though. Files always showed up fine for me in the courses I was grading.
usually something like this
cbm
@cbm755:matrix.org
[m]
thanks, maybe I did mess up the upload then! I didn't give any errors, but I've deleted a lot of code (changing directory stuff)
yes the assigned grade got pushed (well the wrong grade b/c of a different bug, but it pushed a "1" to everyone)

basically, the code is just this:

                sub.upload_comment(pdf)

I've check that pdf is correct. Maybe I'll try some more in the sandbox instead of dealing with real data

fkobayashi
@fkobayashi:matrix.org
[m]
Ok
I can take a look after dinner
cbm
@cbm755:matrix.org
[m]
I changed it R = sub.upload_comment(pdf), the response looks good (` 'upload_status': 'success', etc). I was on canvasapi 2.1.0 (dec 4) upgrader to 2.2.0 (mar 25): same behavour :(
cbm
@cbm755:matrix.org
[m]
Here's the commit I'm playing without, in case you see anything foolish, but the fact is the upload succeeds... I thought its something like ucfopen/canvasapi#142 but that is from 2018
fkobayashi
@fkobayashi:matrix.org
[m]

Still dinner-ing will check in a bit

(Family has people over now that we’re all fully vaccinated — woohoo!!)

cbm
@cbm755:matrix.org
[m]
no rush, I can bail and push my URLs, just so weird!
AHA!! Possibly breakthrough: if I go into SpeedGrader (first time for everything...) I CAN SEE THEM
fkobayashi
@fkobayashi:matrix.org
[m]
Oh perfect!
That’s where I’d been looking
Didn’t realize you could look elsewhere…?????
cbm
@cbm755:matrix.org
[m]
I look in Grades -> Quiz 1 -> Score -> click little arrow
I didn't now there was anywhere else :-)
haha, Kipling's blindmen describing the elephant here!
fkobayashi
@fkobayashi:matrix.org
[m]
At some point I need to finish my refactor of the canvas pushing code…the new version of what I refactored is substantially cleaner / more modular
cbm
@cbm755:matrix.org
[m]
thanks for your help, I will try to get this into a bug report via LT Support to fix the Comments view I've been using. Its also possible to upload files manually within speedgrader! which might be helpful in some cases!
(I thought this was an API-only feature)
fkobayashi
@fkobayashi:matrix.org
[m]
Oh yes you can add files manually
Well…glad I helped!! Haha
cbm
@cbm755:matrix.org
[m]
thanks
re: refactored... am I using this? I branched about a week ago
fkobayashi
@fkobayashi:matrix.org
[m]
Probably not…I think I only finished the download stage not the upload
cbm
@cbm755:matrix.org
[m]
push is already very nice to use, mainly I just had to delete stuff (b/c it wants to do all the plom stuff for me)
server I couldn't figure out because it wants to make its own server and I already have one, but I can see with some effort it could support that as well
Andrew Rechnitzer
@arechnitzer_gitlab
I can yell too
sorry - I CAN YELL TOO
fkobayashi
@fkobayashi:matrix.org
[m]
Asked friends about flask

Me:

fully unrelated: question about webserver things

plom people want to start up a very very lightweight webserver from a docker thing so that people can connect to a plom server from browser
do people generally use like...flask for this still?

Friend 1:

my understanding is flask is still the predominant python lightweight webserver
framework
I suppose in theory using python's built-in http is the most "lightweight" but flask is probably very good and much more pleasant
I think I like flask in a way that I do not like pandas

Friend 2:

Oh really
I like some pieces of flask but
The main loop is annoying
Like the part where the decorators are modifying this invisible global state in a sense
And then you kick off an eventloop that reads everything and turns it into a server
Does make it hard to compose with other stuff

Me:

is there an alternative you'd recommend?

Friend 2:

Nope!

Me:

ah, so like
classic python library situation then

Friend 2:

My bones tell me there should be an elegant asyncio version out there
But I use Flask in Hubert
With a wrapper that puts all of the state inside a class

Me:

I think we probably won't need something as..."flexible" as Hubert so maybe flask will be fine

Friend 2:

I think it'll be fine

Andrew Rechnitzer
@arechnitzer_gitlab
thats very helpful
Victoria Schuster
@vmschuster_gitlab
Have any of you encountered problems downloading jpegtran-cffi?
For whatever reason I lost some of the plom dependencies. Jpegtran-cffi is behaving as if I don't have turbojpeg installed despite it being installed and up to date... @cbm755:matrix.org I tried your suggestions in the jpegtran issues but no success.
Andrew Rechnitzer
@arechnitzer_gitlab
yes - I have. I had to install it via apt or simlar
cbm
@cbm755:matrix.org
[m]
head's up: jpegtran-cffi is no longer a required dependency (its still used if available and still included in our Docker instance)
cbm
@cbm755:matrix.org
[m]
(Hopefully) here comes 0.7.0: https://gitlab.com/plom/plom/-/pipelines/365299506, many thanks to all who contributed to this release!
cbm
@cbm755:matrix.org
[m]
0.7.1 is out, thanks especially to new contributors!
fkobayashi
@fkobayashi:matrix.org
[m]

Trying to figure out how to hotswap servers in the flask app and am struggling mightily

I think I just probably don't know enough about how it works internally to do this efficiently. arechnitzer , should I just push what I've done so far to a new branch?

I'm kind of doubtful it will be very useful, since I recently entered the "flail wildly in the code" stage of debugging...
Andrew Rechnitzer
@arechnitzer_gitlab
ha
I think in the short term the better solution for someone who wanted to look up what they did in the previous assignment would be to log into speedgrader or similar
better short term tasks = get the push back working nicely with flask idiocy
cbm
@cbm755:matrix.org
[m]
at least in the near-term, I think we anticipate containers with both a plom-server and a flask instance in them, one for each assessment.
Andrew Rechnitzer
@arechnitzer_gitlab
also - I think I recall Forest having a busy week... so very short term plan = Plom work doesnt make Forest supervisor angry
1 reply