Giter VIP home page Giter VIP logo

Comments (12)

amorphic avatar amorphic commented on August 19, 2024 2

Hey guys. Glad to hear we finally have a pyusb that we can use!

I'm in the middle of a couple of things right now but I'll do my best to get the releases out over the weekend.

from temper-python.

amorphic avatar amorphic commented on August 19, 2024

Hi Philipp!

I built and uploaded 1.3.1 as requested but when I install it to a new 2.7.6 virtualenv the pyusb>=10.0.rc1 dependency causes problems:

Could not find a version that satisfies the requirement pyusb==1.0.0rc1 (from versions: 1.0.0a2, 1.0.0a2, 1.0.0a3, 1.0.0a3, 1.0.0b1, 1.0.0b2)

Have you tried that latest code with one of these versions of pyusb? Perhaps we need to release a 1.3.2 with the pyusb pinned to whichever of these alpha/beta versions is known to be working?

from temper-python.

padelt avatar padelt commented on August 19, 2024

That's the problem: None of these are working. rc1 is the first one that does.
When I python setup.py install it like this, it works:

pa@philipp:~/temper$ git clone https://github.com/padelt/temper-python.git
pa@philipp:~/temper$ virtualenv v1
pa@philipp:~/temper$ . v1/bin/activate
(v1)pa@philipp:~/temper/temper-python$ python setup.py install
(v1)pa@philipp:~/temper/temper-python$ temper-poll
Found 0 devices

When using pip install temperusb, I also get the problem:

(v2)pa@philipp:~/temper$ pip install temperusb
Downloading/unpacking temperusb
  Downloading temperusb-1.3.1.tar.gz
  Running setup.py (path:/home/pa/temper/v2/build/temperusb/setup.py) egg_info for package temperusb

Downloading/unpacking pyusb>=1.0.0rc1 (from temperusb)
  Could not find a version that satisfies the requirement pyusb>=1.0.0rc1 (from temperusb) (from versions: 1.0.0a2, 1.0.0a2, 1.0.0a3, 1.0.0a3, 1.0.0b1, 1.0.0b2)
Cleaning up...
No distributions matching the version for pyusb>=1.0.0rc1 (from temperusb)
Storing debug log for failure in /home/pa/.pip/pip.log

This is with pip version 1.5.4 and pyusb can "only" be fulfulled using the git+https-Link in the setup.py. It is not yet on PyPI. Is that the problem maybe!?
How can we force pip to honor the dependency_links setting when installing from PyPI?

from temper-python.

ps-jay avatar ps-jay commented on August 19, 2024

We probably should write to the pyusb maintainers, and ask them to make a release on PyPi...

from temper-python.

padelt avatar padelt commented on August 19, 2024

Yes I think that is a good idea. I'll open an issue over at https://github.com/walac/pyusb/issues asking for an rc1-release.

from temper-python.

padelt avatar padelt commented on August 19, 2024

So the answer is in: He tries to release it ASAP, but I think we should not hold our breath. Maybe someone can come up with another way to get rc1 working when temperusb is installed from PyPI. Any ideas?

from temper-python.

ps-jay avatar ps-jay commented on August 19, 2024

pyusb 1.0.0rc1 was released Feb 16, and works as expected.

We can go ahead and release temperusb 1.4.1 now (and 1.3.1 for completeness I suppose!)

Python 2:

(py2) root@raspberrypi:~/temper-python# pip install pyusb
Collecting pyusb
  Downloading pyusb-1.0.0rc1.tar.gz (53kB)
    100% |████████████████████████████████| 61kB 495kB/s
Building wheels for collected packages: pyusb
  Running setup.py bdist_wheel for pyusb ... done
  Stored in directory: /root/.cache/pip/wheels/e5/52/fd/eedc7ae38c634040e5bc7e6f9188a2efcc8500acaac28248f7
Successfully built pyusb
Installing collected packages: pyusb
Successfully installed pyusb-1.0.0rc1
(py2) root@raspberrypi:~/temper-python# python -m temperusb.cli
Found 1 devices
Device #0: 23.1°C 73.6°F

Python 3:

(py3) root@raspberrypi:~/temper-python# pip install pyusb
Collecting pyusb
  Using cached pyusb-1.0.0rc1.tar.gz
Building wheels for collected packages: pyusb
  Running setup.py bdist_wheel for pyusb ... done
  Stored in directory: /root/.cache/pip/wheels/e5/52/fd/eedc7ae38c634040e5bc7e6f9188a2efcc8500acaac28248f7
Successfully built pyusb
Installing collected packages: pyusb
Successfully installed pyusb-1.0.0rc1
(py3) root@raspberrypi:~/temper-python# python -m temperusb.cli
Found 1 devices
Device #0: 23.1°C 73.6°F

from temper-python.

ps-jay avatar ps-jay commented on August 19, 2024

We should probably get the tags back in the repo (#51) before doing so...

from temper-python.

padelt avatar padelt commented on August 19, 2024

So, the old tags won't come back. The new releases will both be tagged and the commit id noted in CHANGELOG.md.
@amorphic Could you update PyPI with the new version 1.5.1? setup.py should now pull pyusb from PyPI instead of using the git checkout (that failed when pip installing temper-python).

from temper-python.

amorphic avatar amorphic commented on August 19, 2024

Hi @padelt! Sorry I've taken a while to get back to you. Really busy week.

Just about to go to bed but I'll get 1.5.1 pushed to PyPI tomorrow.

from temper-python.

amorphic avatar amorphic commented on August 19, 2024

Sorry for the delay all. 1.5.1 is now on PyPI.

from temper-python.

padelt avatar padelt commented on August 19, 2024

from temper-python.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.