Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to start #61

Open
Floriszz opened this issue Jul 25, 2024 · 4 comments
Open

How to start #61

Floriszz opened this issue Jul 25, 2024 · 4 comments

Comments

@Floriszz
Copy link

I read the readme and can't even get through the first step...I feel really stupid.
I already have python on my windows pc.
For some reason Github has made it difficult to download the repo, as there is now an 'Open' button for Gitpod only. Or I might have done something stupid.
But the requirements.txt file has only 'pyserial' in it. Trying to install this with:
pip3 install -r pyserial

C:\WINDOWS\system32>pip3 install -r  pyserial
ERROR: Could not open requirements file: [Errno 2] No such file or directory: 'pyserial'
@J0k3r2k1
Copy link

J0k3r2k1 commented Jul 30, 2024

click on "code" and download ZIP, unpack and copy all files to your python directory
open powershell and move to your python directory
type: pip3 install -r requirements.txt
(this will pull+install all necessary files)
go on with the other steps...

@HumbleDeer
Copy link

The -r flag for Pip is to specify a requirements file. What you're doing in this case is telling Pip to use a requirements-type file that's called pyserial in your current directory.

To install packages without a requirements file, ommit that -r flag. Get Pip help with pip -h.

@HumbleDeer
Copy link

HumbleDeer commented Aug 17, 2024

move to your python directory

This should be

Move to inside the project directory

i.e. the pvvx/THB2 repository, either downloaded and extracted or cloned using git clone.

@Floriszz
Copy link
Author

Floriszz commented Sep 22, 2024

Thank you all for the support and tips.
Managed to execute to find out I already had pyserial after all... Now waiting on the USB-com 3.3v adapter. And fingers crossed I can get the BTH01 flashed...

  • Download flash package from github as zip; THB2-master.zip
  • Extract to a folder like: C:\Python\THB2-master
  • Open command prompt (make sure python is in the path setting of Windows)
  • cd to the folder where you extracted THB2-master.zip. In my case : C:\Python\THB2-master
  • Start the following command: C:\Python\THB2-master>pip3 install -r requirements.txt

In my case:
C:\Python\THB2-master>pip3 install -r requirements.txt
Requirement already satisfied: pyserial in c:\python\lib\site-packages (from -r requirements.txt (line 1)) (3.5)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants