I've scoured other forums that talk about this problem and have tried all of the recommendations I've found, but I cannot seem to get VSCode to recognize my Julia.exe path and execute commands in a .jl file. Every time I run even a simple .jl file, I get /bin/sh: julia: command not found (pictured below).
I have ensured that the executable path is set properly in the .json file, and have tried moving the executable to other locations (using an M1 Mac), but it seems it still cannot find/recognize the Julia.exe:
I have even tried just pointing to the binary folder /bin, and /bin/julia.exe (with the extension), and though VSCode does not generate the error when it cannot confirm the .exe path, the actual code still generates the error above.
I'm at my wits end here. I'm sure it's a simple answer that someone could spot in a second, or know the troubleshooting for, but I've never had this issue to this degree before with installing other languages like Kotlin. Any help is greatly appreciated.
Problem was fixed by the MacOS recommendation found here:
julialang.org/downloads/platform/#optional_add_julia_to_path
Copying the binary .exe elsewhere (outside of /Applications) and changing the executable path in VSCode fixed the issue.
Related
I'm importing some python files in my colab using from 'xxx ' import 'xxx' , but sometimes it stop being recognized even if I don't do any change in the code
Example of the error message:
enter image description here
It may be that you have two different installations of python installed. There may have been an issue deleting an old version of the Python environment when you updated, or you downloaded the Microsoft Store installation and have both at the same time which could cause issues.
I've had this issue before, and it was mainly because I was running the file wrong. When you run a file, it adds the file directory to sys.path, which is where it stores package directories. If you are not running the main file, and instead you are running the file individually, that might be the issue. This can be solved by using sys.path.append() or just running the program from the main file. (I might have misunderstood the question so I apologize if this doesn't help)
I was working on project , I closed my android studio and then opened it again , I was trying to create a new project in flutter but suddenly an error appeared to me as posted below , I cannot run any commends like pub get , pub run , whenever I prefer any of them the error appears , if any one could help , that would be appreciated , I have checked most answers but none of them helped , i don't know what happened exactly . thank you
This is the error
Exception: Cannot run program "E:\flutter\flutter\bin\flutter.bat" (in directory "E:\flutter\flutter"): CreateProcess error=2, The system cannot find the file specified
This is a screenshot of the error appearing
Envirenment Variables
I think you have to exclude exe or bat file name
for example, E:\flutter\flutter\bin <<<enough, clean
and you can follow and guess through next sentences
if you are beginner like me, follow me. i will explain it detail. Windows7 case or something. I did for 3 days. finally, i found it
Basically, 1.git program already installed (on program files) 2.flutter.bat installed (C:\name(i did nee or see..whatever)\flutter\bin) dont install on program files
you did right? now, you meet to hell soon. you dont find flutter. 'where' what is path? what is right.... dont worry
Foysal Khandakar joy mentioned
for setting env = enviroment. you commend env and click we have a two type. User variable and System variable. Both are important. never wrong
If you want to addition Path, have to use ; semi-colon (in front of new path) for example, First, User Variable Path case
C:\nee\flutter\bin
C:\nee\flutter\bin;C:\nee\flutter (if you want for flutter_console)
but first is clean. enough. not important Second, System Variable Path case, You have to resister all together with ; C:\Program Files\Git\cmd;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Windows\System32
C:\Program Files\Git\cmd
C:\Windows\System32\WindowsPowerShell\v1.0
C:\Windows\System32
Another case, Someone can follow next. When you insert only first and third, maybe if you are typing flutter_console on cmd, guide will be appeared. Please insert your path. http:// some blabla~~~ You have to resister second path about powershell additionally on system variable.
if you follow, you can go to sleep ^^
I'm a total beginner in Python, I'm reading 'Learning Python' by Mark Lutz and following along in the book. I created a file called 'script1.py', saved as an 'all files' (as opposed to a .txt file) in notepad. The name of the file, code, etc. is verbatim to that which the book instructs.
I know script1.py is there and works, I know this because when I enter 'py script1.py' in my command prompt or git bash, it correctly outputs the product of the code.
The book instructs me to run 'import script1' in Python. When I do, I get the 'module not found' error. I've tried importing as stated above, a from-import command, moving 'script1' to and from different directories. I confirmed my PATH was set up to support python, nothing.
It seems (to my UNtrained eye anyway) that python isn't finding my files. Any and all help would be greatly appreciated. Thank you.
Remember that you can only import python files into a python program. In your File Explorer, make sure that file extensions are shown and verify that your script is script1.py and not script1.py.txt or something of that sort.
I'm new to cmder so excuse me if it's a basic question.
So when I open cmder, I keep getting these PATHS as "were unexpected at this time"
An image for the paths that load on startup:
I tried to extract cmder to another folder, delete them from user/system variables and add them according to cmder-github-wiki but I kept getting the same bug/error/hint or whatever it is.
I don't know if it affect my workflow or not but I hate seeing errors before I begin anything! xD
1:
Try the following:
Check your PATH variable for syntax errors, especially near any occurance of Python related things.
Check something like an "autostart.bat" that CMDer runs at every start. The culprit may be located there, near any occurance of PATH or invoking files or directories which do not exist anymore.
Please clarify: What exactly are you invoking and in which directory, to start CMDer / to get this output? Which files did you edit and what are the contents of those files?
As last resort try uninstalling and reinstalling CMDer. The execution is probably broken since the move to another directory you described and the problem might be hard to track.
My knowledge of Perl is nil but I was trying to install Bugzilla and everything seem to be going along find until I went to load Bugzilla and I got this error followed by the html of the page trying to be loaded.
dmake could not be found on the PATH. Please invoke it using the full pathname:
C:\Perl64\site\bin\dmake.exe
or put the Perl\site\bin directory on the PATH with:
path C:\Perl64\site\bin;%PATH%
I tried running the command and also added the pathname manually into the Path Environment Varaible but I'm still receiving the error. It could be something as simple as I'm not putting the pathname correctly into Path.
Any help would be much appreciated.
Embarrassingly for me, restarting the computer did the trick. I suspect the Path Environment Variables hadn't taken effect so a restart was required to fix this.