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

Make pip test work in M1 Mac #309

Closed
xiki-tempula opened this issue Apr 7, 2023 · 0 comments · Fixed by #310
Closed

Make pip test work in M1 Mac #309

xiki-tempula opened this issue Apr 7, 2023 · 0 comments · Fixed by #310

Comments

@xiki-tempula
Copy link
Collaborator

xiki-tempula commented Apr 7, 2023

I'm preparing the 2.0.1 release, I tag it as 2.0.1 and upload it to test.pypi.org. Then I pip install the package locally with
pip install -i https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple alchemlyb=="2.0.1"
Then I run the test with pytest --pyargs alchemlyb

However, the test would stuck indefinitely at tests/test_workflow_ABFE.py, where it seems to be stuck at

  File "/Users/zhiyiwu/miniconda3_x86/envs/test/lib/python3.11/site-packages/alchemlyb/tests/test_workflow_ABFE.py", line 39, in test_nofilematch
    ABFE(
  File "/Users/zhiyiwu/miniconda3_x86/envs/test/lib/python3.11/site-packages/alchemlyb/workflows/abfe.py", line 85, in __init__
    self.file_list = list(glob(reg_exp, recursive=True))
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/zhiyiwu/miniconda3_x86/envs/test/lib/python3.11/glob.py", line 28, in glob
    return list(iglob(pathname, root_dir=root_dir, dir_fd=dir_fd, recursive=recursive,
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/zhiyiwu/miniconda3_x86/envs/test/lib/python3.11/glob.py", line 97, in _iglob
    for name in glob_in_dir(_join(root_dir, dirname), basename, dir_fd, dironly,
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/zhiyiwu/miniconda3_x86/envs/test/lib/python3.11/glob.py", line 106, in _glob1
    names = _listdir(dirname, dir_fd, dironly)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/zhiyiwu/miniconda3_x86/envs/test/lib/python3.11/glob.py", line 177, in _listdir
    return list(it)
           ^^^^^^^^
  File "/Users/zhiyiwu/miniconda3_x86/envs/test/lib/python3.11/glob.py", line 160, in _iterdir
    for entry in it:
KeyboardInterrupt

However, if I go to the source code and run pip install -e . to install this package, and then run it works pytest --pyargs alchemlyb completely fine.

@xiki-tempula xiki-tempula linked a pull request Apr 7, 2023 that will close this issue
This was referenced Apr 7, 2023
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

Successfully merging a pull request may close this issue.

1 participant