Skip to content
This repository has been archived by the owner on Dec 27, 2023. It is now read-only.

ERROR: Error while trying to download Jupyter-PHP dependencies with Composer. #34

Open
michaelbrucelin opened this issue Dec 18, 2021 · 2 comments

Comments

@michaelbrucelin
Copy link

Hi there!

I want to use php in jupyterlab, but I encountered the following problem during the installation process. Does anyone know how to solve this?
Thank you very much.

ERROR: Error while trying to download Jupyter-PHP dependencies with Composer.

# cat /etc/os-release 
PRETTY_NAME="Debian GNU/Linux 10 (buster)"

# jupyter --version
Selected Jupyter core packages...
IPython          : 7.30.1
ipykernel        : 6.6.0
ipywidgets       : 7.6.5
jupyter_client   : 7.1.0
jupyter_core     : 4.9.1
jupyter_server   : 1.13.1
jupyterlab       : 3.2.5
nbclient         : 0.5.9
nbconvert        : 6.3.0
nbformat         : 5.1.3
notebook         : 6.4.6
qtconsole        : 5.2.2
traitlets        : 5.1.1

# php --version
PHP 7.3.31-1~deb10u1 (cli) (built: Oct 24 2021 15:18:08) ( NTS )

# composer --version
Composer version 2.1.14 2021-11-30 10:51:43

# php -i | grep -i zmq
/etc/php/7.3/cli/conf.d/20-zmq.ini
zmq
ZMQ extension => enabled
ZMQ extension version => 1.1.3
libzmq version => 4.3.1

Below is the complete error.

# php jupyter-php-installer.phar install
ERROR: Error while trying to download Jupyter-PHP dependencies with Composer.

# php jupyter-php-installer.phar install -vvv


                                                                                                                                                                           
  [InvalidArgumentException]                                                                                                                                               
  The package name jupyter-php-instance is invalid, it should be lowercase and have a vendor name, a forward slash, and a package name, matching: [a-z0-9_.-]+/[a-z0-9_.-  
  ]+                                                                                                                                                                       
                                                                                                                                                                           

init [--name NAME] [--description DESCRIPTION] [--author AUTHOR] [--type [TYPE]] [--homepage HOMEPAGE] [--require REQUIRE] [--require-dev REQUIRE-DEV] [-s|--stability STABILITY] [-l|--license LICENSE] [--repository REPOSITORY] [-a|--autoload AUTOLOAD]


ERROR: Error while trying to download Jupyter-PHP dependencies with Composer.
@yousuobuxue
Copy link

I don't know if you solved it, jupyter-php-installer\src\Installer\Installer.php line 150 --name=jupyter-php-instance modified to --name=litipk/jupyter-php-instance, I After the change it installed properly

@michaelbrucelin
Copy link
Author

Thank you very much for your reply, I don't use php in jupyter for now.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants