Questions tagged [pythoninterpreter]

The PythonInterpreter class is a standard wrapper for a Jython interpreter for embedding in a Java application.

The PythonInterpreter class is a standard wrapper for a Jython interpreter for embedding in a Java application. Javadoc can be found [here].(http://www.jython.org/javadoc/org/python/util/PythonInterpreter.html)

127 questions
1
vote
1 answer

python complete, file vs object

I recently discovered auto-completetion in the python interperter here: https://docs.python.org/2.7/tutorial/interactive.html . This is fantastic for speeding up tests that I do in the interactive interpreter. There are two things that complete…
jeffpkamp
  • 2,732
  • 2
  • 27
  • 51
1
vote
1 answer

IOError: FileNotFound when trying to use jython in java

So I have this file located in a specific directory. Here I am trying to get access to my file: public static void main(String[] args) { try { PythonInterpreter interpreter = new PythonInterpreter(); …
1
vote
1 answer

Redirect from cat results in different python interpreter behavior

I'm not sure how to best address or query for this problem. I have a simple program that is using the fs.sshfs module which depends on paramiko and there fore cryptogaphy.utils. From my virtualenv with python version 3.5.2. (venv) $ cat…
1
vote
1 answer

Add java class to jython as jython import module

I am using jython interpreter programmatically (PythonInterpreter) in my java application, and I'd like to add a specific class, eg. MyJythonLib as a Jython import module so that my Jython script could have something like: import MyJythonLib a =…
deckard cain
  • 497
  • 10
  • 24
1
vote
0 answers

python virtual machine in c (bytecode interpreter)

Please anyone explain about python bytecode.I converted .pyc file to hex code by hexdump command in linux. But couldn't able to understand how hex code are arranged.Actually I building a python virtual machine in C.I don't know how read those…
noname
  • 17
  • 3
1
vote
1 answer

How python works internally? Does more than one interpreter of python can make CPU usage too much high?

Scenario I am invoking python scripts using exec(...) in php, and python works its part and it is unstructured environment, there is no django or any other framework. And a product is client based product & most of the tasks are long running tasks.…
1
vote
0 answers

PythonInterpreter Jython make transformClassesWithDexForDebug error. Where *.py file must be located?

I use Android Studio. Where *.py files must be located? Or it's problem in gradle file and that there is not enough? Error:Execution failed for task ':app:transformClassesWithDexForDebug'. com.android.build.api.transform.TransformException: …
0
votes
0 answers

Setting up python env for development and debugging in nixos

I have jumped the ship from arch to nixos and for compatibility with my server I am sticking with stable channel and using home-manager, yet to try flakes!! Setting up python environment has been the biggest deterrent to completely shift to nixos,…
0
votes
0 answers

Spyder- 'invalid filepath' at selection of python environment

so, I am new as active member here. But now...a real problem to be solved: Under Windows10, I have installed some python version (3.8, 3.9, 3.10, 3.11) with miniconda (it uses python3.9), just for me as user, every of them in its own virt.…
0
votes
0 answers

Fixing the "Environment location directory is not empty" error

I was coding for my game and installed the Python 3.10 interpreter. I choose the interpreter amd suddenly my PyCharm 2023.1 said the error "Environment location directory is not empty". Click here for image I tried to change to a second Python…
0
votes
2 answers

How to prevent Py_Finalize closing stderr?

I have a c++ code that loads a python interepter which uses stderr: intereptor.pyx stderr_dup = os.fdopen(sys.stderr.fileno(), 'wb', 0) The problem is that after Py_Finalize is called, stderr is closed and I can't use it in c++. should I just…
Atheel Massalha
  • 424
  • 1
  • 6
  • 18
0
votes
0 answers

pycharm does not see system interpretator

My Ubuntu 18 has Python 2.7 and 3.6 versions only. If I call /usr/bin/python3 or /usr/bin/python3.6 in the console terminal - python 3.6 is run. I installed pycharm 2023.1. The pycharm does not see python3.6 at all. Entering /usr/bin/python3 (or…
0
votes
0 answers

add python interpreter to an existing project in pycharm

I have a python project on 2 different computers linked with GitHub so that I can open the project on both computers. Until now, it worked, but now I have this problem : I can't run the project on my laptop because of a missing python interpreter…
Sticonike
  • 47
  • 6
0
votes
0 answers

Vs Studio Venv interpreter doesen't do any output

I tried to create a venv to not have problems with libreries in my pc, but since yesterday i had quite a lot of issues to create that, when vs studio recognized that was a venv started giving me errors, this happened only on trying to use the pip…
0
votes
0 answers

pvm installation for python

I learnt that many applications like instagram are developed on python. So my questions are: if we want to install and run the application, is pvm preinstalled in our device or it gets downloaded when we download the app? What exactly do we…
1 2 3
8 9