Anybody know anything about Linux libraries?

4 messages · started by gz1 on May 31, 2022

Anybody know anything about Linux libraries?

From gz1 · May 31, 2022

I'm trying to use Python3 to write a script on Ubuntu 22.04.  I want to call a library named pyudev.  Python3 seems to find a bunch of libraries, but not this one!  

I open Python3 and type in "import pyudev"  and I get the error "no module 'pyudev'".  Other modules import just fine, but not this one....   .

All of this stuff comes straight out of github.  It's supposed to work.  

Anybody got any ideas? 

If you want to try it on your computer, open a terminal window, type in Python 3, then type in import pyudev and see if it works on your machine.

Any assistance will be appreciated.  Thanks in advance.

Gene

View original on FreeLists

Anybody know anything about Linux libraries?

From gz1 · May 31, 2022

I'm trying to use Python3 to write a script on Ubuntu 22.04.  I want to call a library named pyudev.  Python3 seems to find a bunch of libraries, but not this one!  

I open Python3 and type in "import pyudev"  and I get the error "no module 'pyudev'".  Other modules import just fine, but not this one....   .

All of this stuff comes straight out of github.  It's supposed to work.  

Anybody got any ideas? 

If you want to try it on your computer, open a terminal window, type in Python 3, then type in import pyudev and see if it works on your machine.

Any assistance will be appreciated.  Thanks in advance.

Gene

View original on FreeLists

Re: Anybody know anything about Linux libraries?

From Teruel deCampo MD · Jun 01, 2022

Gene,

Try the following

$ sudo apt-get update -y

$ sudo apt-get install python3-pyudev

$ python3
Quoted reply (1 line)
> import pyudev
>> import pyudev

Regards,

-=teruel=-

On Tue, 2022-05-31 at 18:01 -0700, gz1 wrote:
I'm trying to use Python3 to write a script on Ubuntu 22.04.  I want
to call a library named pyudev.  Python3 seems to find a bunch of
libraries, but not this one!  

I open Python3 and type in "import pyudev"  and I get the error "no
module 'pyudev'".  Other modules import just fine, but not this
one....   .

All of this stuff comes straight out of github.  It's supposed to
work.  

Anybody got any ideas? 

If you want to try it on your computer, open a terminal window, type
in Python 3, then type in import pyudev and see if it works on your
machine.

Any assistance will be appreciated.  Thanks in advance.

Gene
--------------------------------------------------------------------
Cochise Linux Users Group Mailing List - cochiselinux@freelists.org
For more information: https://cochiselinuxusergroup.org/
Mailing List Archive: https://www.freelists.org/archive/cochiselinux
To unsubscribe: //www.freelists.org/list/cochiselinux

View original on FreeLists

Re: Anybody know anything about Linux libraries?

From gz1 · Jun 05, 2022

My apologies for not taking the time to promptly thank you for your suggestion.  It fixed my problem.

I have another question.   I'm trying to import usb.core  ,  It's supposedly a part of pyudev, but I have no confirmation  of this.

All I know for sure is that I can't seem to get it to import correctly.  

This is not a big deal to me, so don't spend too much time on it.  I've found a workaround for now.

Thanks Again!!!!

Gene

On Wed, Jun 1, 2022 at 9:30 AM Teruel deCampo MD <drdecampo@gmail.com> wrote:
Quoted reply (34 lines)
Gene,
Try the following
$  sudo apt-get update -y
Gene,

Try the following

$  sudo apt-get update -y

$ sudo apt-get install python3-pyudev

$ python3
>> import pyudev

Regards,

-=teruel=-

On Tue, 2022-05-31 at 18:01 -0700, gz1 wrote:
I'm trying to use Python3 to write a script on Ubuntu 22.04.  I want
to call a library named pyudev.  Python3 seems to find a bunch of
libraries, but not this one! 

I open Python3 and type in "import pyudev"  and I get the error "no
module 'pyudev'".  Other modules import just fine, but not this
one....   .

All of this stuff comes straight out of github.  It's supposed to
work. 

Anybody got any ideas?

If you want to try it on your computer, open a terminal window, type
in Python 3, then type in import pyudev and see if it works on your
machine.

Any assistance will be appreciated.  Thanks in advance.

Gene

--------------------------------------------------------------------
Cochise Linux Users Group Mailing List - cochiselinux@freelists.org
For more information:  https://cochiselinuxusergroup.org/
Mailing List Archive: https://www.freelists.org/archive/cochiselinux
To unsubscribe: //www.freelists.org/list/cochiselinux

View original on FreeLists


Previous thread · Next thread

Back to June 2022