solidity_flattener -h crashes
See original GitHub issueI 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:
- Created 6 years ago
- Reactions:1
- Comments:5
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
pip
has been updated with the latest package. Please runpip3 install solidity-flattener --no-cache-dir -U
in order to grab it, should be listed as version0.2.0
.Thank you for the reports, everybody!
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 thatpip
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 🙂.