Custom Query (1173 matches)


Show under each result:

Results (82 - 84 of 1173)

Ticket Resolution Summary Owner Reporter
#5441 fixed raw_input is depreceated in python3 Espionage724

Was trying out python3 and was trying to add a new user via gmg. I was getting this error:

Traceback (most recent call last):
  File "/srv/www/media/bin/gmg", line 9, in <module>
    load_entry_point('mediagoblin', 'console_scripts', 'gmg')()
  File "/srv/www/media/mediagoblin/gmg_commands/", line 148, in main_cli
  File "/srv/www/media/mediagoblin/gmg_commands/", line 46, in adduser = commands_util.prompt_if_not_set(, "Email:")
  File "/srv/www/media/mediagoblin/gmg_commands/", line 36, in prompt_if_not_set
    variable=raw_input(text + u' ')
NameError: name 'raw_input' is not defined

Did a little searching and noticed:

In Python 3.x, input() replaces raw_input(), for input from the console.

So I edited mediagoblin/gmg_commands/ and changed the only raw_input occurrence to input, re-ran the gmg command, and it created the user successfully (or said it did anyway; haven't tested it yet :p).

Outside of this one situation, I'm not sure if raw_input affects anything else.

#5549 no-action python3 password check does not work Marco Strigl

I have a installation of mediagoblin on openSUSE Tumbleweed. I run python3.

Everything runs fine until I logout. I am not able to login, because the stored_hash seems not to be encoded.

If I print the stored_hash I get: b'$2b$12$i2E5Kg.Ro82c6WqNgrrtPuURbG0cSyMHjN/Aoeam0/5flHuY3CQCa'

In python3-bcrypto the following check raises the error: if isinstance(password, six.text_type) or isinstance(salt, six.text_type):

And the traceback attached:

Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/waitress-1.1.0-py3.6.egg/waitress/", line 338, in service
  File "/usr/lib/python3.6/site-packages/waitress-1.1.0-py3.6.egg/waitress/", line 169, in service
  File "/usr/lib/python3.6/site-packages/waitress-1.1.0-py3.6.egg/waitress/", line 399, in execute
    app_iter =, start_response)
  File "/srv/", line 342, in __call__
    return self.call_backend(environ, start_response)
  File "/srv/", line 600, in __call__
    return, start_response)
  File "/srv/", line 276, in call_backend
    return self._finish_call_backend(request, environ, start_response)
  File "/srv/", line 318, in _finish_call_backend
    response = controller(request)
  File "/srv/", line 367, in wrapper
    return controller(request, *args, **kwargs)
  File "/srv/", line 93, in login
  File "/srv/", line 167, in check_login_simple
    if not auth.check_password(password, user.pw_hash):
  File "/srv/", line 43, in check_password
    raw_pass, stored_hash, extra_salt)
  File "/srv/", line 308, in hook_handle
    result = callable(*args, **kwargs)
  File "/srv/", line 92, in check_password
    stored_hash, extra_salt)
  File "/srv/", line 45, in bcrypt_check_password
    hashed_pass = bcrypt.hashpw(raw_pass.encode('utf-8'), stored_hash)
  File "/usr/lib64/python3.6/site-packages/bcrypt/", line 65, in hashpw
    raise TypeError("Unicode-objects must be encoded before hashing")
TypeError: Unicode-objects must be encoded before hashing
#909 fixed pyld is python2.7+ only Christopher Allan Webber

We recently included pyld as a dependency.

This breaks python2.6 compatibility. So, this leaves us with two options:

  • Drop python2.6 support
  • Make the features that require pyld optional.

We should decide on this before 0.7.0 comes out.

Batch Modify
Note: See TracBatchModify for help on using batch modify.
Note: See TracQuery for help on using queries.