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

ImportPathMismatchError when running pytest locally #77

Closed
andygrove opened this issue Nov 18, 2022 · 2 comments
Closed

ImportPathMismatchError when running pytest locally #77

andygrove opened this issue Nov 18, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@andygrove
Copy link
Member

Describe the bug

__________________________________________________________________________________________________ ERROR collecting test session __________________________________________________________________________________________________
venv/lib/python3.8/site-packages/_pytest/config/__init__.py:607: in _importconftest
    mod = import_path(conftestpath, mode=importmode, root=rootpath)
venv/lib/python3.8/site-packages/_pytest/pathlib.py:556: in import_path
    raise ImportPathMismatchError(module_name, module_file, path)
E   _pytest.pathlib.ImportPathMismatchError: ('datafusion.tests.conftest', '/home/andy/git/apache/arrow-datafusion-python/datafusion/tests/conftest.py', PosixPath('/home/andy/git/apache/arrow-datafusion-python/target/package/datafusion-python-0.7.0/datafusion/tests/conftest.py'))

To Reproduce
Steps to reproduce the behavior:

Expected behavior
A clear and concise description of what you expected to happen.

Additional context
Add any other context about the problem here.

@andygrove andygrove added the bug Something isn't working label Nov 18, 2022
@isidentical
Copy link
Contributor

I've setup a clean work environment but I unfortunately can't reproduce this error:

 $ python -m pytest                                                                                                                                   1m32s

=================================================================== test session starts ====================================================================
platform linux -- Python 3.9.13, pytest-7.1.2, pluggy-1.0.0
rootdir: /home/seaworth/projects/arrow-datafusion-python
collected 84 items                                                                                                                                         

datafusion/tests/test_aggregation.py .                                                                                                               [  1%]
datafusion/tests/test_catalog.py .                                                                                                                   [  2%]
datafusion/tests/test_config.py ...                                                                                                                  [  5%]
datafusion/tests/test_context.py ..............                                                                                                      [ 22%]
datafusion/tests/test_dataframe.py ......................                                                                                            [ 48%]
datafusion/tests/test_functions.py .....                                                                                                             [ 54%]
datafusion/tests/test_imports.py .....                                                                                                               [ 60%]
datafusion/tests/test_indexing.py ..                                                                                                                 [ 63%]
datafusion/tests/test_sql.py ..................XxXXxxxxx                                                                                             [ 95%]
datafusion/tests/test_store.py .                                                                                                                     [ 96%]
datafusion/tests/test_udaf.py s..                                                                                                                    [100%]

=================================================== 74 passed, 1 skipped, 6 xfailed, 3 xpassed in 1.50s ====================================================

@andygrove
Copy link
Member Author

I am no longer seeing this but unfortunately do not remember what I did to resolve this

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

No branches or pull requests

2 participants