I have a code that uses the Firefox webdriver with Selenium to execute a couple javascript commands and fetch me some info. Since Debian doesn't use Firefox by default, and Selenium doesn't recognize Iceweasel as the equivalent of Firefox (which may be reasonable, but still kinda dumb), I downloaded and extracted the firefox-28.0 bz2 folder to my desktop. Next, I used the top answer suggested here to point Selenium to the binary:
I run Wheezy Xfce 64-bit. I went through the Synaptic listings and added Python 3.3.2 and Tkinter for it, and that works fine; but for some reason PyGtk is available only for Python 2.7, not for Python 3.3, unless I'm just using the wrong way to try to find it. Is there a PyGtk available for Python 3.3 in Wheezy, and, if so, how do I install it and then import it once it's installed?
I am unable to install matplotlib. I already have installed latest libfreetype and libfreetype-dev.But it still errors out on freetype, I am running Debian testing on my machine. Python is latest 3.5.b3 compiled from source and in virtual env , running the command :
pip install matplotlib
...... freetype: no [Requires freetype2 2.3 or later. Found ...] png: yes [version 1.2.50] ..... .....
* The following required packages can not be built: * freetype ....
Full error log here: [URL]....
I do not understand why requirement is not marked for compilation even though found.
I have written a shared library and successfully used debhelper 9 to create a Debian package from source using a Makefile generated by cmake. I then went about writing a python wrapper to that library and wish to package that wrapper in with the library so I can have a single distributable rather than 2 separate ones.
All of my attempts so far have me placing my python source and a setup.py file in the same directory as the makefile at the time where I call debuild.
From here I have tried a couple different configurations to my debian/rules file as seen below:
This try ran make, but completely ignored the python stuff. From some research I have gathered that the --buildsystem flag tells debuild to ignore any makefiles in the directory, which obviously causes a problem in my case.
Another attempt was to modify the build dependency to first run make and then call the python build process that file looked like this
This appears to somewhat work as both processes do build, but a few of the python files are still not getting installed.
Is this the way I should be going about doing this? I've noticed that most python wrappers tend to package themselves individually and then make that package dependent on the library it is attempting to wrap.
Just installed Debian 8 last night and trying to run one a few of my scripts that use easygui (a front-end for python-tk basically) and I keep getting alloc: invalid block any time a file or folder selection dialog is presented. I'm able to select a file/folder with no issues, but once the dialog closes I get a variation of what appears to be a memory error followed by alloc: invalid block.
Here's one of my scripts that does it. This one pops up a file selection dialog pretty early on to ask for a file to check, and as soon as I select any file the dialog closes and that error appears in the terminal. It happens whether I run it with Python 2 or Python 3. You will need to install python3-easygui for this script to run properly if you want to check for yourself what happens. This is a first time encountering this error for me.
I have a function definition in a Python 2.x script which take a tuple as one of its arguments, but 2to3 has no answers nor any of my searching on how to represent the same in Python 3.x
I work with python and I use emacs as my IDE tool. I have been running Debian Squeeze (6.0.9) for some time now with emacs 23.2.1 and ecb 2.32. I am able to access my python methods in the ecb-methods window with no problems. However I recently upgraded my desktop to Debian Wheezy (7.5) running emacs 23.4.1 and ecb 2.40 but I have lost access to the methods in the ecb-methods window. The window is just empty while the others (directories, sources and history) are all populated. I have a second laptop which I decided to upgrade to Debian Jessie, however Jessie recommends emacs 23.4.1 which is running with ecb 2.40 also. The result is the same as on Wheezy.
I have used the ecb menus and googled for a solution or even just a mention that such a problem exists but have come up with nothing. Either I have a unique situation here or am doing something really dumb.
I would like to upgrade to Wheezy or Jessie but I need access to methods in the ecb methods window. How to keep my upgrade and see the methods in the methods window of the ecb system ....
currently I'm running postgresql-8.3 server on lenny 32 bits. There are also installed some standard packages but in the near future I'd like to install mysql server on the same machine. I believe that 64 bit system will be faster so I decided to change from 32 to 64 bit. how to migrate postgresql database from 32 to 64 bits. I have postgresql data dir on separate volume. Will it be possible if I just use it as it is now in new 64 bit system with the same postgresql server config files or do I have to dump data and restore it in new installation ?
I want to migrate to bind 9.10 in debian wheezy. I don't want to take the source code from debian Sid since its an experimental version. So I have taken source code from official bind forum and compiled in debian wheezy. The compilation is successful but I am having problem in running the binary in debian wheezy. It's not honoring the binary even though I run it. I am not getting error messages on console but still it is not running.
I want to know whether its feasible to do this Or is it dependent on any other system libraries to make it run ?
Last few lines from Strace Dump ==============================
I want that I click with the mouse on the video, it paused.I notice that there is "BaconVideoWidget" which I guess is the video rendering widget but it don't have signal named "clicked":
I need to run "Selenium" test scripts (written inside TestNG) on a headless linux server (Red Hat Enterprise Linux Server release 5.3) using Xvfb. while executing the script, I get the following warnings in the "server.log" file.Warning: Cannot allocate colormap entry for "#c0c0c0"Warning: Cannot allocate colormap entry for default background.This warnings occurs when the script try to launch Firefox. Firefox is not getting launched and the code gets hanged in the middle, without executing any test case.I suspect the problem could be with the Xvfb's screen resolution. screen resolution might be lesser than firefox'sexpected resolution.we can be able to specify our own display in POM file using <display> tag.
I have successful upgraded my system from Lenny to Squeeze and have even installed NVIDIA Driver successful, as well as other applications that I need. My system is now running smoothly and okey. My applications are also running smoothly except Skype 2.2 (Debian Forum Guys are currently helping me solve it).
However, I do want to upgrade my file system to ext4 in order to take its advance features and advantages especially that my system is now in WORK HORSE mode. However, I am not confident enough to do it because the guide is limited and does not tackle the issue of a system using ext3 with LVM2 on it.
Therefore, my question is how do I migrate (LIVE) my Ext3 to Ext4 on my system that uses LVM2? A clear and understandable guide is highly appreciated especially that I am newbie on it.
I have a python script I wrote a while ago and now I would like to call that script from inside C. I know how to do one command from C, but how would you execute an entire script from C, and passing arguments? Like:
I have decided to learn python as it seems to be powerful not just for web development (like php) but also a clean powerful language for other puposes.
Q: Can someone suggest a tutorial or book, on learning python (beginner to intermediate) which has as its focus for learning, web development?
In order of preference: 1. Comprehensive, 2. Online, 3. Free
I have a bash script that I want to import in to Python, mainly just to see if I can or not. However in the script I do use some piping of commands into sed to trim it down to what I need. When I tried doing it with the os.system() call, it didn't work. The exact error is
I am using Centos. I have written some scipts in python that access my routers and fetch the configuration, etc. Now i was thinking of creating a web interface which i can access from my windows XP. I want it to have good look n feel :-),