Use Latest Version of Python 3 When Launching IDLE - homebrew

I used homebrew to install a new version of Python3 on my Mac. The version I installed is Python 3.7.
When I launch "idle3" from terminal, the shell still displays "Python 3.6.0 Shell" at the top of the window.
Is there some way to configure idle to "use" the latest version of Python 3 that I installed using Homebrew?

The version of idle3 provided by homebrew is located in /usr/local/bin. This location should appear first in your PATH.
Edit your ~/.bash_profile file and add at the end:
export PATH="/usr/local/bin:$PATH"

Related

Using editcap from specific wireshark version

I currently have Wireshark 2.6.8 and 3.0.2 installed on Ubuntu 18.04, and I would like to be able to use editcap as included in the 3.0.2 installation to modify pcap files.
However, every time I run editcap (a simple editcap -h to verify the build that I am using) from the terminal, it shows that I am running it from Editcap (Wireshark) 2.6.8 (Git v2.6.8 packaged as 2.6.8-1~ubuntu18.04.0)
Is there a way to change this without removing Wireshark 2?
there is no usr/local/bin/editcap file
Then the only version of Wireshark you have installed appears to be the 2.6.8 version.
the 3.0.2 was built from source
You may have built the 3.0.2 version from source, but, unless you ran "make install" (or "ninja install" if you used Ninja rather than make), you haven't installed it. You may have to run that as root.
Once you've installed the version you built from source, there should be a /usr/local/bin/editcap (unless you've explicitly configured the build to install somewhere other than the default location).

How To Update Spyder 3.3.0

I currently use Spyder 3.2.8 with Anaconda/Miniconda. When I open the Spyder editor, a Spyder update window pops up and shows Spyder 3.3.0 is available. It also indicates that "please wait until new conda packages are available and use conda to perform the update".
I followed the direction using anaconda prompt to update. My computer shows the packages were already installed successfully. However, my Spyder Editor is still the version 3.2.8 I also used Anaconda Navigator to update by clicking on the "gear" but no luck. How can I update from Spyder 3.2.8 to 3.3.0? Thank you!!!!
The only thing which really did the trick is
conda install spyder=3.3.0
so in this case you have to explicitly provide the package version.
I have a clean anaconda 5.2.0 installation.
Update: after that i can "conda update spyder" and everything is consistent (for 3.3.1 and further versions)
(Spyder maintainer here) If you already tried to update (either through Navigator or in a system terminal) and you didn't get a new version, that means that conda packages are still unavailable and you have to wait a couple more days to perform the update.
You can get it from conda-forge:
conda install -c conda-forge spyder
https://anaconda.org/anaconda/spyder
As you can see in that internet address, there is only 3.3.0 version for linux and osx.
I think that 3.3.0 version for window would be a little late.

How to install appium in elemantary os

I am new to appium. How can I install appium in elemantory os. I downloaded the appium from official site. A dmg file is downloaded. But dont know how to move further.
.dmg file is OS X package. You don`t need it.
According to this page on Appium`s official web site: http://appium.io/downloads.html
Appium Desktop app is available only on Windows and OS platforms.
On Linux you need to install it as Node package.
Appium won't run if node/npm are install as a privileged (sudo) user. So you`ll have to use another way to install them. You can use Linux version of Homebrew( https://github.com/Linuxbrew/linuxbrew ) or download node binaries ( https://nodejs.org/en/download/ ) and place them in your home folder.
You may add an environmental variable for appium. To do it open ~/.bashrc file and add this string to the end:
export PATH=$PATH:/bin
And then reread that file:
source ~/.bashrc
Install Appium:
npm install -g appium
Run appium:
appium&
Elementary OS is very similar to Ubuntu. You may found a lot of information how to install Appium on Ubuntu. For example check this link:
How to setup Appium in Ubuntu for android

Cannot install tokumx on osx: cannot execute binary file

