Comments (8)
Looks like a permission problem.
Try running your code as root. If it works for your root user, then you didn't install the udev rules correctly, or your user is not in the plugdev group.
from python-seabreeze.
Thank you for your answer. It does indeed detect the spectrometer when run as root.
But I am confused, I followed your instructions in the readme and:
getent group plugdev
returnsplugdev:x:46:hugo
ll /etc/udev/rules.d/10-oceanoptics.rules
return-rw-rw-r-- 1 root 3,3K sept. 30 2011 /etc/udev/rules.d/10-oceanoptics.rules
and the contents of the file look fine...
from python-seabreeze.
try one of the following:
sudo udevadm control --reload-rules
, physically replug your spectrometer and logout and back in as hugo- reboot your computer
from python-seabreeze.
I tried to reboot and still get the same error.
from python-seabreeze.
lsusb -d 2457:
from python-seabreeze.
lsusb -d 2457:
Bus 003 Device 002: ID 2457:1022
from python-seabreeze.
Then after connecting your spectrometer you should see a usb4000-something symlink in /dev/ which should be owned by the plugdev group.
If not, either the udev rules are wrong, or your udev installation has problems. I can't really help with either.
Please note, that there are two versions of udev rules floating around:
- https://github.com/ap--/python-seabreeze/blob/master/misc/10-oceanoptics.rules
- https://github.com/ap--/python-oceanoptics/blob/master/misc/10-oceanoptics.rules
The first one works for me.
from python-seabreeze.
Ok, I totally overlooked the fact the my 10-oceanoptics.rules had SYSFS{}
instead of ATTR{}
. I'm not sure where that came from...
Anyway, copying the file in the misc folder (I must have somehow skipped this step during the installation process) and rebooting did fix my issue.
Sorry about that, it looks like the issue was definitely on my end. Thank you for your help!
from python-seabreeze.
Related Issues (20)
- C seabreeze doesn't report firmware version HOT 1
- Problem with set_integration_time, the spectrometer doesn't wait for spectrum acquisition. HOT 3
- Seabreeze and SR4 Spectrometers HOT 20
- Extract cseabreeze into its own module HOT 1
- Rewrite Transport to use bMaxPacketSize
- ADC1000 error with external interrupt HOT 10
- USB2000 Issue reading intensities HOT 1
- Edge Trigger Issue Continues HOT 3
- QEPro lower intensities compared with OceanView - "hidden" settings? HOT 1
- Flame-S in version 2.4.0 pyseabreeze and trigger mode HOT 2
- Overflow, still alive and well HOT 1
- Getting CPython errors when building from source HOT 1
- Install on raspberry pi HOT 5
- Basic SR2 support HOT 2
- Drivers Dont have valid signatures HOT 8
- Support for SR6 / HR6 HOT 5
- USB2000 and some Flame S error at initialization due to fpga firmware version register check HOT 4
- HDX spectrometer connected via USB errors after manually interrupting connection HOT 2
- Ethernet Support for HDX HOT 6
- OceanHR4 connection issue HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from python-seabreeze.