Skip to content
This repository has been archived by the owner on Jun 18, 2019. It is now read-only.

python3.6-distutils not found on Ubuntu 16.04 w/ deadsnakes PPA #138

Open
jeffbyrnes opened this issue Nov 13, 2018 · 3 comments
Open

python3.6-distutils not found on Ubuntu 16.04 w/ deadsnakes PPA #138

jeffbyrnes opened this issue Nov 13, 2018 · 3 comments

Comments

@jeffbyrnes
Copy link

This is meant as an FYI, not an issue to solve in this cookbook.

My team encountered an issue with the python3.6-distutils package (added in 861bf06) on Ubuntu 16.04 while using the deadsnakes PPA to pick up Python 3.6.

While this cookbook doesn’t directly support using the deadsnakes PPA, it works well enough like so:

apt_repository 'deadsnakes' do
  uri 'ppa:deadsnakes/ppa'
  components ['main']
  distribution node['lsb']['codename']
end

python_runtime '3.6' do
  options package_name: 'python3.6'
end

But it should be noted that the 18.04 hacks break this. Hopefully this helps someone in the future!

@parthasaradhikonda
Copy link

is this still persists?

@parthasaradhikonda
Copy link

python_runtime 'myapp' do
    provider :system
    version '3'
end

python_virtualenv "venv" do
    path "#{common_data['virtualenv_path']}"
    user 'ubuntu'
    python 'myapp'
end

pip_requirements "#{common_data['requirements_path']}" do
    path "#{common_data['requirements_path']}"
    python 'myapp'
    virtualenv 'venv'
    user 'ubuntu'
end
STDOUT:
x.x.x.x STDERR: Traceback (most recent call last):
x.x.x.x   File "<stdin>", line 42, in <module>
x.x.x.x AttributeError: type object 'InstallRequirement' has no attribute 'from_line'
x.x.x.x ---- End output of ["/home/ubuntu/env1/inmail1/bin/python", "-", "setuptools"] ----
x.x.x.x Ran ["/home/ubuntu/env1/inmail1/bin/python", "-", "setuptools"] returned 1

@jeffbyrnes
Copy link
Author

@pkondainmar I couldn’t say for sure, but maybe?

This could also be the same as what #140 documents.

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