On Fri, Oct 25, 2024 at 04:42:21PM +0000, Smith, Justin wrote:
> OK, so I have installed VirtualBox on an Intel Mac (if you think this is a
> problem I can alternatively make the virtual machine on my Ubuntu computer) 
> and
> installed Fedora 40 as a virtual machine. Within the virtual machine, I then
> downloaded and installed the F40 repository configuration. From the command
> line I then did `sudo dnf install gwyddion.x86_64`, which successfully
> installed Gwyddion. However, within the Pygwy Console I am still encountering
> the same problem with the gwy module not being found.

You do not need to do ‘import gwy’ in the console because it's
automatically there. However, if you run it, it should still work. I
have just tested the F40 packages and it works fine for me.

> A simple script consisting of `import gwyutils` when executed first
> gives the output…

For standalone scripts you also need to install gwyddion-devel which
installs the standalone gwy module (the one in the console is just
created on the fly there).

> Traceback (most recent call last):
> 
>   File "<string>", line 7, in <module>
> 
> ImportError: No module named gwy
> 
> Traceback (most recent call last):
> 
>   File "<string>", line 1, in <module>
> 
>   File "/usr/share/gwyddion/pygwy/gwyutils.py", line 1, in <module>
> 
>     import gwy
> 
> ImportError: No module named gwy
> 
> …and executing it a second time gives only the second traceback/error message.
> What am I doing wrong here?

You may be running it under Python 3 (because that is the default) and
you do not have gwyddion-devel.

However, I do not understand the console problem.

Regards,

Yeti



_______________________________________________
Gwyddion-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gwyddion-users

Reply via email to