Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    arjuna sky kok
    @arjunaskykok_gitlab
    But I still got different error.
    arjuna sky kok
    @arjunaskykok_gitlab
    Okay, finally (this time is real) I solved the problem. Here's what you need to do:
    pip install eth-abi==1.2.2
    pip install eth-typing==1.1.0
    pip install web3==4.7.2
    pip install -e git+https://github.com/ethereum/populus#egg=populus
    @voith How do you think we should solve this problem?
    arjuna sky kok
    @arjunaskykok_gitlab
    Sorry, I forgot you are already retired, @voith .
    Mikko Ohtamaa
    @miohtama
    Also you do not need any ethereum packages, only eth packages as dependenciew
    if any ethereum package gets pulled in, you have wrong versions somewhere
    arjuna sky kok
    @arjunaskykok_gitlab
    What do you mean by "only eth packages as dependencies"? How do you install populus using eth packages as dependencies?
    arjuna sky kok
    @arjunaskykok_gitlab
    I got this error when compiling Vyper code.
    bytecode = '0x' + compiler.compile_code(code).hex()
    AttributeError: 'dict' object has no attribute 'hex'
    Apparently Vyper changed its API. So Populus needs to update the way it uses Vyper API.
    Noel Maersk
    @veox
    @arjunaskykok_gitlab Consider Populus unmaintained. Suggest https://gitter.im/ethereum/vyper.
    arjuna sky kok
    @arjunaskykok_gitlab
    I created an issue (and suggested fix): ethereum/populus#485
    Noel Maersk
    @veox
    You might find folk there who know more on how to set up an up-to-date Vyper dev environment. Like @fubuloubu.
    arjuna sky kok
    @arjunaskykok_gitlab
    @veox Well, I am writing a book about blockchain programming with Python and I have written a lot about Populus. 🙃
    At that time, twig-eth was not born yet.
    So like it or not, I have to live with Populus "for a while".
    Noel Maersk
    @veox
    Ah, OK. That's why I pinged Bryant. I know he's doing "framework-free" Vyper development. Or was, at least, previously.
    Mikko Ohtamaa
    @miohtama
    @arjunaskykok_gitlab good question, sorry I was not clear
    there are packages with eth- prefix, these are new
    there are old packages with ethereum-prefix, they generally do not work
    arjuna sky kok
    @arjunaskykok_gitlab
    @veox Right now I have to finish the book. But I plan to update the book (months later) with content about twig-eth, and maybe "framework-free" Vyper development.
    Just some guy
    @fubuloubu
    @arjunaskykok_gitlab the new interface should be easier
    The vyper package now exposes compile_code(src_code_str, output_format=['abi', 'bytecode', ...])
    And I also think a version for compiling multiple contracts
    arjuna sky kok
    @arjunaskykok_gitlab
    @fubuloubu Now that vyper have better and easier interfaces, does it mean developing framework like populus and twig-eth has lower priority?
    Mikko Ohtamaa
    @miohtama
    @arjunaskykok_gitlab Not sure if Vyper is production grade language any time soon - the most of the world still runs pretty much on Solidity
    Just some guy
    @fubuloubu
    I would say it's starting to be, with UniSwap release and all
    we definitely need more exterior tooling and a way to compile with older versions
    but no, I would say the interface makes it easier to work with frameworks
    frameworks are supposed to take some of the orchestration weight off the SC developer IMO
    twig adds Vyper as a first class citizen
    Jacques Wagener
    @jacqueswww
    @arjunaskykok_gitlab ethereum/populus#484
    I created a fix for it when vyper changed it's interface (30 November 2018)
    The CI seems failed on the PR's
    So the bigger problem is no one is really merging/reviewing PR's on populus anymore : /
    arjuna sky kok
    @arjunaskykok_gitlab
    @jacqueswww Thank you for the fix! Could you merge the PR because @voith has retired? I am trying to avoid telling the readers to patch Populus in my book. :)
    Also there is still bug in Populus' setup.py because web3.py new version breaks compatibility. I mean I can avoid the bug by installing other packages first like:
    pip install eth-abi==1.2.2
    pip install eth-typing==1.1.0
    pip install web3==4.7.2
    But it's less polished.
    After finishing the book, I'll set some time to give some love to Populus.
    Jacques Wagener
    @jacqueswww
    I don't have merge rights sorry
    Voith Mascarenhas
    @voith
    I will try to review it today
    Voith Mascarenhas
    @voith
    before merging the jacques’s PR I want to drop python 3.5 support because vyper only supports python>=3.6 and there have been some compatibility issues with python3.5.
    Currently, vper tests in populus don’t run on CI. After dropping python3.5 support, I will add vyper as optional dependency to setup.py and will then enable the tests that are skipped.
    This will help test jacques PR.

    @voith has retired?

    I am not a memeber of the ethereum foundation. I was only contributing in my free time. I took some time off to pursue my hobby. [OFF TOPIC] you can find out what I was doing in my spare time here :D

    Voith Mascarenhas
    @voith
    I was planning to return back to ethereum this month, but was lacking motivation.
    @arjunaskykok_gitlab your ping should get me started.
    SiddharthMalhotra
    @SiddharthMalhotra
    FileNotFoundError: [Errno 2] No such file or directory: 'solc'
    How do I install version 0.4.17 for populus?
    subprocess.CalledProcessError: Command '['make']' returned non-zero exit status 2.
    arjuna sky kok
    @arjunaskykok_gitlab
    @SiddharthMalhotra What is your OS?
    @voith Glad to have you come back. I am waiting impatiently for your fix. After finishing my book, I can help you polish Populus. There are some features that I think would be useful for programmers.
    Voith Mascarenhas
    @voith
    @SiddharthMalhotra. The solc binary is not installed by default. Please read through the solidity docs for instructions on installing the solc compiler: https://solidity.readthedocs.io/en/v0.5.2/installing-solidity.html
    @SiddharthMalhotra Thank you. I will send a fix tonight(IST), I promise.