Category : python-venv

Trying to use a CLI scraper that needs python 3.10 I installed python 3.10 and created the virtual environment using these commands: sudo apt update && sudo apt -y install python3.10 sudo apt -y install python3.10-dev python3.10-venv python3.10 -m venv venv source venv/bin/activate But then when I try to install the requirements pip3 install –update ..

Read more

WARNING: Running pip as the ‘root’ user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv I get the above WARNING while trying to pip install some packages in Google Colab. The warning statement says, to use a virtual environment. How ..

Read more

I have created a virtual environment for my project A where I installed many packages inside it including opencv. On the other hand I create another virtual environment for project B, I need to only copy the opencv package from project A environment to project B. I used this command sudo cp -r VENV1/lib/python3.6/site-packages/opencv_* VENV2/lib/python3.6/site-packages/ ..

Read more

I am trying to send a photo with whatsApp. this is the code: def prueba(foto : str): print("foto : ", foto) global driver driver = crear_driver_session() WebDriverWait(driver, timeout= 3).until(lambda driver: driver.find_element_by_xpath(‘//*[@id="main"]/footer/div[1]/div/span[2]/div/div[1]/div[2]/div/div’)).click() file_image = WebDriverWait(driver, timeout= 10).until(lambda driver: driver.find_element_by_xpath(‘//*[@id="main"]/footer/div[1]/div/span[2]/div/div[1]/div[2]/div/span/div[1]/div/ul/li[1]/button/span’)) file_image.send_keys(foto) WebDriverWait(driver, timeout= 10).until(lambda driver: driver.find_element_by_xpath(‘//*[@id="app"]/div[1]/div[1]/div[2]/div[2]/span/div[1]/span/div[1]/div/div[2]/div/div[2]/div[2]/div/div’)).click() prueba(‘img/franco.jpg’) and these the errors: c:UsersadriaDocumentsProgramacionPythonBOT-WhatsAppEmpresauriosV2.py:158: DeprecationWarning: find_element_by_* commands are deprecated. ..

Read more

When running a build in Windows, Jenkins does not get past activation of a Python virtual environment. I have setup Jenkins server in Windows 10 to run unit tests in Python. I created a "Freestyle project". In "Build", I selected "Execute Windows batch command" and entered these commands: echo ‘BEFORE ACTIVATION’ C:Developmentvenvsvenv366-001Scriptsactivate.bat echo ‘AFTER ACTIVATION’ ..

Read more

I’m following the Python Flask guide from Microsoft, but for whatever reason the debug part is just not working for me. I figured it would be way easier to record a short minute showing the error I’m having and also, showing the steps I’m taking. https://www.loom.com/share/8dfcf53e9c19468ea8a74281931a4fd4 Any help is massively appreciated! The video doesn’t have ..

Read more