Re: Python3 library not found
dave penkler <[email protected]> Thu, 31 Dec 2020 11:10:38 +0100
| Newsgroups | gmane.linux.hardware.gpib.general |
|---|---|
| Message-ID | <CAL=kjP1chJvCDVAxF6=jymbr1JEDHQFy6os7zib+eZYbBf-coA@mail.gmail.com> |
On my system:
>>> import sys
>>> sys.path.append('/usr/local/lib64/python3.9/site-packages')
>>> import gpib
>>> gpib.version()
b'4.3.4-rc1'
>>>
On Thu, 31 Dec 2020 at 01:42, Roel Jordans <[email protected]> wrote:
>
> I'm not sure what you're missing in your setup.
>
> I've been using linux-gpib together with pyvisa-py and skipped the
> supplied python gpib library. That works well enough for my purposes
> (not sure what I may be missing out on though). I remember also trying
> the gpib library but am not sure anymore what made me use the
> alternative.
>
> Cheers,
> Roel
>
>
> -----Original Message-----
> From: Michael K via Linux-gpib-general <
> [email protected]>
> Reply-To: Michael K <[email protected]>
> To: [email protected] <
> [email protected]>
> Subject: [Linux-gpib-general] Python3 library not found
> Date: Wed, 30 Dec 2020 23:13:37 +0000 (UTC)
>
> I've installed the linux-gpib (user and kernel) package and can
> communicate with devices with ibtest and ibterm but cannot get python
> to find the library.
>
> I see that Python files are installed but when I "import gpib" I get a
> complaint...
>
> /usr/lib/python3.7/site-packages/gpib-1.0-py3.7.egg-info
> /usr/lib/python3.7/site-packages/gpib.cpython-37m-aarch64-linux-gnu.so
>
> michael@schrodinger:~/GPIB $ python3
> Python 3.7.3 (default, Jul 25 2020, 13:03:44)
> [GCC 8.3.0] on linux
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import gpib
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> ModuleNotFoundError: No module named 'gpib'
> >>>
>
> What am I missing ?
>
> Michael
>
> _______________________________________________
> Linux-gpib-general mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/linux-gpib-general
>
>
>
> _______________________________________________
> Linux-gpib-general mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/linux-gpib-general