I've installed eth brownie with the command pip install eth-brownie but when ever I type brownie, it says
The term 'brownie' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:1
I had this problem also, when running "pip install eth-brownie" in the command line, I was given a warning that said
C:\Users\my_username\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\Scripts
is not on the PATH.
You could try running pip uninstall eth-brownie and re-installing pip install eth-brownie to see which file you need to add to PATH.
Copy the file path it gives (should look similar to what I posted above)
To add this to path (on windows 10) type advanced system settings into the search bar, click view advanced systems settings, a window that says "system properties" should pop up, click environment variables..., in the next window that pops up (titled environment variables) click on path then click edit, a new window will pop up titled edit environment variable click new then paste the file path into a new line. Click ok and close all of your programs (if you don't close/restart your programs they will not be aware of the change).
When you open your IDE (visual studio code in my case) you should be able to run brownie by typing brownie
This at least causes a temp recognition of "Brownie":
$env:Path += ";C:\Users\<< username >>\.local\pipx\venvs\eth-brownie\Scripts"
This path will display too if you try to reinstall Brownie. Then add it to PATH variables.
I got zsh not recognize brownie command error, so i add the brownie executable into my PATH in .zshrc worked:
export PATH="/Users/{your_user_name}/.local/pipx/venvs/eth-brownie/bin:$PATH"
Not sure if this works for you.
The following steps worked for me on Mac OS.
step1: uninstall eth-brownie "pip uninstall eth-brownie"
step2: re-install "pip install eth-brownie"
step3: Quit VS Code and Open the project again.
using 'pip install eth-brownie' instead of 'pipx install eth-brownie' solved the problem for me.
I faced the same problem 6 months ago. The issue was with the Python paths in System Environment Variables. I had installed a 3.10 version of python however, pip and pipx was still installing packages in the path of 3.09. You can verify if you are facing the same problem:
Hit Windows button and search for "Advanced System Settings"
Hit Environment Variables to see the Path field
If you see multiple paths of python versions, then that is a possible problem
What you need to do then is
uninstall eth-brownie "pip uninstall eth-brownie"
come back to the Path field in Advanced System Settings
Remove any redundant paths by hitting the edit button
Run pipx install eth-brownie (using pipx is recommended over pip)
step2: re-install "pip install eth-brownie"
Related
PhpStorm was running fine till this morning but suddenly it has stopped working. Since the IDE was not loading at all I decided to reinstall it.
The first step was I used the following command to remove the application
$ sudo rm -R ~/Phpstorm*
Then I downloaded version 2016.1 from https://confluence.jetbrains.com/display/PhpStorm/Previous+PhpStorm+Releases and followed the instruction as shown in this article:
https://www.jetbrains.com/help/phpstorm/install-and-set-up-product.html
But neither any launcher icon was created nor I am able to find PhpStorm in application search.
Running $ ./phpstorm.sh in terminal window gives me
OpenJDK 64-Bit Server VM warning: ignoring option MaxPermSize=350m;
support was removed in 8.0
The above message is familiar to me because it used to come every time I run PhpStorm from terminal.
But after reinstall, the message is appearing but the application does not start.
Edit
Content of /usr/share/applications/phpstorm.desktop
[Desktop Entry]
Version=5.0.4
Name=JetBrains PhpStorm
# Only KDE 4 seems to use GenericName, so we reuse the KDE strings.
# From Ubuntu's language-pack-kde-XX-base packages, version 9.04-20090413.
GenericName=Text Editor
Exec=phpstorm
Terminal=false
Icon=/opt/PhpStorm-145.1616.3/bin/webide.png
Type=Application
Categories=TextEditor;IDE;Development
X-Ayatana-Desktop-Shortcuts=NewWindow
[NewWindow Shortcut Group]
Name=New Window
Exec=phpstorm
TargetEnvironment=Unity
Reference article:
https://blog.shaharia.com/create-phpstorm-luncher-and-terminal-command-on-ubuntu
I installed scilab.6.0.0 and backdoor fromscilab website (which I could not find it from Application>Module maneger>atom>Technical). I moved the backdoor file my home and from scilab command line I installed it
-->atomsInstall('/home/user/BackDoor_0.2_5.5.bin.x86_64.linux.tar.gz')
Even though, it installed backdoor successfully, when I restart the scilab I got this error message with backdoor
Start Toolbox BackDoor
Load macros
atomsLoad: An error occurred while loading 'BackDoor-0.2':
lib: Old binary lib detected. Please recompile it for Scilab 6.
As I understand I need to update the library, but I don't know how?
Would sb tell me explicitly (because I am a newbie user of scilab) how can I get over the error?
at the and I try to connect octave and scilab and when I try to run a demo script at octave I get also this error
>> sci_sim_example
Scilab connection failed
FYI: I already installed sci_cosim package (after I downloaded the package, I write to octave prompt >>pkg install sci_cosim_0.1.3.tar.gz), and I load it before running the script.
How can I recompile the lib: Old binary lib detected
Thank you so much for your help in advance
Here's what worked for me.
Download Scilab 5.5.2 (link for Linux 64bit version)
Extract the .tar.gz file in your preferred system location to install it there. Generally, my preferred location to extract / install self-contained packages is inside /opt .
You can extract the .tar.gz file using your filebrowser's graphical facilities, or on the command line; if /opt is owned by root (which it usually is) you may need to change ownership after extraction. E.g. your installation might look something like this:
cd /opt
sudo wget http://www.scilab.org/download/5.5.2/scilab-5.5.2.bin.linux-x86_64.tar.gz
sudo tar -xvzf ./scilab-5.5.2.bin.linux-x86_64.tar.gz
sudo rm scilab-5.5.2.bin.linux-x86_64.tar.gz
sudo chown $USER ./scilab-5.5.2 -R
Launch scilab by typing
/opt/scilab-5.5.2/bin/scilab &
in your terminal.
Once scilab is launched, go to Applications->Module Manager ATOMS. In the new window that comes up, click on All modules -> BackDoor -> Install.
You should get a message saying "Installation done, please restart SciLab".
Exit Scilab, and launch it again from the terminal. If you see a message:
atomsLoad: An error occurred while loading 'BackDoor-0.2':
File "/opt/scilab-5.5.2/share/scilab/contrib/BackDoor/0.2/etc/backdoor.start" does not exist.
then type the following commands in your terminal to rename the affected files:
cd /opt/scilab-5.5.2/share/scilab/contrib/BackDoor/0.2/etc/
mv BackDoor.start backdoor.start
mv BackDoor.quit backdoor.quit
Restart SciLab again. Hopefully this time it will work and SciLab will inform you that BackDoor is listening for connections at a certain port.
PS. Also note that from the octave side of things, the -auto option is no longer accepted when you perform a pkg install. You will need to load the sockets and sci_cosim packages manually each time you want to use this.
I'm trying to install Pygame for python 3.5 32bit. I have learned that I can open the .whl files provided on the site by using the pip command. The problem is I've tried multiple ways doing this but with constant error.
python -m pip install pygame-1.9.2a0-cp35-none-win32.whl
'python' is not recognized as an internal or external command,
operable program or batch file.
The file I'm trying to install: pygame-1.9.2a0-cp35-none-win32.whl
My python program is located in my programs folder and everything else works fine.
You need to add python.exe to your Windows PATH variable.
The is the system variable that the operating system uses to locate the needed executables from the command line or Terminal windows. [1]
Actually there are many methods to set the PATH variable on windows. One way is to type
set PATH=%PATH%;location path of Python.exe
into the windows command-line interpreter (cmd):
set PATH=%PATH%;C:\Python35-32
Now -- before running the pip command -- you need to make sure that either
your working directory is set to the same folder where your pygame-1. ... in32.whl file is located
or
you supply the full absolute or relative path to the pip command.
Now you should be able to run your python -m pip command after restarting the cmd.exe.
if you get trouble when install pygame error about missing visual studio 10+. I have the answer: the problem is not about have or not have visual studio, because I try many version but it not work. The problem is file: between tar.gz and .whl so, this is the solution:
1) download file:
http://www.lfd.uci.edu/~gohlke/pythonlibs/#pygame go here and download your pygame version, notice about x64 or x86 and python version. my system is x64 and python is 3.4 so I choose: pygame-1.9.2a0-cp34-none-win_amd64.whl
2) put it in some where to install:
I put it in "C:", so open cmd: and type: cd C:\ (this changes the location to C:)
3) install
pip install C:\pygame-1.9.2a0-cp34-none-win_amd64.whl
done !
I am facing problem setting up java path while installing mysql database in my ubuntu PC. The procedure shows the following and i hav no idea for setting the java path
Error: /usr/lib/jvm/java-1.7.0-openjdk-amd64/bin/java not found or not a valid JDK
Type the full pathname of a JDK installation (or Ctrl-C to quit), the path will be stored in /home/devkrishna/.sqldeveloper/4.1.0/product.conf
/usr/lib/jvm/java-1.8.0-openjdk-amd64
Error: Java home /usr/lib/jvm/java-1.8.0-openjdk-amd64/bin/java is not a JDK.
Running SQL Developer under a JRE is not supported.
If this Java VM is actually a full JDK installation, add
'SetSkipJ2SDKCheck true' to one of the following files.
Otherwise specify a different Java JDK location with a
SetJavaHome directive in one of the following files:
/home/devkrishna/.sqldeveloper/4.1.0/product.conf
/opt/sqldeveloper/sqldeveloper/bin/sqldeveloper.conf
Open terminal (Ctrl+Alt+t)
Type
sudo gedit .bashrc
Enter password of ubuntu user
Go to last line of the file
Type below code in new line
export JAVA_HOME=enter_java_path_here
export PATH=$JAVA_HOME/bin:$PATH
eg: export JAVA_HOME=/home/pranav/jdk1.8.0_131
export PATH=$JAVA_HOME/bin:$PATH
Save the file
Type
source ~/.bashrc
in terminal
Done
The first error looks like you don't have openjdk-7 for some reason it looks like it is also looking for openjdk-8. Install at-least one of them with :
sudo apt-get install openjdk-7-jdk
and/or
sudo apt-get install openjdk-8-jdk
I am using Xubuntu 15.04. I tried to run a basic console app using MonoDevelop, the latest one. I did a new project and this appears when I try to debug it:
Could not connect to the debugger
I googled for answers and I found out that there is a problem with the gnome-terminal, that it no longer accepts the --disable-factory argument and something about unchecking the "Run on external console". I unchecked that and when I press to run, it closed it immediately.
Try executing MonoDevelop as sudo
$ sudo monodevelop
It takes Xterm as output terminal emulator.
EDIT
Run Monodevelop as root can be a BIG mistake.
Best way is to write an script that unsets GNOME desktop session and run monodevelop, as Oskar says.
Try this one (copy and paste it on vim/nano and save as monodevelop.sh)
#!/bin/bash
unset GNOME_DESKTOP_SESSION_ID
monodevelop
Put it on your home (for example) and give it execution permissions:
chmod +x ./monodevelop.sh
When you want to run it, execute ./monodevelop.sh. Or you can add it as GNOME shell application following this guide.