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

Unable to compile dependency #845

Closed
Macarse opened this issue Nov 14, 2020 · 3 comments · Fixed by #857
Closed

Unable to compile dependency #845

Macarse opened this issue Nov 14, 2020 · 3 comments · Fixed by #857
Labels
bug Something isn't working

Comments

@Macarse
Copy link
Contributor

Macarse commented Nov 14, 2020

Environment information

  • brownie Version: 1.11.12 / 3fad0bd (locally)
  • ganache-cli Version: N/A
  • solc Version: 0.6.12
  • Python Version: 3.8.6
  • OS: osx

What was wrong?

I am trying to add a dependency to another project and I am getting:

WARNING: Unable to compile Macarse/GenericKeep3rV2@0.0.1 due to a FileNotFoundError - you may still be able to import sources from the package, but will be unable to load the package directly.

Dependency is https://github.com/Macarse/GenericKeep3rV2/releases/tag/0.0.1

Please include information like:
I run brownie locally to find out more.
I added a print(str(e)) to the warning and the apparent file missing is: interfaces/IKeep3rV1.sol

I kept looking at the brownie code and found the exception happening at:
changed_sources = {i: self._sources.get(i) for i in changed_paths} in the _compile_interfaces method.
I tried shuffling the changed_sources array and all of them seem to be failing.

No idea what the change_sources is for.
Any idea what can be wrong?

@Macarse
Copy link
Contributor Author

Macarse commented Nov 14, 2020

Some additional info:
Copy-pasting from the GenericKeep3rV2 contracts and interfaces content into the new project works fine.

@iamdefinitelyahuman
Copy link
Member

Not sure what this is, but i'll investigate.

@Macarse
Copy link
Contributor Author

Macarse commented Nov 22, 2020

Thanks a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants