py.test SetUp/TearDown for whole test suite

I have a Python package that needs access to X11. I want to use Xvfb so that I do not have to have a real X11 installed on the build machines -- Hudson in this case. So, I would like to start a...

Xvfb IO Error: client killed

I'm running the following pyqt application on an xvfb server on amazon ec2 ubuntu 12.04, I get the correct ouput from the qt application but I always get the aforementioned error when the app is...

Selenium Chromedriver Hangs?

I have a long running python app that will periodically (every 30-60 seconds) open a webpage with selenium and chrome driver, run some javascript and take a screenshot. Its running on an EC2...

Is it possible to run xvfb on Heroku?

I'd like to run xvfb on Heroku. On my mac, I used the dmg to install it. Would anyone have any idea how to go about this on Heroku? I came across these buildpacks...

CentOS 7 Python ImportError: cannot import name QtWebkit even though it's in my PyQt4 site-packages directory

I'm trying to install Ghost.py in CentOS 7. I've installed the packages below, but it appears that I've missed something, or a path is not available somewhere. I'm really struggling here, and...

Headless Selenium + Xvfb + Chrome on OSX 10.11

Okay, so first I learned that Xvfb wasn't included with my OS X version, so I installed it from http://www.xquartz.org/. and that seemed to have worked: which xvfb /opt/X11/bin/xvfb But when I...

Django headless selenium hangs

I'm in the beginning phase of developing a webapp with Django. I'm using a headless selenium setup in Vagrant. Accessing the pages works fine but in the following test it just hangs. I not sure...

how to Install xvfb and run with python and selenium?

I'm trying to use Xvfb to run headless browser. following process which I followed so far Installed xvfb sudo apt-get install xvfb Created virtualenv, Installed xvfbwrapper run following...

How to submit HTTP authentication (Flask BASIC Auth) with Selenium to ChromeDriver

I am accessing a Flask app URL with BASIC Auth from xvfbwrapper import Xvfb from selenium import webdriver from selenium.webdriver.chrome.options import Options def main(): xvfb = Xvfb() ...

Pip cannot install Dryscrape

I am trying to install dryscrape on my windows 10 labtop with pip and I have python 3.5. I start off with... C:\Users\Nick L>pip install dryscrape Collecting dryscrape Collecting...

pip install dryscrape fails with "error: [Errno 2] No such file or directory: 'src/webkit_server'"?

I need to install dryscrape for python but I got error, what's the problem? C:\Users\parvij\Anaconda3\Scripts>pip install dryscrape I got this: Collecting dryscrape Collecting webkit-server>=1.0...

Dockerfile not able to build on Ubuntu 14.04 but does fine on Windows 10 and Ubuntu 16.04

I have the following Dockerfile - FROM ubuntu:16.04 RUN apt-get update -y && apt-get install -y \ python-pip \ python-dev \ python-lxml \ build-essential \ qt5-default \ libqt5webkit5-dev...

Django: unbound method is_authenticated() must be called with AbstractBaseUser instance

This issue is rather strange. Here's a stack trace: Environment: Request Method: GET Request URL: http://localhost/en/dashboard Django Version: 1.9.6 Python Version: 2.7.12 Installed...

I can't run `dryscrape` in linux, pythoneverywhere

I've successfuly instaled the dryscrape along with some accompaning packages (webkit-server xvfbwrapper) in pythoneverywhere.com. 13:45 / $ pip3.5 install --user dryscrape Collecting dryscrape ...

Python webscraper using selenium works normally but not when headless

I am using python, selenium and the Firefox web-driver to scrape a website over a couple of pages. One of those pages involves executing java-script to simulate clicking a button with an onclick...

How to solve error in installing portia

I have problems when installing portia on ubuntu 16.04 Failed building wheel for cryptography Running setup.py clean for cryptography Successfully built mysql-connector-python Failed to build...

headless chrome in docker with python. Chrome failed to start: crashed

I want to run this simple script inside a docker container: def hi_chrome(): from xvfbwrapper import Xvfb from splinter import Browser vdisplay = Xvfb() vdisplay.start() print...

Python dryscrape "Xvfb does not start" under XQuartz & xvfbwrapper & MacOSX Sierra

Under MacOSX Sierra, and XQuartz 2.7.11, Python 2.7. I was able to install dryscrape and its required other python packages. I've tried quite a few methods to get some simple code working, but I...

Xvfb virtual display error, no module named fcntl

Im trying to make a virtual display for a splinter script. When i runi get the error code "ImportError: No module named 'fcntl'" from splinter import Browser from xvfbwrapper import Xvfb vdisplay...

No keyword with name 'Start Virtual Display' found

I've been doing some research into headless testing with Robot Framework and I've come across Xvfb. So I installed it with: pip install robotframework-xvfb Then in my test case file, I've...

Selenium python library via docker, Chrome error failed to start: exited abnormally

I am trying to run some python scripts with the selenium library from within a docker container based on miniconda/anaconda, but I keep getting this error:...

My dqn doesnt't work well: reward doesn't change, loss continues to increase

I'm trying to train Gradius with gym-retro and DQNAgent of keras-rl, but it doesn't work well. reward doesn't increase, loss continues to increase. I can't understand what is wrong. A part of...

WebDriverException at / Service /usr/bin/chromium-browser unexpectedly exited. Status code was: 127

I'm trying to run my crawler using selenium, webdriver and xvfb on pythonanywhere server (if it can help). I also tried to use pyvirtualdisplay instead of xvfb to create a browser window for...

Importing the numpy c-extensions failed in MacOS

Importing the numpy c-extensions failed I am trying to use numpy in terminal, when i imported it it returned an error.But whe I import numpy in pytharm Python Console,it worked well.I have python...

ContextualVersionConflict when importing guesslang package

When importing guesslang package, I've got ContextualVersionConflict error about html5lib package. ContextualVersionConflict: (html5lib 1.0.1...

Python unable to pip install Dryscrape

I'm trying to install dryscrape python library using pip. I tried : pip install dryscrape But i'm getting error, Traceback : Collecting dryscrape Using cached...

How to run moderngl in Colab?

I'm trying to run moderngl in Colab. I installed it and ran a virtual display: !sudo apt-get update --fix-missing && apt-get -qqq install x11-utils > /dev/null !sudo apt-get update --fix-missing...

Python Selenium: How to make browser window not open

how to make selenium window not open? i don't want see open window, but i need use selenium, because i need get info about headers, who load very slow. Code: from selenium import webdriver from...

`cannot connect to chrome at 127.0.0.1:37541` when using undetected-chromedriver with Python

After using Selenium, I decided to try undetected-chromedriver so I installed it using pip install undetected-chromedriver However, running this simple script import undetected_chromedriver.v2...