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

AttributeError: module pytest has no attribute lazy_fixture #52

Open
7beggars opened this issue Feb 16, 2022 · 0 comments
Open

AttributeError: module pytest has no attribute lazy_fixture #52

7beggars opened this issue Feb 16, 2022 · 0 comments

Comments

@7beggars
Copy link

7beggars commented Feb 16, 2022

hi,

I'm investigating a solution when trying to run test_actual.py

(IIT) [diego@diego test]$ python *actual.py but I get the following error:

Welcome to PyPhi!

If you use PyPhi in your research, please cite the paper:

  Mayner WGP, Marshall W, Albantakis L, Findlay G, Marchman R, Tononi G.
  (2018). PyPhi: A toolbox for integrated information theory.
  PLOS Computational Biology 14(7): e1006343.
  https://doi.org/10.1371/journal.pcbi.1006343

Documentation is available online (or with the built-in `help()` function):
  https://pyphi.readthedocs.io

To report issues, please use the issue tracker on the GitHub repository:
  https://github.com/wmayner/pyphi

For general discussion, you are welcome to join the pyphi-users group:
  https://groups.google.com/forum/#!forum/pyphi-users

To suppress this message, either:
  - Set `WELCOME_OFF: true` in your `pyphi_config.yml` file, or
  - Set the environment variable PYPHI_WELCOME_OFF to any value in your shell:
        export PYPHI_WELCOME_OFF='yes'

Traceback (most recent call last):
  File "/home/diego/anaconda3/envs/IIT/lib/python3.9/site-packages/b/pyphi-feature-iit-4.0/test/test_actual.py", line 99, in <module>
    (pytest.lazy_fixture("background_all_off"), Direction.EFFECT, (0,), (1,), 1),
  File "/home/diego/anaconda3/envs/IIT/lib/python3.9/site-packages/pytest/__init__.py", line 171, in __getattr__
    raise AttributeError(f"module {__name__} has no attribute {name}")
AttributeError: module pytest has no attribute lazy_fixture
(IIT) [diego@diego test]$ 

also to test_json.py:

(IIT) [diego@diego test]$ python *json.py

Welcome to PyPhi!

If you use PyPhi in your research, please cite the paper:

  Mayner WGP, Marshall W, Albantakis L, Findlay G, Marchman R, Tononi G.
  (2018). PyPhi: A toolbox for integrated information theory.
  PLOS Computational Biology 14(7): e1006343.
  https://doi.org/10.1371/journal.pcbi.1006343

Documentation is available online (or with the built-in `help()` function):
  https://pyphi.readthedocs.io

To report issues, please use the issue tracker on the GitHub repository:
  https://github.com/wmayner/pyphi

For general discussion, you are welcome to join the pyphi-users group:
  https://groups.google.com/forum/#!forum/pyphi-users

To suppress this message, either:
  - Set `WELCOME_OFF: true` in your `pyphi_config.yml` file, or
  - Set the environment variable PYPHI_WELCOME_OFF to any value in your shell:
        export PYPHI_WELCOME_OFF='yes'

Traceback (most recent call last):
  File "/home/diego/anaconda3/envs/IIT/lib/python3.9/site-packages/b/pyphi-feature-iit-4.0/test/test_json.py", line 10, in <module>
    from test_actual import transition
  File "/home/diego/anaconda3/envs/IIT/lib/python3.9/site-packages/b/pyphi-feature-iit-4.0/test/test_actual.py", line 99, in <module>
    (pytest.lazy_fixture("background_all_off"), Direction.EFFECT, (0,), (1,), 1),
  File "/home/diego/anaconda3/envs/IIT/lib/python3.9/site-packages/pytest/__init__.py", line 171, in __getattr__
    raise AttributeError(f"module {__name__} has no attribute {name}")
AttributeError: module pytest has no attribute lazy_fixture
(IIT) [diego@diego test]$ 
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

1 participant