pythonvirtualenvpycharmgoose

ImportError: No module named goose


Im trying to work with Python-Goose extractor. I Installed virtualenv, and followed the setup instructions. When running from PyCharm everything works great.

But when running from the Windows Command Prompt I'm getting this error:

C:\Users\tal>C:\virtual_enviroments\goose_venv\Scripts\activate
(goose_venv) C:\Users\tal>cd C:\main\prototypes\collection\goose-cli\app

(goose_venv) C:\main\prototypes\collection\goose-cli\app>extract-new-events.py
Traceback (most recent call last):
  File "C:\main\prototypes\collection\goose-cli\app\extract-new-events.py", line 1, in <module>
    from goose import Goose
ImportError: No module named goose

What am I doing wrong here?

Here is an image of it working in PyCharm (large):

Working in PyCharm.


Solution

  • Im not sure why, but after adding "python" at the beginning it worked. like that:

    python extract-new-events.py
    

    Now its working...