question-mark
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.

AttributeError: 'module' object has no attribute 'run'

See original GitHub issue

Hello Guys,

I am facing following error while trying to flatten this target file. Please help me.

$ solidity_flattener contracts/MyDummyCoin.sol Traceback (most recent call last): File "/home/ztlab07/.local/bin/solidity_flattener", line 4, in <module> flattener.core.main() File "/home/ztlab07/.local/lib/python2.7/site-packages/flattener/core.py", line 96, in main solc_proc = subprocess.run(solc_args, stdout=subprocess.PIPE, universal_newlines=True) AttributeError: 'module' object has no attribute 'run'

Issue Analytics

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

github_iconTop GitHub Comments

5reactions
izetexcommented, Dec 25, 2017

The problem is in the documentation. You should use pip3 install solidity-flattener

1reaction
haydenyoungcommented, Jan 30, 2019

Is this still an issue?

pip --version

pip 9.0.1 from /usr/lib/python3/dist-packages (python 3.6)

but still getting:

AttributeError: ‘module’ object has no attribute ‘run’

Nevermind. Re-running the install using pip3 seemed to resolve the issue:

pip3 install solidity-flattener

Read more comments on GitHub >

github_iconTop Results From Across the Web

Getting an error - AttributeError: 'module' object has no ...
The subprocess.run() function only exists in Python 3.5 and newer. It is easy enough to backport however: def run(*popenargs, **kwargs): input ...
Read more >
AttributeError: module 'sqnsupgrade' has no attribute 'run'
Attribute errors in Python are generally raised when you try to access or call an attribute that a particular object type doesn't possess....
Read more >
Python error : AttributeError: 'module' object has no attribute ...
Hello, I am testing your software but I can't make it run When I launched: pgantomizer_dump --schema dolibarr.yml --dbname dolibarr --user ...
Read more >
AttributeError: \'module\' object has no attribute
When I run a.py, I get: AttributeError: 'module' object has no attribute 'hi' What does the error mean? How do I fix it?...
Read more >
AttributeError: 'module' object has no attribute 'App'
Hi All,. A newbie question ... I got the 2.8 source to build with unicode enabled in debug mode. However, upon attempting to...
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 Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found