Jump to content

ATOM-Settings: IDE-PHP could not launch your PHP runtime: how to proceed ?


dil_bert

Recommended Posts

hi there good day dear folks, 

 

the topic of today: ATOM-Settings: IDE-PHP could not launch your PHP runtime:  how to proceed 

i just installed into ATOM the 

- IDE-PHP 
and i followed the recommendation:

> You should also install the [atom-ide-ui](https://atom.io/packages/atom-ide-ui) package to expose the functionality within Atom.


so i also installed the **atom-ide-ui**


Now - i got back the complains from the system: 

    No PHP interpreter found at  **php** .

    If you have PHP 7.0 installed please Set PHP Path correctly. If you do not please Download PHP 7.0 or later and install it.

    `spawn php ENOENT`
    IDE-PHP could not launch your PHP runtime.

    No PHP interpreter found at  **php** .


well - i just need to install PHP - and set the paths

**btw**: are there some other nice and easy leightweight IDEs or Editors for PHP!? Love to hear from you.

Link to comment
Share on other sites

hello dear experts,

i am fairly new to ATOM & PHP:

i am running the ide-php version 0.7.18
the php-language support for ATOM

now i have installed php on the win machine (note a win7)

btw - the php resides here:
C:\dev\php-7.4.3-src

where to configure the ide-php version 0.7.18 or ATOM to set the paths?

love to hear from you

Link to comment
Share on other sites

  • 3 weeks later...

update: some additional notes here - 


today i noticed some more issues: i encountered som more things

 

 Unable to start the Python language server ::  python -m pip install 'python-language-server[all]'


dear developer dear ATOM-Team 

the **question as of today:** Unable to start the Python language server ::  python -m pip install 'python-language-server[all]'

added a pyhton code and suddenly i  got back the following waring 

 

    Unable to start the Python language server.
    Make sure to install pyls 0.19 or newer by running:

and the following one: 

    python -m pip install 'python-language-server[all]'


well  - to be frank ;: i am on MX-Linux and there Pyton is installed by default. So whats the fuss?!


i am not sure what ATOM wants from me now!?

can any body help out here

Link to comment
Share on other sites

  hello dear fellows, 

 

 

above all. well i hope you and your family is well - and all goes well in your location. How is your town dealing with covit19? I hope that we can overcome this crisis soon. 

 

ad i get continued messages and as i encounter issues day by day i just add the findings here - perhaps we can solve them in this thread.  many many thanks to you and for any and all help. 

 

the topic of today: no kernel for grammar Python found - pykernel necessary - honestly?

 

well this is pretty confusing - i can run scripts - even in python. 

but after installing hydrogen  ( cf https://atom.io/packages/hydrogen ) i have encountered funny and very confusing things. 

i want to run a little python script - and while doing a test with hydrogen>run i get back the following message: 

 

see: 

No Kernels Installed
No kernels are installed on your system so you will not be able to execute code in any language.

 

(#)[Popular Kernels](#)[All Kernels](#)

No kernel for grammar  `Python`  found

 

Check that the language for this file is set in Atom, that you have a Jupyter kernel installed for it, and that you have configured the language mapping in Hydrogen preferences.

To detect your current Python install you will need to run:

    python -m pip install ipykernel
    python -m ipykernel install --user

 

well - what is pretty confusing  - is the fact that i can run scripts - also python scripts - with the package called script: they work pretty well ... 

 

what goes on here - i have no glue --- see the image.. image.png.a8bc4451935e8ae2cdfd77be224137ad.png

Link to comment
Share on other sites

update: 

well - i guess that Hydrogen requires more than a plain Python interpreter. It provides functionality much like a Jupyter Notebook.

If all i  want to do is run a small script, then I guess i should  just stick to the script package, or run it in a terminal.

but i want to see the output of the script - this is pretty important to me. 

 

 

Link to comment
Share on other sites

 hi there - well i guess that there are still some packages missing on my machine. 

 

see the next trial

 

from bs4 import BeautifulSoup
URL = "https://www.worldometers.info/coronavirus/"
r = requests.get(URL)
soup = BeautifulSoup(r.content, 'html5lib')
countHTML = soup.find('div', attrs = {'class':'content-inner'})

for countVar in countHTML.findAll('div', attrs = {'class':'maincounter-number'}):
    count = countVar.span

 

    

    

    - i get back the following result: 

 

 

Traceback (most recent call last):   File "/tmp/atom_script_tempfiles/0c9e3b30-6d27-11ea-84a4-095d4171334a", line 2, in <module>     worldometers.info NameError: name 'worldometers' is not defined [Finished in 0.069s]


 

   

i am on MX-Linux on Atom and i do not know why i get this back!? 

 

i guess that there is something wrong

 

i have to digg deeper what goes on here. 

 

 

Link to comment
Share on other sites

dear fellows, 

 

first of all - i hope that you are all well and all goes okay 

since it seems to belong all to the same issue and the same thing i add this to this thread. 


the question today is: How can we install the Python package other than using pip?th

i run Python on MX-Linux  - there is

 

root@mx:/home/martin# python3 --V
unknown option --V
usage: python3 [option] ... [-c cmd | -m mod | file | -] [arg] ...
Try `python -h' for more information.
root@mx:/home/martin# python3 -V
Python 3.7.3
root@mx:/home/martin# pip install pandas
bash: pip: command not found.
	

 

i have no pip on the machine:  if i want to install pandas with the following command it does not work

 

pip install pandas

well i guess that i first of all need to instal pip

 

1) Find the package at PyPI - the Python Package Index .


2) Download the source code,
3) Read the INSTALL.txt or README.txt for clue on installation.
4) Usually installation is made of these steps
     $ python setup.py   build
     $ python setup.py  install

 

If you do not have EasyBuild installed yet, or if you just want to install the most recent version of each of the EasyBuild packages, you can use one of the following simple commands:

 

using easy_install (old tool, but still works):

 

easy_install --prefix $HOME/EasyBuild easybuild

 

Note If we already have easybuild installed, we may need to instruct easy_install to install a newer version, using --upgrade or -U.

 

using pip (more recent and better installation tool for Python software):

 

pip install --install-option "--prefix=$HOME/EasyBuild" easybuild

The --prefix $HOME/EasyBuild part in these commands allows you to install EasyBuild without admin rights into $HOME/EasyBuild.

 

 

Note For pip v8.0 and newer, pip install --prefix=$HOME/EasyBuild easybuild works too.

 

but wait: this page tells us that pip should be no my machine: 

pip is already installed if you are using Python 2 >=2.7.9 or Python 3 >=3.4 downloaded from python.org or if you are working in a Virtual Environment created by virtualenv or pyvenv. Just make sure to upgrade pip.

 

Installing with get-pip.py To install pip, securely   download get-pip.py by following this link: get-pip.py. Alternatively, use curl:

 

curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py

 

Then run the following command in the folder where you have downloaded get-pip.py:

 

python get-pip.py

Warning Be cautious if you are using a Python install that is managed by your operating system or another package manager. get-pip.py does not coordinate with those tools, and may leave your system in an inconsistent state.

 

so after all i am a bit confused: what  should i do - if i want to install pandas

- the questions are:

- wich options do i have to install pandas without pip 
- besides that: am i able to install pip with a simple method without running into any troubles?!?
- what should i do have to look for the preliminary steps!?
- are there any stepstones or pitfalls here !?

 

 

Dear Fellows - sorry for adding this also to the thread - but i guess that this is quite helpful since it belongs to the same area of scope and interest. 


love to hear from you

 

Link to comment
Share on other sites

dear PHP-Feaks-fellows, 

 

At the moment i am working on the setup of the Python development on the MX-Linux-System -

I think it is very useful to collect all the findings in this single thread  - with this procedure it can avoid to open several threads... 

the situation. i am on the newest version of MX - which is 19.1

 so far so good:   the version MX-linux version 19.1 and i have installed python 3.7.xy

 

note: i have also pip installed - 

root@mx:/home/martin# pip check No broken requirements found.

root@mx:/home/martin# pip check No broken requirements found.

 

well i need to have the python csv-package. 

 

i tried out many comands

 

sudo apt-get install python-pip  sudo apt-get install python3-pandas sudo apt-get install python3-csv sudo apt-get install python-csv pip install python-csv

and furthermore 

python -m pip install csv

 

i used the install-manual https://docs.python.org/3/installing/index.html

 

well i need to have the python csv-package. 

i tried out many comands

sudo apt-get install python-pip 
sudo apt-get install python3-pandas
sudo apt-get install python3-csv
sudo apt-get install python-csv
pip install python-csv

and

python -m pip install csv

i used the install-manual https://docs.python.org/3/installing/index.html

but see what i get

Collecting python-csv
Downloading https://files.pythonhosted.org/packages/a5/dc/7d044beccf6d10748ff5ad005441897e84265dea9aea9b39885758cc47fc/python-csv-0.0.11.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
    ImportError: No module named setuptools

----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-DachfY/python-csv/
root@mx:/home/martin# ^C
root@mx:/home/martin# 

 

 

question: can you give me a hint..!?

well at the moment i am a bit clueless.

 

plz stay healthy and well - have a great day

yours dil_bert

 

 

Link to comment
Share on other sites

hi there i have done some further investigations

 


for the Python 2 i can do the following: 

 

apt-get install python-setuptools python-dev gcc g++
pip install wheel

and supsequnently:

pip install python-csv

 


for the Python 3 i have to do the following: 

python3-setuptools

apt-get install python3-setuptools python3-dev gcc g++


pip3 install csv

 

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.