[
https://issues.apache.org/jira/browse/ARROW-3280?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16622938#comment-16622938
]
Matthew Rocklin commented on ARROW-3280:
----------------------------------------
Actually, let me back up. I wrote a test and wanted to run it. I tried
running py.test from that directory and got the error that I list above.
That's probably reasonable, given that Python is probably confused about paths
given that I'm in a directory named arrow.
I googled online for arrow developer notes, and eventually found that I was
supposed to look in the directory for a README file. That file didn't have
anything about testing in it explicitly.
I see now that it has a "Build from source" section that links to external
docs. I'll go and try that and see what happens.
> [Python] Difficulty running tests after conda install
> -----------------------------------------------------
>
> Key: ARROW-3280
> URL: https://issues.apache.org/jira/browse/ARROW-3280
> Project: Apache Arrow
> Issue Type: Bug
> Components: Python
> Affects Versions: 0.10.0
> Environment: conda create -n test-arrow pytest ipython pandas nomkl
> pyarrow -c conda-forge
> Ubuntu 16.04
> Reporter: Matthew Rocklin
> Priority: Minor
> Labels: python
>
> I install PyArrow from conda-forge, and then try running tests (or import
> generally)
> {code:java}
> conda create -n test-arrow pytest ipython pandas nomkl pyarrow -c conda-forge
> {code}
> {code:java}
> mrocklin@carbon:~/workspace/arrow/python$ py.test
> pyarrow/tests/test_parquet.py
> Traceback (most recent call last):
> File
> "/home/mrocklin/Software/anaconda/lib/python3.6/site-packages/_pytest/config.py",
> line 328, in _getconftestmodules
> return self._path2confmods[path]
> KeyError:
> local('/home/mrocklin/workspace/arrow/python/pyarrow/tests/test_parquet.py')During
> handling of the above exception, another exception occurred:
> Traceback (most recent call last):
> File
> "/home/mrocklin/Software/anaconda/lib/python3.6/site-packages/_pytest/config.py",
> line 328, in _getconftestmodules
> return self._path2confmods[path]
> KeyError: local('/home/mrocklin/workspace/arrow/python/pyarrow/tests')During
> handling of the above exception, another exception occurred:
> Traceback (most recent call last):
> File
> "/home/mrocklin/Software/anaconda/lib/python3.6/site-packages/_pytest/config.py",
> line 359, in _importconftest
> return self._conftestpath2mod[conftestpath]
> KeyError:
> local('/home/mrocklin/workspace/arrow/python/pyarrow/tests/conftest.py')During
> handling of the above exception, another exception occurred:
> Traceback (most recent call last):
> File
> "/home/mrocklin/Software/anaconda/lib/python3.6/site-packages/_pytest/config.py",
> line 365, in _importconftest
> mod = conftestpath.pyimport()
> File
> "/home/mrocklin/Software/anaconda/lib/python3.6/site-packages/py/_path/local.py",
> line 668, in pyimport
> __import__(modname)
> File "/home/mrocklin/workspace/arrow/python/pyarrow/__init__.py", line 54, in
> <module>
> from pyarrow.lib import cpu_count, set_cpu_count
> ModuleNotFoundError: No module named 'pyarrow.lib'
> ERROR: could not load
> /home/mrocklin/workspace/arrow/python/pyarrow/tests/conftest.py{code}
> Probably this is something wrong with my environment, but I thought I'd
> report it as a usability bug
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)