Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

solidity_flattener -h crashes

See original GitHub issue

I just try solidity_flattener -h and get

  File "/usr/local/bin/solidity_flattener", line 27
    print("FATAL: '{name}' was defined multiple times. Aborting.".format(name=contract_name), file=sys.stderr)

I am using ubuntu with python 3.5.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:5

github_iconTop GitHub Comments

Stickerpantscommented, Sep 21, 2017

pip has been updated with the latest package. Please run pip3 install solidity-flattener --no-cache-dir -U in order to grab it, should be listed as version 0.2.0.

Thank you for the reports, everybody!

Qqwycommented, Sep 21, 2017

I think the easiest way to fix this is to change the shebang-line to, instead of pointing to the common location of /usr/bin/python, to /usr/bin/python3. Whether this is something you can do easily, or if it is something that pip usually manages for you and is hard to alter, I do not know.

At least, manually altering that line using sudo vim /usr/bin/solidity_flattener solved the problem for me, for now 🙂.

Read more comments on GitHub >

github_iconTop Results From Across the Web

A Python Utility to Flatten Solidity Code - Morioh
Solidity Flattener : A python utility to flatten Solidity code with imports into a single file. This script automatically traverses the dependency graph...
Read more >
AttributeError: 'module' object has no attribute 'run' - Ethereum ...
Looking to flatten a Solidity project into a single file. ... user@eth:/code/myproject$ sudo -H python3 -m pip install solidity-flattener.
Read more >
Issues · poanetwork/solidity-flattener - GitHub
Utility to combine Solidity project to a flat file - Issues · poanetwork/solidity-flattener.
Read more >
VSCode Solidity Contract Flattener - Visual Studio Marketplace
Flatten Solidity Contracts using truffle-flattener. Installation. Launch VS Code Quick Open ( Ctrl+P ), paste the following command, ...
Read more >
Solidity Crash Course – Your First Smart Contract on Ethereum
Here's a short video that may give you some motivation on why learning Solidity in the first place—it's a great way to build...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found