Skip to content

Pandas test fails in conda #20433

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

Closed
e-grn opened this issue Mar 21, 2018 · 1 comment
Closed

Pandas test fails in conda #20433

e-grn opened this issue Mar 21, 2018 · 1 comment
Labels
Duplicate Report Duplicate issue or pull request

Comments

@e-grn
Copy link

e-grn commented Mar 21, 2018

Hi!
I have the problem with pandas testing (Win10x64)
All packages are updated:

pd.test()
running: pytest --skip-slow --skip-network C:\anaconda\lib\site-packages\pandas
============================= test session starts =============================
platform win32 -- Python 3.6.4, pytest-3.4.2, py-1.5.2, pluggy-0.6.0
rootdir: C:, inifile:
plugins: remotedata-0.2.0, openfiles-0.2.0, doctestplus-0.1.2, arraydiff-0.2
collected 0 items / 1 errors

=================================== ERRORS ====================================
______________________________ ERROR collecting ______________________________
C:\anaconda\lib\site-packages_pytest\config.py:329: in _getconftestmodules
return self._path2confmods[path]
E KeyError: local('C:\anaconda\lib\site-packages\pandas\tests\io')

During handling of the above exception, another exception occurred:
C:\anaconda\lib\site-packages_pytest\config.py:360: in _importconftest
return self._conftestpath2mod[conftestpath]
E KeyError: local('C:\anaconda\lib\site-packages\pandas\tests\io\conftest.py')

During handling of the above exception, another exception occurred:
C:\anaconda\lib\site-packages_pytest\config.py:366: in importconftest
mod = conftestpath.pyimport()
C:\anaconda\lib\site-packages\py_path\local.py:668: in pyimport
import(modname)
C:\anaconda\lib\site-packages_pytest\assertion\rewrite.py:213: in load_module
py.builtin.exec
(co, mod.dict)
C:\anaconda\lib\site-packages\pandas\tests\io\conftest.py:3: in
import moto
E ModuleNotFoundError: No module named 'moto'

During handling of the above exception, another exception occurred:
C:\anaconda\lib\site-packages\py_path\common.py:377: in visit
for x in Visitor(fil, rec, ignore, bf, sort).gen(self):
C:\anaconda\lib\site-packages\py_path\common.py:429: in gen
for p in self.gen(subdir):
C:\anaconda\lib\site-packages\py_path\common.py:418: in gen
dirs = self.optsort([p for p in entries
C:\anaconda\lib\site-packages\py_path\common.py:419: in
if p.check(dir=1) and (rec is None or rec(p))])
C:\anaconda\lib\site-packages_pytest\main.py:411: in _recurse
ihook = self.gethookproxy(path)
C:\anaconda\lib\site-packages_pytest\main.py:315: in gethookproxy
my_conftestmodules = pm._getconftestmodules(fspath)
C:\anaconda\lib\site-packages_pytest\config.py:343: in _getconftestmodules
mod = self._importconftest(conftestpath)
C:\anaconda\lib\site-packages_pytest\config.py:368: in _importconftest
raise ConftestImportFailure(conftestpath, sys.exc_info())
E pytest.config.ConftestImportFailure: ModuleNotFoundError("No module named 'moto'",)
E File "C:\anaconda\lib\site-packages_pytest\assertion\rewrite.py", line 213, in load_module
E py.builtin.exec
(co, mod.dict)
E File "C:\anaconda\lib\site-packages\pandas\tests\io\conftest.py", line 3, in
E import moto
!!!!!!!!!!!!!!!!!!! Interrupted: 1 errors during collection !!!!!!!!!!!!!!!!!!!
=========================== 1 error in 1.02 seconds ===========================
An exception has occurred, use %tb to see the full traceback.

SystemExit: 2

C:\anaconda\lib\site-packages\IPython\core\interactiveshell.py:2918: UserWarning: To exit: use 'exit', 'quit', or Ctrl-D.
warn("To exit: use 'exit', 'quit', or Ctrl-D.", stacklevel=1)

@TomAugspurger
Copy link
Contributor

Fixed in master: #18719

@TomAugspurger TomAugspurger added the Duplicate Report Duplicate issue or pull request label Mar 21, 2018
@TomAugspurger TomAugspurger added this to the No action milestone Mar 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Duplicate Report Duplicate issue or pull request
Projects
None yet
Development

No branches or pull requests

2 participants