New answers tagged

0

Okay, seems like I've fixed it. I opened tinfoleak.py and removed an argument from the Tweepy API constructor call. My Tweepy version was too new for Tinfoleak 1.5 I guess. source-screenshot


2

venv is a convenience script to create virtual envs, but does not fully replace everything virtualenv can do. Using either is fine for most cases though. virtualenv is not obsolete. python3 -m venv works after installing python3-venv because Debian strips out some scripts from the base Python package. python3-virtualenv doesn't put the virtualenv script ...


0

Try this: sed '2,$s/^Virtual Machine/\n&/' file


0

Write and empty echo where you want that newline For example echo Foo echo echo Bar Results in... Foo Bar


1

You can't. There isn't a single class or object that's used to input text in Linux programs. There is on MacOS, but not on Linux.


0

Try Shift+Right Click Click on a .py file in explorer and selecting "open with..." and then manually selecting the python interpreter. And there is another checkbox that asks whether to use the settings for all files of this type, you should check that. Also, make sure your PATH (system/user environment variable) includes the path to your python ...


-1

You need to already have python installed so that it can be called from the command prompt. Download your 3rd party plugin as a zip. ex. AutoRemovePlus Extract that plugin to a folder. Shift right click in the folder and click "Open command window here" Now run "python setup.py bdist_egg" - this will created a folder within that folder called dist. Open ...


-1

I encountered the same problem. In the end I downloaded SIP and PyQt from riverbankcomputing.com, and installed them with: python configure.py make make install


1

I had this exact error using CentOS 6.7 (Final) on a 64 bit system. I had to change two paths in order for python to work again. (Specifically gdb was giving me the same error you were getting.) export PYTHONHOME=/usr/lib64/python2.6/ export PYTHONPATH=/usr/lib64/python2.6/ Other answers were saying to only modify one of those variables or use the ...


3

I use supervisord to do that. Cron's fine for starting it once, and keeping it running (use @reboot), but you need something a little less basic to keep an eye on things. My config files are per application (and in ubuntu something like /etc/supervisord/conf.d/foo.conf) This is my ttrss update script file but its a good starting point. command=php ...


3

There are more options: you can do as you suggested by using python3 main.py & and then closing the ssh pipe (using without & will make the script exit when you close the ssh connection) you can set a cron job for the script once I did a simple bash script that will listen for new information on a remote git server and run the updated script every ...


0

Well, I don't know if a column chart is really the best way to show grain size vs position, I'd try a scatter chart. First, I made a pivot table to arrange the data in a better layout, with dates in the columns area, distance in the rows area, and average grain size as the values. This is in E1:I9 in the screenshot. You can't make a scatter chart as a ...


1

Found the solution. MP4 cannot write to a pipe and thus it cannot stream. To be abe to stream, it needs to be able to seek back at the beginning of the file to write the output header when it is finished. I found a solution to fix this. Simply add the option -movflags frag_keyframe+empty_moov.


0

== is equality testing, = is assignment. So it should be: Tmin = float(raw_input("Enter temperature value (min): ") Tmax = float(raw_input("Enter temperature value (max): ") if Tmin and Tmax: Tmean = (Tmin+Tmax)/2 else: Tmean = float(raw_input("Enter temperature value (mean): ")


0

Do display the entire method list hit CTRL+R on Windows, or CMD+R on Mac.


1

For me on OSX, my Python installation was in my home directory due to admin restrictions which caused font location confusion. I was able to get Helvetica working following these steps: http://blog.olgabotvinnik.com/blog/2012/11/15/2012-11-15-how-to-set-helvetica-as-the-default-sans-serif-font-in/ Download and install Fondu to convert Mac-Helvetica to ...


0

Here's another option to consider, using Excel's built-in efficiencies with Tables and Pivot Tables. Convert your data into columns Data > Text-to-Columns Create an Excel Table from your data (with a cell in your data selected) Insert > Table Create a Pivot Table from your Table (with a cell in your Table selected) Insert > Pivot Table, with the ...


0

Here's one idea: Create a new table that tabulates the data differently and make a chart off that. It's not a perfect solution but it works and it's easy to expand as your data grows. First, here's what the result looks like: You can see your original data in columns A:D. I actually modified it because there were two very large values and they made it ...


2

I can't add comment yet, only answer: Centos relies on python 2.6 for yum. You may break your system and yum if switching to 2.7 globally.


-1

Try to update pip then reinstall virtualenv! That work for me


0

rka you can find a website to each user package combination. You asked for pandoc from zhenxieit's repository. You can find it on [https://anaconda.org/zhenxieit/pandoc] how to install it. This specific package installs with conda install -c https://conda.anaconda.org/zhenxieit pandoc



Top 50 recent answers are included