[Bug 1879080] Re: error message when installing pyodbc in a venv

Launchpad Bug Tracker 1879080 at bugs.launchpad.net
Wed Jun 3 17:53:05 UTC 2020


Status changed to 'Confirmed' because the bug affects multiple users.

** Changed in: python3-defaults (Ubuntu)
       Status: New => Confirmed

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to python3-defaults in Ubuntu.
https://bugs.launchpad.net/bugs/1879080

Title:
  error message when installing pyodbc in a venv

Status in python3-defaults package in Ubuntu:
  Confirmed

Bug description:
  I have a fresh install of Ubuntu 20.04. I have the following packages
  installed:

  python3-venv
  python3-pip
  python3-wheel
  unixodbc-dev

  If I run these commands:

  python3 -m venv ./test_env
  . ./test_env/bin/activate
  pip3 install pyodbc

  This is the output I get. The package does seem to install
  successfully, in spite of the fact that this is an error, not a
  warning.

  Collecting pyodbc
    Downloading pyodbc-4.0.30.tar.gz (266 kB)
       |████████████████████████████████| 266 kB 3.5 MB/s 
  Building wheels for collected packages: pyodbc
    Building wheel for pyodbc (setup.py) ... error
    ERROR: Command errored out with exit status 1:
     command: /tmp/test_env/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-5uh1fr89/pyodbc/setup.py'"'"'; __file__='"'"'/tmp/pip-install-5uh1fr89/pyodbc/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-snlh9z0l
         cwd: /tmp/pip-install-5uh1fr89/pyodbc/
    Complete output (6 lines):
    usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
       or: setup.py --help [cmd1 cmd2 ...]
       or: setup.py --help-commands
       or: setup.py cmd --help
    
    error: invalid command 'bdist_wheel'
    ----------------------------------------
    ERROR: Failed building wheel for pyodbc
    Running setup.py clean for pyodbc
  Failed to build pyodbc
  Installing collected packages: pyodbc
      Running setup.py install for pyodbc ... done
  Successfully installed pyodbc-4.0.30

  Note that I do not get this error if I install pyodbc outside the
  venv. Also, if I install it outside the venv FIRST, then pip will
  cache the wheel package and use it when installing in the venv, and I
  don't get the above error in that case.

  ProblemType: Bug
  DistroRelease: Ubuntu 20.04
  Package: python3 3.8.2-0ubuntu2
  ProcVersionSignature: Ubuntu 5.4.0-29.33-generic 5.4.30
  Uname: Linux 5.4.0-29-generic x86_64
  ApportVersion: 2.20.11-0ubuntu27
  Architecture: amd64
  CasperMD5CheckResult: skip
  CurrentDesktop: ubuntu:GNOME
  Date: Sat May 16 10:14:28 2020
  InstallationDate: Installed on 2020-05-16 (0 days ago)
  InstallationMedia: Ubuntu 20.04 LTS "Focal Fossa" - Release amd64 (20200423)
  ProcEnviron:
   TERM=xterm-256color
   PATH=(custom, no user)
   XDG_RUNTIME_DIR=<set>
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  SourcePackage: python3-defaults
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python3-defaults/+bug/1879080/+subscriptions



More information about the foundations-bugs mailing list