No module named "vismach" error

More
14 Sep 2021 15:22 - 14 Sep 2021 15:23 #220610 by RékaM
When I try to run my .ini file and it loads my vismach file, it gives me the error "ModuleNotFoundError: No module named 'vismach'". I know that vismach is on this VM install because I've loaded some of the example simulations.

My .hal, .ini, and vismach files are currently in a directory in my Desktop called "vismachtesting". Do I need to move them? Where is vismach stored?
Last edit: 14 Sep 2021 15:23 by RékaM. Reason: minor grammar error

Please Log in or Create an account to join the conversation.

More
14 Sep 2021 15:28 #220611 by Aciera
Are you by any chance running the current master version? If so then make sure the shebang at the beginning of your vismach script points to python3 and not python2.
The following user(s) said Thank You: RékaM

Please Log in or Create an account to join the conversation.

More
14 Sep 2021 15:32 #220615 by RékaM
AFAIK I am running the latest version (2.8.2?) and it says at the beginning #!/usr/bin/env python3

Please Log in or Create an account to join the conversation.

More
14 Sep 2021 15:37 - 14 Sep 2021 15:46 #220616 by RékaM
I tried moving my vismach-testing file into usr/bin with the example gui files to see if that helped, but I don't have permissions to move it above home to get to usr and can't figure out how to change that... I need to get more familiar with Linux, I think

Edit: managed to use sudo permissions to make a vismachtesting file in usr/bin and copy/paste my gui file into it, but it still says no module named 'vismach'
Last edit: 14 Sep 2021 15:46 by RékaM. Reason: update

Please Log in or Create an account to join the conversation.

More
14 Sep 2021 15:52 #220619 by RékaM
Well I solved it? I guess I'm not on the latest one, I changed the first line to #!/usr/bin/python2 like the other gui files in my bin folder and it opened a tk window and is currently waiting for it to become ready.. for... a while...

Please Log in or Create an account to join the conversation.

Time to create page: 0.075 seconds
Powered by Kunena Forum