ricklamers / gridstudio

Grid studio is a web-based application for data science with full integration of open source data science frameworks and languages.
GNU Affero General Public License v3.0
8.88k stars 1.5k forks source link

problem with scrape.py #123

Closed jvw1954 closed 4 years ago

jvw1954 commented 4 years ago

Python out:

/home/userdata/workspace-59647061-e1e3-4553-856d-1ed0c64cdd7f/userfolder/scrape.py Traceback (most recent call last): File "python/init.py", line 282, in getAndExecuteInput File "", line 1, in ModuleNotFoundError: No module named 'requests'

Terminal:

root@daae6896be59:/home/userdata/workspace-59647061-e1e3-4553-856d-1 ed0c64cdd7f/userfolder# pip install requests Collecting requests Downloading https://files.pythonhosted.org/packages/1a/70/1935c770cb3be6e3a8b78ced23d7e0f3b187f5cbfab4749523ed65d7c9b1/requests-2.23.0-py2.py3-none-any.whl (58kB) |████████████████████████████████| 61kB 1.9MB/s Requirement already satisfied: idna<3,>=2.5 in /usr/lib/python3/dist-packages (from requests) (2.6) Collecting certifi>=2017.4.17 (from requests) Downloading https://files.pythonhosted.org/packages/57/2b/26e37a4b034800c960a00c4e1b3d9ca5d7014e983e6e729e33ea2f36426c/certifi-2020.4.5.1-py2.py3-none-any.whl (157kB) |████████████████████████████████| 163kB 4.6MB/s Collecting chardet<4,>=3.0.2 (from requests) Downloading https://files.pythonhosted.org/packages/bc/a9/01ffebfb562e4274b6487b4bb1ddec7ca55ec7510b22e4c51f14098443b8/chardet-3.0.4-py2.py3-none-any.whl (133kB) |████████████████████████████████| 143kB 3.1MB/s Collecting urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 (from requests) Downloading https://files.pythonhosted.org/packages/e1/e5/df302e8017440f111c11cc41a6b432838672f5a70aa29227bf58149dc72f/urllib3-1.25.9-py2.py3-none-any.whl (126kB) |████████████████████████████████| 133kB 3.0MB/s Installing collected packages: certifi, chardet, urllib3, requests Successfully installed certifi-2020.4.5.1 chardet-3.0.4 requests-2.23.0 urllib3-1.25.9 WARNING: You are using pip version 19.2.2, however version 20.0.2 is available. You should consider upgrading via the 'pip install --upgrade pip' command. root@daae6896be59:/home/userdata/workspace-59647061-e1e3-4553-856d-1 ed0c64cdd7f/userfolder# pip install bs4 Collecting bs4 Downloading https://files.pythonhosted.org/packages/10/ed/7e8b97591f6f456174139ec089c769f89a94a1a4025fe967691de971f314/bs4-0.0.1.tar.gz Collecting beautifulsoup4 (from bs4) Downloading https://files.pythonhosted.org/packages/e8/b5/7bb03a696f2c9b7af792a8f51b82974e51c268f15e925fc834876a4efa0b/beautifulsoup4-4.9.0-py3-none-any.whl (109kB) |████████████████████████████████| 112kB 1.8MB/s Collecting soupsieve>1.2 (from beautifulsoup4->bs4) Downloading https://files.pythonhosted.org/packages/05/cf/ea245e52f55823f19992447b008bcbb7f78efc5960d77f6c34b5b45b36dd/soupsieve-2.0-py2.py3-none-any.whl Building wheels for collected packages: bs4 Building wheel for bs4 (setup.py) ... done Created wheel for bs4: filename=bs4-0.0.1-cp37-none-any.whl size=2248 sha256=97d14c7c6bf3f208ef52099a1a83fa44d040a606d49832e6f10b00ac047a5e63 Stored in directory: /root/.cache/pip/wheels/a0/b0/b2/4f80b9456b87abedbc0bf2d52235414c3467d8889be38dd472 Successfully built bs4 Installing collected packages: soupsieve, beautifulsoup4, bs4 Successfully installed beautifulsoup4-4.9.0 bs4-0.0.1 soupsieve-2.0 WARNING: You are using pip version 19.2.2, however version 20.0.2 is available. You should consider upgrading via the 'pip install --upgrade pip' command. root@daae6896be59:/home/userdata/workspace-59647061-e1e3-4553-856d-1 ed0c64cdd7f/userfolder# pip install pandas Requirement already satisfied: pandas in /usr/local/lib/python3.7/dist-packages (0.25.1) Requirement already satisfied: numpy>=1.13.3 in /usr/local/lib/python3.7/dist-packages (from pandas) (1.17.0) Requirement already satisfied: pytz>=2017.2 in /usr/local/lib/python3.7/dist-packages (from pandas) (2019.2) Requirement already satisfied: python-dateutil>=2.6.1 in /usr/local/lib/python3.7/dist-packages (from pandas) (2.8.0) Requirement already satisfied: six>=1.5 in /usr/local/lib/python3.7/dist-packages (from python-dateutil>=2.6.1->pandas) (1.12.0) WARNING: You are using pip version 19.2.2, however version 20.0.2 is available. You should consider upgrading via the 'pip install --upgrade pip' command. root@daae6896be59:/home/userdata/workspace-59647061-e1e3-4553-856d-1 ed0c64cdd7f/userfolder#

Python out:

Traceback (most recent call last): File "python/init.py", line 282, in getAndExecuteInput File "", line 1 post.select('a.storylink')[0].get('href')) ^ SyntaxError: invalid syntax

After new start scrape.py gives no output at all.