-
Notifications
You must be signed in to change notification settings - Fork 909
Closed
Description
π Environment
- Your operating system and version: MacOS X 10.12
- Your python version: 3.6.5
- How did you install python (e.g. apt or pyenv)? Did you use a virtualenv?: brew, no virtualenv
- Your rust version: rustc 1.28.0-nightly (5bf68db6e 2018-05-28)
π₯ Reproducing
I somehow can't exceptions to work in my project.
To reproduce the issue, I simple hacked an exception to the word-count example code.
Here's the diff of my changes: master...mre:master
Here is a simple test case to reproduce my issue.
cd /tmp
git clone [email protected]:mre/pyo3.git
cd pyo3/examples/word-count
python3 setup.py install
cd ~
python3 -c "from word_count import search"
I expected a JSONDecodeError, but got this:
python3 -c "from word_count import search"
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/usr/local/lib/python3.6/site-packages/word_count-0.1.0-py3.6-macosx-10.12-x86_64.egg/word_count/__init__.py", line 4, in <module>
from ._word_count import search, search_sequential, JSONDecodeError
ImportError: cannot import name 'JSONDecodeError'
Any help would be highly appreciated.
Metadata
Metadata
Assignees
Labels
No labels