wmayner / pyphi

A toolbox for integrated information theory.
https://journals.plos.org/ploscompbiol/article?id=10.1371/journal.pcbi.1006343
Other
368 stars 98 forks source link

AttributeError: module pytest has no attribute lazy_fixture #52

Open 7beggars opened 2 years ago

7beggars commented 2 years ago

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]$