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

Tests not running without project.json #414

Open
berndbohmeier opened this issue Dec 15, 2017 · 10 comments
Open

Tests not running without project.json #414

berndbohmeier opened this issue Dec 15, 2017 · 10 comments
Assignees

Comments

@berndbohmeier
Copy link

  • Populus Version: 2.2.0
  • OS: linux

What was wrong?

Without a project.json the tests will not run.
You can reproduce that by going into an empty directory and initialize it with
populus init and then run the example tests.

FileNotFoundError: No populus project found for testing in /home/bernd/programming/trustlines/contracts/test

Cute Animal Picture

@jiffies
Copy link

jiffies commented Dec 17, 2017

Same problem as I meet,You can copy 'defaults.v8.config.json' which produce by populus init command and rename it to 'project.json', test will work fine.

@veox
Copy link
Contributor

veox commented Dec 18, 2017

Do you still have a user-wide config in ~/.populus/?..


EDIT: Can confirm issue present without the above.

@youngsoul
Copy link

youngsoul commented Dec 19, 2017

I too am seeing this issue on MacOS. I do not have a ~/.populus/ directory.

as @jiffies suggests - if you copy the 'defaults.v8.config.json' into your project root and rename to project.json then the tests do run.

@b2
Copy link

b2 commented Dec 20, 2017

$ populus init
Wrote default populus configuration to `./../../.pyenv/versions/3.6.3/envs/api2a/lib/python3.6/site-packages/populus/assets/defaults.v8.config.json`.

api2a is my virtualenv and this is where the write ended up -- seems like that was supposed to the source of project.json, not the destination.

The project.json trick worked for me once I spelled it correctly.

mac Sierra

@JanKalin
Copy link

Can confirm the same problem and solution.

@introom
Copy link

introom commented Jan 25, 2018

confirm the same issue and solution.

@MarcusJones
Copy link

Also just ran into this while using Conda environment;

Wrote default populus configuration to ``./../anaconda3/lib/python3.6/site-packages/populus/assets/defaults.v8.config.json``.

Rename workaround worked.

@voith
Copy link
Collaborator

voith commented Sep 3, 2018

populus init has a bug. This will be resolved in the next few weeks.

@voith voith added the Bug label Sep 3, 2018
@voith voith self-assigned this Sep 3, 2018
@voith voith removed the Bug label Oct 9, 2018
@voith
Copy link
Collaborator

voith commented Oct 9, 2018

populus init has a bug

populus init support was dropped in #396, However the tests are still expecting config to be present. This will be fixed!

@arpi9211
Copy link

Populus Version: 2.2.0
OS: osx

Problem:
FileNotFoundError: No populus project found for testing in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/populus/plugin.py:60

Solution:
when we run $ populus init command it will Wrote default populus configuration file at this location /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/populus/assets/defaults.v8.config.json

copy defaults.v8.config.json file and paste it on your project and rename defaults.v8.config.json to project.json file. This solution solved the issue for me

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

10 participants