Giter Site home page Giter Site logo

Comments (30)

FedericoCeratto avatar FedericoCeratto commented on May 30, 2024

Blocked by https://bitbucket.org/bbangert/beaker/issue/114/python3-raises-typeerror-passphrase-must

from bottle-cork.

jcdyer avatar jcdyer commented on May 30, 2024

Looks like Beaker has moved to github. The above blocker ticket is now a broken link. See https://github.com/bbangert/beaker/

Possibly blocked by bbangert/beaker#21

from bottle-cork.

FedericoCeratto avatar FedericoCeratto commented on May 30, 2024

bbangert/beaker#21 is still unpatched and other required libraries are not available for Python3 at the moment.

from bottle-cork.

Hubro avatar Hubro commented on May 30, 2024

Any progress on this?

from bottle-cork.

glebourgeois avatar glebourgeois commented on May 30, 2024

Has python 3 compatibility been considered again ?

from bottle-cork.

FedericoCeratto avatar FedericoCeratto commented on May 30, 2024

Unfortunately the bug in Beaker has not been fixed so far. The offending code is there since 2008, and the project is not being actively maintained.
At this point, moving away from Beaker seems to be the only option. Any suggestion?

from bottle-cork.

Hubro avatar Hubro commented on May 30, 2024

I support moving away from dead and broken dependencies thumbsup

Tomas E. Sandven

On Sat, Oct 25, 2014 at 2:57 PM, Federico Ceratto [email protected]
wrote:

Unfortunately the bug in Beaker has not been fixed so far. The offending
code is there since 2008, and the project is not being actively maintained.
At this point, moving away from Beaker seems to be the only option. Any
suggestion?


Reply to this email directly or view it on GitHub
#4 (comment)
.

from bottle-cork.

glebourgeois avatar glebourgeois commented on May 30, 2024

seems like a good idea, but don't know what replacement to use.

from bottle-cork.

oshihirii avatar oshihirii commented on May 30, 2024

Hello,

I'm looking at Python 3 Wall of Superpowers which shows Bottle and Beakerhave Python 3 compatibility - specifically bottle 0.12.8 is compatible with Python 3.3 and Beaker 1.6.4 is compatible with Python 3.2.

Does this change things at all and make Cork compatible with Python 3?

Thank You.

from bottle-cork.

FedericoCeratto avatar FedericoCeratto commented on May 30, 2024

Bottle is indeed compatible with Python 3 while Beaker is still not entirely compatible (see bug listed above). Beaker has not been maintained since 2013 and the last release is from 2012.
Moving away from it seems to be the only option at this point.

from bottle-cork.

oshihirii avatar oshihirii commented on May 30, 2024

Ok, thank you for the information, I would contribute time to look into it, but the operations of Beaker are a little out of my league I think. I will watch this topic with interest.

from bottle-cork.

FedericoCeratto avatar FedericoCeratto commented on May 30, 2024

Good news, @amol- is taking over Beaker and released a new version already:
https://github.com/bbangert/beaker/commits/master

from bottle-cork.

oshihirii avatar oshihirii commented on May 30, 2024

Wow, thanks for the update. So is Beaker compatible with Python 3 yet, or still on the horizon?

from bottle-cork.

amol- avatar amol- commented on May 30, 2024

Beaker 1.6 is compatible with some versions of PY3, see that on travis is already tested again 3.2: https://travis-ci.org/bbangert/beaker/builds/49749936

Support for PY3 in 1.6.5 is currently achieved using 2to3 and some fixes during installation, I worked on a fully native solution which is currently tested against all py3.2, py3.3, py3.4 https://travis-ci.org/TurboGears/beaker

The fully native solution will be released as soon as I have time to merge it back into the main trunk and test it on some real world project, in the mean while you can freely clone it from https://github.com/TurboGears/beaker/commits/py3native and send feedbacks if you find any issue.

from bottle-cork.

FedericoCeratto avatar FedericoCeratto commented on May 30, 2024

@oshihirii and @amol- the main blocker that is currently preventing Cork to use Beaker with python3 is bbangert/beaker#21 , which is still unpatched.

from bottle-cork.

FedericoCeratto avatar FedericoCeratto commented on May 30, 2024

Added patch bbangert/beaker/pull/75

from bottle-cork.

FedericoCeratto avatar FedericoCeratto commented on May 30, 2024

Beaker v1.7.0dev was released 19 days ago. Pending release of a stable version.

from bottle-cork.

glebourgeois avatar glebourgeois commented on May 30, 2024

not out yet ?

from bottle-cork.

FedericoCeratto avatar FedericoCeratto commented on May 30, 2024

Nope, the last activity from was releasing the dev version on 25 Feb.
@amol- : any plan to release a stable version soon? Thanks!

from bottle-cork.

amol- avatar amol- commented on May 30, 2024

@FedericoCeratto no plans, waiting a reasonable span of time to confirm no major bugs have been introduced due to the rewrite. The changes were big so I need to confirm third party projects continue to work as before.

from bottle-cork.

FedericoCeratto avatar FedericoCeratto commented on May 30, 2024

@amol-: thanks for the reply. I'll import the dev version and test Cork on Python 3 against it.

from bottle-cork.

amol- avatar amol- commented on May 30, 2024

@FedericoCeratto any feedback on testing beaker with Cork on py3? I plan to release Beaker as stable in a few days but wanted to wait for Cork feedback :)

from bottle-cork.

FedericoCeratto avatar FedericoCeratto commented on May 30, 2024

@amol-: I'm currently testing the new version and seems to be working. I'll publish the updated unit tests shortly.

from bottle-cork.

FedericoCeratto avatar FedericoCeratto commented on May 30, 2024

@amol- crypto.generateCryptoKeys(cleartext, salt, 10) is generating different hash values under python2.7 and python3.4 with Beaker 1.7 - is this expected?

from bottle-cork.

amol- avatar amol- commented on May 30, 2024

It might yes, when hashlib.pbkdf2_hmac is available that is used otherwise a builtin pbkdf2 implementation is used. You can check on both interpreter with hasattr(hashlib, "pbkdf2_hmac") if the two provide different answers they will probably lead to different keys.

from bottle-cork.

FedericoCeratto avatar FedericoCeratto commented on May 30, 2024

@amol-: found the culprit: bbangert/beaker#81
Calling crypto.generateCryptoKeys with cleartext and salt as unicode strings produces the same output in py2 and py3 as expected. If I pass salt as a bytes type, it breaks due to the "bytes_" function

from bottle-cork.

amol- avatar amol- commented on May 30, 2024

@FedericoCeratto fixed bbangert/beaker#81
Should I proceed with release or did you find any other issue?

from bottle-cork.

FedericoCeratto avatar FedericoCeratto commented on May 30, 2024

@amol- I haven't found anything else so far.

from bottle-cork.

FedericoCeratto avatar FedericoCeratto commented on May 30, 2024

Version 0.12.0a1 released with Python 3 support.

from bottle-cork.

FedericoCeratto avatar FedericoCeratto commented on May 30, 2024

Version 0.12.0a2 released

from bottle-cork.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.