vpelletier / python-libusb1

Python ctype-based wrapper around libusb1
GNU Lesser General Public License v2.1
168 stars 65 forks source link

Can't install libusb with recent versions of setuptools #23

Closed kavehv closed 2 years ago

kavehv commented 7 years ago

$ sudo -H pip3 install libusb1 Collecting libusb1 Using cached libusb1-1.6.tar.gz Complete output from command python setup.py egg_info: Traceback (most recent call last): File "", line 1, in File "/private/tmp/pip-build-o4hqf9gk/libusb1/setup.py", line 16, in from setuptools import setup ImportError: cannot import name 'setup'

----------------------------------------

Command "python setup.py egg_info" failed with error code 1 in /private/tmp/pip-build-o4hqf9gk/libusb1/

I had to downgrade to setuptools version 20.10.1 to successfully install.

vpelletier commented 7 years ago

What is the version of setuptools you have issues with ?

FWIW, I have 28.7.1 (debian package 28.7.1-1, current on sid) and it works. It would be surprising for setuptools to stop exposing "setup".

Would the same issue also happen with other python packages ?

kavehv commented 7 years ago

I was using the pip3 package on macOS.

From: Vincent Pelletier notifications@github.com notifications@github.com Reply: vpelletier/python-libusb1 reply@reply.github.com reply@reply.github.com Date: December 9, 2016 at 11:39:37 PM To: vpelletier/python-libusb1 python-libusb1@noreply.github.com python-libusb1@noreply.github.com CC: Kaveh kaveh@vaghefi.org kaveh@vaghefi.org, Author author@noreply.github.com author@noreply.github.com Subject: Re: [vpelletier/python-libusb1] Can't install libusb with recent versions of setuptools (#23)

What is the version of setuptools you have issues with ?

FWIW, I have 28.7.1 (debian package 28.7.1-1, current on sid) and it works. It would be surprising for setuptools to stop exposing "setup".

Would the same issue also happen with other python packages ?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/vpelletier/python-libusb1/issues/23#issuecomment-266186624, or mute the thread https://github.com/notifications/unsubscribe-auth/AAyotBUzQGMIxBESWOYmQGQ0xm_TTK6Gks5rGlc5gaJpZM4LHUK7 .

mcuee commented 2 years ago

This is probably an old issue which no longer applies. I have never have any issue with python-libusb1 under macOS using Homebrew.

vpelletier commented 2 years ago

Thanks for the report. Closing this.