Python - Node.js\PyV8 (V8) runtime is not available on this system - python

I'm pretty much completely new to python (though I have programming experience in other languages), and at the moment, I'm simply trying to get a script to work.
I'm trying to use a batch downloader script, and it currently throws this error:
EnvironmentError: Your Javascript runtime 'JScript' is not supported due to security concerns. Please use Node.js, V8, or PyV8.
So, I head into pyexecjs to set the environment, but then that throws this error:
node = execjs.get("Node")
execjs.RuntimeUnavailable: Node.js (V8) runtime is not available on this system
I did install nodejs through pip and I have confirmed it is installed. I also have PyV8 installed but I get an identical error if I try to set the runtime to it as well. I saw this thread as well as this thread (dealing with the Ruby version) but neither really helped me understand what I'm doing incorrectly. Thank you very much for anyone who can help.

i had the same exact issue as you and installing https://nodejs.org/en/ itself help fixed this issue , i had the same question as you some i did some googling to come up with that answer hope it helps!

Related

Utilizing python code within swift using 3rd party software

so I'm pretty new to both swift and stack, but I have a problem with implimenting Pythonkit. But basically to provide a short summary, the kit basically allows you to be able to utilize python inside of swift (using certain swift functions in order to save variables, do functions, however, can execute the code of a .py file).
In the process of doing this however this error pops up
Fatal error: Python library not found. Set the PYTHON_LIBRARY environment variable with the path to a Python library.: file /Users/****/Library/Developer/Xcode/DerivedData/Y******L-
So I tried updating my Python software to 3.0 and above (I'm not quite sure, I think it was 3.7), however when I run python it shows it is at version 2.7. This kind of confused me a bit, however it was until the error did I notice something was wrong. Why does it show that error? What does it mean?
(I did find a similar post with a similar error in stack overflow, however I don't have enough reputation to comment as well as I don't think the answer was addressed to what I wanted so I'm just going to continue writing here)
The swift code itself has updated (xcode11) and following the steps a lot of the functions have changed within Xcode, what is it that I did wrong that caused the error? Following the link it seems I have to utilize pyto? Checking that link the functions of pyto are different than the ones pf PythonKit. In PythonKit you can utilize python within your swift code, while pyto seems to be a python integration for iOS?
Any advice? And please ask if anything needs clarification, or if there's a different solution please tell me. Thanks,Vince

EnvironmentError: Gmsh version must be >= 2.0

I am new to fipy, so excuse my ignorance if I ask something that should be obvious. But I fail to run an already existing (and working - on other machines) script, getting the EnvironmentError: Gmsh version must be >= 2.0. I may have missed something during the installation? Fipy manual is a bit vague about implementation of gmsh. It only provides the link to download file and that meshes can be generated by it, but it doesn't say WHERE gmsh should be installed (so I have my gmsh-3.0.3-Windows in the default, i.e. in Program Files (x86). Should it be installed in some particular directory, perhaps the same as fipy?
(I really apologise for a stupid question, but this is the case when if you know what question to ask, you already know the answer and don't need to ask at all.)
For completeness, I am running it on Windows 7, Python 2.7 from Anaconda distribution, fipy 3.1.3.
I see. I made a desperate try - copied the gmsh.exe file into ..Anaconda2/Scripts/ and it did the job!
I think the fipy documentation should mention this. The chapter on mesh generation only says that you need gmsh, but does not specify that the application (.exe) has to be in the directory with python modules. But this is not quite intuitive (it is not a python file, not installed by pip, just a downloaded application from the web) and yet it is essential for running it.

object reference not set to an instance of an object in Python VS2013 for Windows Desktop with Update 4

I recently installed this version of VS2013 for windows desktop with update 4. and installed Python tools.
But when I tried to run a simple print('Hello World') A dialog box appeared containing this error message object reference not set to an instance of an object.
I wonder why do I get this error message? I'm new to python. Do I missed some settings? Configuration? Etc? for it not to get work? I know some of you might raise an eyebrows but I really need your help, I didn't know why I got this error whenever I tried to run the print('Hello World'). Can somebody help me here please? Thanks a lot.
You may be encountering an issue that has been fixed in the latest release of Python Tools, so I would suggest upgrading to see if that fixes it.
It is very likely that this is a configuration issue though. In general, anything that pops up an error message is probably best to report on the issue tracker. In this case, the follow up questions will include:
How did you install Python onto your machine?
What version did you install?
Where did you download it from?
Did PTVS automatically detect it or did you have to manually enter the details (paths, directories, etc.)?
If the latter, did you enter all the details or just some of them?

Error in `/usr/bin/python': double free or corruption (out): 0x00007f7c3c017260

I'm developing a website in Python using the (excellent) Flask framework. In the backend code I use APScheduler to run some cron-like jobs every minute, and I use Numpy to calculate some Standard Deviations. Don't know whether the usage of these modules matter, but I thought I'dd better mention them since I guess they might be the most likely to be the cause.
Anyway, in the middle of operation, Python itself seemed to crash, giving the following:
*** Error in `/usr/bin/python': double free or corruption (out): 0x00007f7c3c017260 ***
I might be wrong, but as far as I know, this is pretty serious. So my question is actually; what could cause this, and how can I get more information about a crash like this? What does the (out) mean? I can't really reproduce this, but it happened 4 times in about 5 months now. I'm running the standard Python 2.7 on Ubuntu server 14.04
I searched around and found a couple discussions about similar crashes, of which one thing comes back: concurrency seems to be related somehow (which is why I included the usage of APScheduler).
If anybody has any idea how I could debug this or what could possibly be the cause of this; all tips are welcome!
I had a similar issue.
I had an unused dependency: spacy == 1.6.0
removing it solved the issue.
(maybe upgrading spacy version could also work)
spacy is written in Cython - an optimising static compiler for Python. So it might be related to sum bug memory allocation in spacy implementation.

Get error when coding Python in Eclipse

I was looking for an appropriate Python IDE for a long time. When googling and looking for a desired one in this forum and on the other websites I finally realised Eclipse is being suggested by the majority of the professional programmers. So as you would understand I downloaded Eclipse and the Pydev plugin for that purpose and started trying to configure and prepare Eclipse for usage and programming. As a beginner and a new one to Python, frankly I faced so many serious obstacles for installing and configuring the Eclipse and specifically for installing the Pydev plugin. After so much struggle, I finally succeeded in getting through with the configuration and installation but when I run the Eclipse and try to build a new project, when I introduce a new module and code, when I debug and run my code I get such error "
"Exception occurred executing command line.
Cannot run program "C:\Program Files\Python3\python.exe" (in directory "C:\EclipseWorkspace\csse120\Hello world"): CreateProcess error=3, The system cannot find the path specified"
I looked for Identical or similar issues in the forum and topics but the only suggestions were that this might be due to python 3.0(means I should be choosing Python 2.6 or 2.7 while choosing a new project), but this didn't solve my problem.
Would anybody please assist me: what should I be doing to solve this issue and problem. I be appreciating and thankful toward ant guidance and assistance.
I Thank you all in advance for your kind help
I haven't used eclipse in a while, but normally that error simply means that eclipse can't find the specified file in the specified path.
it might sounds stupid, I know, but are you sure you have C:\Program Files\Python3\python.exe in your system?

Categories

Resources