Category : ubuntu

Environment(s) Ubuntu 20.04 & Debian 10 with Python 3.8 or 3.7, respectively. Postgresql versions 11, 12, and 14 have been tried. Psycopg2-binary 2.8.6 Overview I’m attempting to install a Django project, and I’m getting this error: psycopg2.errors.UndefinedFile: could not open extension control file "/usr/share/pgsql/extension/citext.control": No such file or directory The psycopg devs informed me this ..

Read more

I need to install pandas on a LinuxOS. Initially, I used sudo apt-get install python3-pandas It looked like the installation was complete but then I switch to Thonny and import pandas and get this Traceback (most recent call last): File "<pyshell>", line 1, in <module> File "/usr/local/lib/python3.7/dist-packages/pandas/_init_.py", line 22, in <module> from pandas.compat import ( ..

Read more

Wish You all beautiful sunny day! :D, I have a question for You guys. I have following python "script": import os os.system(‘ubuntu.exe’) Which opens Ubuntu running on my WSL. And now, when the Ubuntu terminal appears: I would like to execute following commands: sudo /etc/init.d/dbus start and sudo /etc/init.d/xrdp start using my python script (just ..

Read more

None of the highlighted shortcuts seem to workI have an Ubuntu instance running, I’ve already SSH’d would like to view it in GUI but when I try to save my config files, it doesn’t save. I tried ctr+x as well as "ctr+:->:wq" Nothing happens.Below is the command I’m using sudo nano ~/.vnc/xstartup Please advise on ..

Read more

The steps leading to the problem is as follows: I installed a package using pip. The package is here and its install doc is here. The command I used is pip install –upgrade tensorflow-graphics-gpu Because I don’t have super user privilege, the package was installed in my user space. pip prompted me for that. I ..

Read more

Hi I am trying to read a dataframe from sql server from a linux(ubuntu server). The file(gscm.ppk) has the admin keys in it I have used the following format to connect to sql server: *import urllib import pandas as pd params = urllib.parse.quote_plus("DRIVER={SQL Server Native Client 11.0};" "SERVER=dagger;" "DATABASE=test;" "UID=ubuntu;") engine = sa.create_engine("mssql+pyodbc:///?odbc_connect= {}".format(params)) df= ..

Read more

i try to run selenium on firefox using python and ubuntu 20.04 and keep getting this error File "tst3.py", line 3, in <module> driver = webdriver.Firefox() File "/usr/local/lib/python3.8/dist-packages/selenium/webdriver/firefox/webdriver.py", line 175, in __init__ self.service.start() File "/usr/local/lib/python3.8/dist-packages/selenium/webdriver/common/service.py", line 101, in start self.assert_process_still_running() File "/usr/local/lib/python3.8/dist-packages/selenium/webdriver/common/service.py", line 113, in assert_process_still_running raise WebDriverException( selenium.common.exceptions.WebDriverException: Message: Service geckodriver unexpectedly exited. Status ..

Read more

I am new to python and am trying to set up my environment so I can develop and debug lambda functions. I followed this tutorial. https://code.visualstudio.com/blogs/2020/07/01/containers-wsl I can successfully add a Lambda SAM application and I can set breakpoints and debug it. The problem is that if I try and install new extensions, it doesn’t ..

Read more