question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Problem vendoring subprocess32 in Ubuntu

See original GitHub issue
  • I am on the latest Poetry version.

  • I have searched the issues of this repo and believe that this is not a duplicate.

  • If an exception occurs when executing a command, I executed it again in debug mode (-vvv option).

  • Ubuntu 16.04/18.04:

Issue

I’m building a Dockerfile and am seeing a RuntimeWarning after running any poetry command that works with the venv. Since I’m using poetry to run a web server (gunicorn), I’m worried that this could have a negative impact on app performance. I haven’t seen this before, so it appears to have been introduced recently?

The warning:

/root/.poetry/lib/poetry/_vendor/py2.7/subprocess32.py:149: RuntimeWarning: The _posixsubprocess module is not being used. Child process reliability may suffer if your program uses threads.
  "program uses threads.", RuntimeWarning)

I installed poetry using the get-poetry.py script, and have even updated to the latest version. Here is the Dockerfile that I’m using, and the relevant output:

FROM ubuntu:16.04
RUN apt-get update && apt-get install -y \
    software-properties-common \
    curl \
    htop \
    python \
    python-dev \
    wget
RUN curl -sSL https://raw.githubusercontent.com/sdispater/poetry/master/get-poetry.py | python
ENV PATH=$PATH:/root/.poetry/bin
RUN poetry self:update --preview
RUN poetry version

And the output for the final command…

$: poetry version
/root/.poetry/lib/poetry/_vendor/py2.7/subprocess32.py:149: RuntimeWarning: The _posixsubprocess module is not being used. Child process reliability may suffer if your program uses threads.
  "program uses threads.", RuntimeWarning)

[ImportError]
No module named pkg_resources

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:26
  • Comments:26 (8 by maintainers)

github_iconTop GitHub Comments

80reactions
marcelomendescommented, Jul 29, 2019

I’m having same issue, Debian current, Python 3.7.4

Editing ~/.poetry/bin/poetry and changing “/usr/bin/env python” to “/usr/bin/env python3” fix it, but this will be probably overridden after next self:update

19reactions
camilonovacommented, Mar 21, 2020

Shouldn’t we use? #!/usr/bin/env python3

I don’t know if we should use a fallback version to python2 but seems reasonable to support python3 only.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Help Can't Install On Ubuntu 20.04 - OpenPLC Forum
Hello I am trying to install the editor on Ubuntu but keep getting the same error no matter what I do. Any assistance...
Read more >
Ubuntu – Details of package python-subprocess32 in bionic
Please consider filing a bug or asking a question via Launchpad before contacting the maintainer directly. Original Maintainers (usually from Debian):. Debian ...
Read more >
Installation cellprofiler on ubuntu - Image.sc Forum
Hi, I am trying to install cellprofiler 2.2.0 on ubuntu locally but when I run the following command, ``` pip install --user --editable...
Read more >
I have broken my poetry installation, and I don't know where to ...
I'm using Linux Mint 20.1: /home/milkman/.poetry/lib/poetry/_vendor/py2.7/subprocess32.py:149: RuntimeWarning: The _posixsubprocess module ...
Read more >
Considerations in adopting RHEL 8 Red Hat Enterprise Linux 8
For a description of this compatibility layer and its known issues, see the manual page authselect-migration(7) . The installation program will automatically ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found