Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Jython: Unable to pip install requests package

• Installed Jython package in Streamsets container retrieved from Docker Hub and restarted. • Ran java -jar jython.jar -m ensurepip (in the directory where jython.jar is)

  • Ran java -jar jython.jar -m pip freeze to make sure pip was installed (it ran fine)
  • Ran java -jar jython.jar -m pip install --upgrade pip (to get pip to latest version as previous version pip version 9.x.. didn't work before)
  • Ran java -jar jython.jar -m pip install pytz to see if it would install a simple package
  • Ran java -jar jython.jar -m pip freeze to see if pytz was listsed. It was. So pip is working.
  • Ran java -jar jython.jar-m pip install requests.
  • Pip collects a number of dependencies, BUT when it get to the "chardet" package it just hangs.

This has happened on multiple attempts. The requests package installs with pip in other python versions. Wondering if its an issue with Jython.

Any insight would be greatly appreciated.

Jython: Unable to pip install requests package

• Installed Jython package in Streamsets container retrieved from Docker Hub and restarted. • Ran java -jar jython.jar -m ensurepip (in the directory where jython.jar is)

  • Ran java -jar jython.jar -m pip freeze to make sure pip was installed (it ran fine)
  • Ran java -jar jython.jar -m pip install --upgrade pip (to get pip to latest version as previous version pip version 9.x.. didn't work before)
  • Ran java -jar jython.jar -m pip install pytz to see if it would install a simple package
  • Ran java -jar jython.jar -m pip freeze to see if pytz was listsed. It was. So pip is working.
  • Ran java -jar jython.jar-m pip install requests.
  • Pip collects a number of dependencies, BUT when it get to the "chardet" package it just hangs.

This has happened on multiple attempts. The requests package installs with pip in other python versions. Wondering if its an issue with Jython.

Any insight would be greatly appreciated.

Jython: Unable to pip install requests package

  • Installed Jython package in Streamsets container retrieved from Docker Hub and restarted.
    • Ran java -jar jython.jar -m ensurepip (in the directory where jython.jar is)

        is)
      • Ran java -jar jython.jar -m pip freeze to make sure pip was installed (it ran fine)
      • Ran java -jar jython.jar -m pip install --upgrade pip (to get pip to latest version as previous version pip version 9.x.. didn't work before)
      • Ran java -jar jython.jar -m pip install pytz to see if it would install a simple package
      • Ran java -jar jython.jar -m pip freeze to see if pytz was listsed. It was. So pip is working.
      • Ran java -jar jython.jar-m pip install requests.
      • Pip collects a number of dependencies, BUT when it get to the "chardet" package it just hangs.

    This has happened on multiple attempts. The requests package installs with pip in other python versions. Wondering if its an issue with Jython.

    Any insight would be greatly appreciated.