jmausolf / poshmark_sharing

BSD 3-Clause "New" or "Revised" License
111 stars 58 forks source link

JupyterLab #12

Open alielghoul opened 5 years ago

alielghoul commented 5 years ago

Hello , I am using JupyterLab to process the sharing application but i am getting the below issue.

Traceback (most recent call last): File "share_war.py", line 1, in import selenium, time, argparse ModuleNotFoundError: No module named 'selenium'

I am sure that selenium is installed but no idea why i am getting this message .

Any help?

jmausolf commented 5 years ago

I have not actually tried running this in JupyterLab, although I have run it in Jupyter Notebook. At least with Jupyter Notebook, it is possible to have multiple Python Kernels installed. For example both Python 2 and Python 3. If you have Selenium installed in Python 3 but are running a Python 2 Kernel you would get a similar error. I would check within JupyterLab if you can run the snippet import selenium to see if you get that error specifically in JupyterLab.

In Jupyter Lab, check what version of Python you are running:

from platform import python_version()
print(python_version())

Assuming you are running Python3.5+ and have the pip3 running, you can try directly installing selenium in your notebook in JupyterLab wish a shell command ! pip3 install selenium. If it is actually installed, you should see something like Requirement already satisfied:... otherwise it will work to install it.