I download from tokumx website newest version. When I start mongod I have an error,
bash: ./mongod: cannot execute binary file
Any solution.
The only version available directly from the website is for linux, you'll need to contact them to get an OSX build.
The TokuMX Community Edition downloads featured on the Tokutek site are currently 64-bit Linux only. The system requirements also note that only 64-bit Linux is officially supported.
However, for OS X users there is a Homebrew TAP package available if you want to install binaries for development purposes.
Assuming you have have Homebrew installed, you should be able to install the tokumx-bin package by running the following from your shell prompt:
brew tap tokutek/tokumx
brew install tokumx-bin
Notes:
the package install will fail unless you enter some text when prompted for an email address (though any text including the default "email address" seems to work)
the tokumx-bin package conflicts with the mongodb package as both use the same names for binaries
TokuMX binaries and data files are not interchangeable with MongoDB

How to start spyder after macports installation

this is my first question to post.
I am working with python at the moment (on mac os 10.6.8), and have struggled for the lack of an ide. I have been using a version of emacs that offers syntax highlighting, but does not offer the ability to browse variable values without print statements. What I was looking for was the equivalent of eclipse, which basically died on my machine when I upgraded from 10.4.11 to 10.6.8. I've not been successful resurrecting it. Time to move on.
My graduate advisor suggested spyder, and last night I bit the bullet, installing macports and (apparently) spyder, successfully.
The problem I'm having is HOW do I start spyder once installed. Apparently, python spyder.py is not the approach to use. Elsewhere (not here) I saw a post that suggested that there was supposed to be a batch executable that I should be able to find by typing
which spyder
This yielded nothing.
The spyder documentation (located at http://packages.python.org/spyder/options.html) suggests that the command
python spyder.py
is the way to go. Here is the result:
Bobs-Machine:spyderlib robertlilly$ python spyder.py
Traceback (most recent call last):
File "spyder.py", line 31, in
from spyderlib import qt #analysis:ignore
ImportError: No module named spyderlib
Most of my searches here have just pointed out that one should use MacPorts for the install, nothing after that. The readme included the macports spyder install, I thought, didn't provide sufficient direction.
If anybody knows where to look, that would be great.
Regards,
Robert
For me, I installed the macports package py37-spyder. In /opt/local/bin there is the package there, spyder-3.7. Launching that works already. In order to make that the default, I have to run
sudo port select --set spyder spyder-37
Then I can run it directly as
spyder from Terminal. If you want to see which versions of spyder are available on your system, then
port select --list spyder
will tell you the versions you have.
Macports should install a spyder binary to /opt/local/bin/spyder, or thereabouts. If you already have /opt/local/bin/ in your PATH variable, then just run:
$ spyder &
Or more explicitly:
$ /opt/local/bin/spyder &
...if you don't have the PATH setup. Hope that helps.
I just recently installed spyder via MacPorts.
(the command I chose was sudo port install py27-spyder, which installed Spyder v.2.2.3 on Mac OS 10.7.5 & Python 2.7.5)
At the end of the Spyder installation, the terminal showed "use command spyder to launch" (or something to that effect)
So, for me, I simply had to type spyder into a terminal to launch it. Your error referring to missing spyderlib might mean that your spyder installation did not in fact complete properly. (I have found it's not uncommon to have to track down 2-3 weird bugs and dependencies for complex MacPorts installs).
If you find it did complete properly, then perhaps the MacPorts directory was not added to your PATH. It you open ~/.profile, you should seen that MacPorts added it's directory to the shell's search path. Here's what the MacPorts installer added to my .profile:
# MacPorts Installer addition on 2012-11-19_at_17:16:31: adding an appropriate PATH variable fo$
export PATH=/opt/local/bin:/opt/local/sbin:$PATH
# Finished adapting your PATH environment variable for use with MacPorts.
To make a Mac OS-friendly icon to launch Spyder, I then made a new text file (I did it with Terminal.app>pico) containing the following text:
#!/bin/bash
spyder
and saved the file as spyder.command. This file is now double-clickable and will launch Spyder (and an alias to it can have a more normal name like "Launch Spyder"). Throw it into the /Applications folder & make an Icon for it via /Utilities/Icon Composer.app (grab the Spyder icon on the website) and it's like a Pythonic Matlab!

Resources