~mediagoblin/mediagoblin#38: 
SyntaxWarning when running ./bin/gmg

I get some python errors when running ./bin/gmg, but the commands do process correctly.

$ ./bin/gmg adduser --username example --email example@example.edu
/srv/mediagoblin.example.org/mediagoblin/lib/python3.9/site-packages/PyLD-1.0.5-py3.9.egg/pyld/jsonld.py:577: SyntaxWarning: "is" with a literal. Did you mean "=="?
/srv/mediagoblin.example.org/mediagoblin/lib/python3.9/site-packages/PyLD-1.0.5-py3.9.egg/pyld/jsonld.py:577: SyntaxWarning: "is" with a literal. Did you mean "=="?
Password: 
User created (and email marked as verified).
Status
RESOLVED FIXED
Submitter
~jahway603
Assigned to
No-one
Submitted
1 year, 9 months ago
Updated
7 months ago
Labels
No labels applied.

Olivier Mehani 1 year, 9 months ago · edit

Which version of Python are you running and which branch of Mediagoblin are you on?

A new rc has been put out recently [0], that fixes this sort of compat issues up to, and including, Python 3.9.

#[0] https://git.sr.ht/~mediagoblin/mediagoblin/refs/v0.12.1rc1

Olivier Mehani shtrom@ssji.net Sent from my mobile, please excuse my brevity.

~jahway603 1 year, 9 months ago

I'm using v0.12.1rc1 branch and Python 3.9.2 on Debian 11. Is there anything I can run here to get better data for this issue?

Olivier Mehani 1 year, 9 months ago · edit

Unfortunately not, but a diag tool in gmg might be a good idea for future work.

#I assume you're running in a virtualenv. Did you rebuild after pulling?

Olivier Mehani shtrom@ssji.net Sent from my mobile, please excuse my brevity.

~sturm 1 year, 9 months ago

This warning is originating from the PyLD library and not MediaGoblin itself. These sorts of warnings are relevant to developers, but not to users of MediaGoblin, so I think we probably should disable them. Does that sound reasonable to you Olivier?

Olivier Mehani 1 year, 9 months ago · edit

#Yup. Can we reenable them easily when developing?

Olivier Mehani shtrom@ssji.net Sent from my mobile, please excuse my brevity.

~jahway603 1 year, 9 months ago

Olivier: I'm just happy I was able to get anything to work as I ran into issue after issue to finally get this up and running today. I followed the instructions here, https://docs.mediagoblin.org/en/master/siteadmin/deploying.html, which mostly worked. I'd like to contribute documentation but I need to learn how to do that on here or Savannah.

Olivier Mehani 1 year, 9 months ago · edit

This would be great!

Here would be best (we need to clarify that Savannah is not use for source tracking anymore).

You'll find the source of the documentation in the docs/ subdirectory of the repo, and you should be able to do a make docs to build it, so you can check that the output is as you intended.

-- Olivier Mehani shtrom@ssji.net Sent from my mobile, please excuse my brevity.

~sturm 1 year, 5 months ago

I've just done some testing (Python 3.10 on GNU Guix) and am not seeing this warning. Is anyone else able to see it?

~sturm REPORTED FIXED 7 months ago

Register here or Log in to comment, or comment via email.