Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import files not found even with path specified, Error Error: Source "introspection/SupportsInterfaceWithLookup.sol" not found: File not found. #35

Open
nickjuntilla opened this issue Sep 5, 2018 · 1 comment

Comments

@nickjuntilla
Copy link

Using a command like solidity_flattener mySource.sol gets an error like:

Plouton.sol:5:1: Error: Source "introspection/SupportsInterfaceWithLookup.sol" not found: File not found.
import "../../introspection/SupportsInterfaceWithLookup.sol";
^-----------------------------------------------------------^
ERC721BasicToken.sol:5:1: Error: Source "math/SafeMath.sol" not found: File not found.
import "../../math/SafeMath.sol";
^-------------------------------^
ERC721BasicToken.sol:6:1: Error: Source "AddressUtils.sol" not found: File not found.
import "../../AddressUtils.sol";
^------------------------------^
ERC721BasicToken.sol:7:1: Error: Source "introspection/SupportsInterfaceWithLookup.sol" not found: File not found.
import "../../introspection/SupportsInterfaceWithLookup.sol";
^-----------------------------------------------------------^
ERC721Basic.sol:3:1: Error: Source "introspection/ERC165.sol" not found: File not found.
import "../../introspection/ERC165.sol";
^--------------------------------------^

If I specify the path like solidity_flattener --solc-paths=./ mySource.sol I get:

$ solidity_flattener --solc-paths=./ mySource.sol
""./"" is not a valid file
Traceback (most recent call last):
  File "/usr/local/bin/solidity_flattener", line 4, in <module>
    flattener.core.main()
  File "/usr/local/lib/python3.6/site-packages/flattener/core.py", line 97, in main
    solc_proc.check_returncode()
  File "/usr/local/Cellar/python/3.6.5_1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/subprocess.py", line 369, in check_returncode
    self.stderr)

I used to be able to just run this on the with one argument. Now it's complaining about paths and nothing I write in --solc-paths seems to satisfy it. It also seems to think --solc-paths is specifying a file. Do you know what is wrong?

@weilbith
Copy link

weilbith commented Oct 7, 2019

Same problem here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants