Giter Club home page Giter Club logo

Comments (5)

alexforencich avatar alexforencich commented on September 4, 2024

Interesting. Can you post the output of os.platform and os.uname on your system?

from python-usbtmc.

UffeJakobsen avatar UffeJakobsen commented on September 4, 2024

Here you are

os.name
'posix'

os.uname()
('FreeBSD', 'asus-u32u', '10.0-RELEASE-p1', 'FreeBSD 10.0-RELEASE-p1 #0: Tue Apr 8 06:45:06 UTC 2014 [email protected]:/usr/obj/usr/src/sys/GENERIC', 'amd64')

platform.system()
'FreeBSD'

platform.release()
'10.0-RELEASE-p1'

platform.version()
'FreeBSD 10.0-RELEASE-p1 #0: Tue Apr 8 06:45:06 UTC 2014 [email protected]:/usr/obj/usr/src/sys/GENERIC'

platform.uname()
('FreeBSD', 'asus-u32u', '10.0-RELEASE-p1', 'FreeBSD 10.0-RELEASE-p1 #0: Tue Apr 8 06:45:06 UTC 2014 [email protected]:/usr/obj/usr/src/sys/GENERIC', 'amd64', 'amd64')

/Uffe

from python-usbtmc.

alexforencich avatar alexforencich commented on September 4, 2024

Thanks. Also, what exception is it throwing?

from python-usbtmc.

UffeJakobsen avatar UffeJakobsen commented on September 4, 2024

Here is the exception output:

python rigol.py

Unknown error -99 None
Traceback (most recent call last):
File "rigol.py", line 17, in
instr = usbtmc.Instrument(0x1ab1, 0x0588) # Rigol DS1102D
File "/_ext.tmp/python-usbtmc.git/usbtmc/usbtmc.py", line 248, in init
self.reset()
File "/_ext.tmp/python-usbtmc.git/usbtmc/usbtmc.py", line 257, in reset
self.device.reset()
File "/_ext.tmp/python-usbtmc.git/usb/core.py", line 595, in reset
self._ctx.backend.reset_device(self._ctx.handle)
File "/_ext.tmp/python-usbtmc.git/usb/backend/libusb1.py", line 846, in reset_device
_check(self.lib.libusb_reset_device(dev_handle.handle))
File "/_ext.tmp/python-usbtmc.git/usb/backend/libusb1.py", line 572, in _check
raise USBError(_str_error[ret], ret, _libusb_errno[ret])
usb.core.USBError: [Errno None] Unknown error

from python-usbtmc.

alexforencich avatar alexforencich commented on September 4, 2024

This particular reset call has now been completely removed, so this should no longer be an issue.

from python-usbtmc.

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.