Re: Python 3.7.1 import Gpib

Tomislav Ivek <[email protected]>
Newsgroups gmane.linux.hardware.gpib.general
Message-ID <CAAgNE5mTtQ+hFsiigHtvLYQcyHemveEOp-bgRRhhGW9PeMR_9A@mail.gmail.com>
Hi Anderson,

Anaconda environments are separate from the system python installation and
do not share their libraries or packages with it. You need to install the
linux-gpib python bindings into the specific anaconda environment.

Here are the steps that I use myself.

Get the linux-gpib source tree.
In a terminal, activate your anaconda python 3.7.1 environment.
Change the active directory to linux-gpib-user/language/python directory.
Install the python bindings by running: $ python setup.py install

That should be it. Let me know if you have any questions.

Best,
Tomislav


On Wed, Mar 13, 2019 at 1:12 PM Anderson Minozzo Begossi <[email protected]>
wrote:

> Hello,
> I successfully installed the linux-gpib package, and when I run the import
> Gpib command on python 2.7 everything happens perfectly. But now I'm trying
> to import the package with python 3.7.1, installed with anaconda, and
> import is returning me the following error:
>
> Python 3.7.1 (default, Dec 14 2018, 19:28:38)
> [GCC 7.3.0] :: Anaconda, Inc. 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'
>
> I appreciate if someone helps me.
>
> Enviado via UCSMail.
> _______________________________________________
> 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.