vscode: first script-test after a qucik installation - some minor issues
on a MX-Linux version 19.1 i have installed VSCodium 1.43.2
Version: 1.43.2
Commit: 0ba0ca52957102ca3527cf479571617f0de6ed50
Date: 2020-03-24T21:03:16.125Z
Electron: 7.1.11
Chrome: 78.0.3904.130
Node.js: 12.8.1
V8: 7.8.279.23-electron.0
OS: Linux x64 4.19.0-6-amd64
i have Python installed - unfortunatly not with venv - but globally .
to test the whole system i just run a little testscript.
btw - to setup with venv i will take care later the weekend. Now at the moment i only will test the system.
import requests
from bs4 import BeautifulSoup
import pandas as pd
page1 = requests.get('https://en.wikipedia.org/wiki/Peths_in_Pune').text
soup1 = BeautifulSoup(page1, 'lxml')
table = soup1.find('table',{'class':'wikitable sortable'})
#table
table1=""
for tr in table.find_all('tr'):
row1=""
for tds in tr.find_all('td'):
row1=row1+","+tds.text
table1=table1+row1[1:]
row1
see the output
^
SyntaxError: unexpected EOF while parsing
martin@mx:~
$ /usr/bin/python3 /home/martin/dev/python/test.py
File "/home/martin/dev/python/test.py", line 2
^
SyntaxError: unexpected EOF while parsing
martin@mx:~
$ /usr/bin/python3 /home/martin/dev/python/test.py
Traceback (most recent call last):
File "/home/martin/dev/python/test.py", line 5, in <module>
soup1 = BeautifulSoup(page1, 'lxml')
File "/usr/lib/python3/dist-packages/bs4/__init__.py", line 196, in __init__
% ",".join(features))
bs4.FeatureNotFound: Couldn't find a tree builder with the features you requested: lxml. Do you need to install a parser library?
martin@mx:~
$ /usr/bin/python3 /home/martin/dev/python/test.py
Traceback (most recent call last):
File "/home/martin/dev/python/test.py", line 5, in <module>
soup1 = BeautifulSoup(page1, 'lxml')
File "/usr/lib/python3/dist-packages/bs4/__init__.py", line 196, in __init__
% ",".join(features))
bs4.FeatureNotFound: Couldn't find a tree builder with the features you requested: lxml. Do you need to install a parser library?
martin@mx:~
$ python3 -V
Python 3.7.3
martin@mx:~
$ python3 -V
Python 3.7.3
martin@mx:~
Question
tarifa
hello dear fellows here at neowin,
vscode: first script-test after a qucik installation - some minor issues
on a MX-Linux version 19.1 i have installed VSCodium 1.43.2 Version: 1.43.2 Commit: 0ba0ca52957102ca3527cf479571617f0de6ed50 Date: 2020-03-24T21:03:16.125Z Electron: 7.1.11 Chrome: 78.0.3904.130 Node.js: 12.8.1 V8: 7.8.279.23-electron.0 OS: Linux x64 4.19.0-6-amd64
i have Python installed - unfortunatly not with venv - but globally .
to test the whole system i just run a little testscript.
btw - to setup with venv i will take care later the weekend. Now at the moment i only will test the system.
import requests from bs4 import BeautifulSoup import pandas as pd page1 = requests.get('https://en.wikipedia.org/wiki/Peths_in_Pune').text soup1 = BeautifulSoup(page1, 'lxml') table = soup1.find('table',{'class':'wikitable sortable'}) #table table1="" for tr in table.find_all('tr'): row1="" for tds in tr.find_all('td'): row1=row1+","+tds.text table1=table1+row1[1:] row1
see the output
...any idea - and thoguts regarding this error
Link to comment
https://www.neowin.net/forum/topic/1393945-vscode-first-script-test-after-a-quick-installation-some-minor-issues/Share on other sites
3 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now