henrytriplette / python-brachiograph-gui

Simple GUI for brachiograph pen plotter
GNU General Public License v3.0
6 stars 0 forks source link

PySimpleGUI #2

Open PhilippeGalid opened 4 years ago

PhilippeGalid commented 4 years ago

Thanks for your hard work,when i want to start python gui.py i get a error, in terminal Traceback (most recent call last): File "gui.py", line 1, in import PySimpleGUI as sg Import Error: No module named PySimpleGUI,can you please tell me how can i fix it ? Thanks :-)

henrytriplette commented 4 years ago

Seems like python can't find the PySimpleGUI library. Did you install the dependencies?

I suggest using "Virtual environments" if you aren't using one yet in python. Those are environment that you can easily create and delete and in which you install Python dependencies and libraries without risking conflicts with other projects or installs. To create a virtual environment, first you have to install virtualenv [Instructions are for Windows, if you are running other OS let me know].

Open the cmd terminal from the brachiograph folder, and enter the following commands:

pip install virtualenv

Then proceed to create a virtualenv using:

virtualenv -p python venv

This will create a venv directory which will contain everything needed to run the project.

Before using an environment, you need to activate it:

venv\Scripts\activate.bat

You will need to activate your virtual environment each time you launch a cmd terminal.

Now you are ready to install everything and run brachiograph gui. With your virtual environment activated, follow these steps to install everything.

Install the dependencies:

pip install -r requirements.txt

You should now be able to use the gui. Type this:

python gui.py
PhilippeGalid commented 4 years ago

Thanks for your support everything works but when i say venv\Scripts\activate.bat i get a error -bash: venvScriptsactivate.bat: command not found what can i do ? Thanks Philippe

PhilippeGalid commented 4 years ago

Error: -bash: venvScriptsactivate.bat: command not found by venv\Scripts\activate.bat

henrytriplette commented 4 years ago

Humm, what OS are you using? Windows? OSX? *nix?

PhilippeGalid commented 4 years ago

I yous macos terminal

henrytriplette commented 4 years ago

Oh, ok. I thought you were on Windows. Mac it's not really my field of expertise, but I thin it should be

source venv/bin/activate

instead of

venv\Scripts\activate.bat

After that, install dependencies with PIP and it should be ok

PhilippeGalid commented 4 years ago

Thanks for your Support,I think there is a misunderstanding i yous Macos with Terminal to connect on my Pi 3 and i want to install with Terminal on the Pi where is BrachioGraph your Plugin ,not on the Mac,or i have also Windows 10. How can i run your Plugin on Windows 10 ?