siznax / wptools

Wikipedia tools (for Humans): easily extract data from Wikipedia, Wikidata, and other MediaWikis

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Jupyter Notebook ModuleNotFoundError: No module named 'wptools'

RonaldoGuastalli opened this issue · comments

  1. I create an virtual env (uso_wptools),
  2. after source ativate uso_wptools
  3. pip install wptools
  4. conda install jupyter
  5. open my project in jupyter notebook
  6. in a line import wptools
  7. recived an error: ModuleNotFoundError: No module named 'wptools'

this is my conda list:

# packages in environment at /anaconda3/envs/uso_wptools:
#
# Name                    Version                   Build  Channel
appnope                   0.1.0                    py37_0  
backcall                  0.1.0                    py37_0  
bleach                    3.0.2                    py37_0  
ca-certificates           2018.03.07                    0  
certifi                   2018.11.29               py37_0  
dbus                      1.13.2               h760590f_1  
decorator                 4.3.0                    py37_0  
entrypoints               0.2.3                    py37_2  
expat                     2.2.6                h0a44026_0  
gettext                   0.19.8.1             h15daf44_3  
glib                      2.56.2               hd9629dc_0  
html2text                 2018.1.9                  <pip>
icu                       58.2                 h4b95b61_1  
ipykernel                 5.1.0            py37h39e3cac_0  
ipython                   7.2.0            py37h39e3cac_0  
ipython_genutils          0.2.0                    py37_0  
ipywidgets                7.4.2                    py37_0  
jedi                      0.13.2                   py37_0  
jinja2                    2.10                     py37_0  
jpeg                      9b                   he5867d9_2  
jsonschema                2.6.0                    py37_0  
jupyter                   1.0.0                    py37_7  
jupyter_client            5.2.4                    py37_0  
jupyter_console           6.0.0                    py37_0  
jupyter_core              4.4.0                    py37_0  
libcxx                    4.0.1                hcfea43d_1  
libcxxabi                 4.0.1                hcfea43d_1  
libedit                   3.1.20170329         hb402a30_2  
libffi                    3.2.1                h475c297_4  
libiconv                  1.15                 hdd342a3_7  
libpng                    1.6.35               ha441bb4_0  
libsodium                 1.0.16               h3efe00b_0  
lxml                      4.3.0                     <pip>
markupsafe                1.1.0            py37h1de35cc_0  
mistune                   0.8.4            py37h1de35cc_0  
nbconvert                 5.3.1                    py37_0  
nbformat                  4.4.0                    py37_0  
ncurses                   6.1                  h0a44026_1  
notebook                  5.7.4                    py37_0  
openssl                   1.1.1a               h1de35cc_0  
pandoc                    2.2.3.2                       0  
pandocfilters             1.4.2                    py37_1  
parso                     0.3.1                    py37_0  
pcre                      8.42                 h378b8a2_0  
pexpect                   4.6.0                    py37_0  
pickleshare               0.7.5                    py37_0  
pip                       18.1                     py37_0  
prometheus_client         0.5.0                    py37_0  
prompt_toolkit            2.0.7                    py37_0  
ptyprocess                0.6.0                    py37_0  
pycurl                    7.43.0.2                  <pip>
pygments                  2.3.1                    py37_0  
pyqt                      5.9.2            py37h655552a_2  
python                    3.7.2                haf84260_0  
python-dateutil           2.7.5                    py37_0  
pyzmq                     17.1.2           py37h1de35cc_0  
qt                        5.9.7                h468cd18_1  
qtconsole                 4.4.3                    py37_0  
readline                  7.0                  h1de35cc_5  
send2trash                1.5.0                    py37_0  
setuptools                40.6.3                   py37_0  
sip                       4.19.8           py37h0a44026_0  
six                       1.12.0                   py37_0  
sqlite                    3.26.0               ha441bb4_0  
terminado                 0.8.1                    py37_1  
testpath                  0.4.2                    py37_0  
tk                        8.6.8                ha441bb4_0  
tornado                   5.1.1            py37h1de35cc_0  
traitlets                 4.3.2                    py37_0  
wcwidth                   0.1.7                    py37_0  
webencodings              0.5.1                    py37_1  
wheel                     0.32.3                   py37_0  
widgetsnbextension        3.4.2                    py37_0  
wptools                   0.4.17                    <pip>
xz                        5.2.4                h1de35cc_4  
zeromq                    4.2.5                h0a44026_1  
zlib                      1.2.11               h1de35cc_3 
commented

Thanks for trying wptools @RonaldoGuastalli

I'm not sure how to help you with this. Have you seen this thread?

jupyter/notebook#2359

commented

In fact, looks like a common problem. Here's another:

jupyter/notebook#1524

1 - I used Installing jupyter_environment_kernels
Installing jupyter_environment_kernels
2 - edit the file kernel.json
https://github.com/jupyter/notebook/issues/2359#issuecomment-318061445

Thanks for trying wptools @RonaldoGuastalli

I'm not sure how to help you with this. Have you seen this thread?

jupyter/notebook#2359

yes, you help me!