Skip to content

Commit 6297da9

Browse files
committed
Fixed issues when installing packages
1 parent 3767df8 commit 6297da9

File tree

10 files changed

+25
-11
lines changed

10 files changed

+25
-11
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
.venv/
1+
.venv/
2+
.build/

README.md

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ With Sngfetch, you can:
1616
## 2. How It Works
1717
Sngfetch utilizes three APIs:
1818
1. **Shazam API**: To identify the song and its metadata.
19-
> Note: The reverse engineered shazam api is accessed trough [shazamio](https://github.com/shazamio/ShazamIO).
19+
> Note: The shazam api is accessed trough [shazamio](https://github.com/shazamio/ShazamIO).
2020
2. **Deezer API**: To provide additional details about the song.
2121
3. **Genius API**: (Optional) To fetch song lyrics.
2222
> Note: To use the Genius API, you'll need to [create a free account](https://docs.genius.com/) and register an application to get your client access token.
@@ -38,20 +38,35 @@ Make sure you have the following:
3838
cd Sngfetch
3939
```
4040
2. Here you can either use a packaged python binary from the **./bin** folder (windows or linux), or you can run the python file:
41+
42+
**This should work but there are some issues with shazamio that can arise:**
4143
```bash
42-
python -m venv .venv # Create a virtual environment (not always necessary)
43-
source .venv/bin/activate # Only if you made a virtual environment
44+
python -m venv .venv
45+
source .venv/bin/activate
4446
pip install -r requirements.txt
4547
cd src
46-
python sngfetch.py -h # Run program and show help screen
48+
python sngfetch.py -h
49+
```
50+
51+
**In case you get an error when installing the packages try:**
52+
```bash
53+
python -m venv .venv
54+
source .venv/bin/activate
55+
git clone https://github.com/shazamio/shazamio-core.git
56+
cd shazamio-core
57+
pip install .
58+
cd ..
59+
pip install -r requirements.txt
60+
cd src
61+
python sngfetch.py -h
4762
```
4863

4964
### Packaging
5065
If you wish to package the app yourself:
5166
- Make sure that if you are using a virtual environment your source is in the env, then run:
5267
```bash
5368
pip install pyinstaller
54-
pyinstaller sngfetch.spec # Run this in the source directory
69+
pyinstaller sngfetch.spec
5570
```
5671
This will create a **dist** folder in which is your executable.
5772

build/sngfetch/EXE-00.toc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
('/home/lenart/Desktop/Storage/Python/Sngfetch/dist/sngfetch',
1+
('/home/lenart/Desktop/Storage/Python/Sngfetch/bin/sngfetch',
22
True,
33
False,
44
False,
@@ -2328,7 +2328,7 @@
23282328
[],
23292329
False,
23302330
False,
2331-
1735555031,
2331+
1735641771,
23322332
[('run',
23332333
'/home/lenart/Desktop/Storage/Python/Sngfetch/.venv/lib/python3.13/site-packages/PyInstaller/bootloader/Linux-64bit-intel/run',
23342334
'EXECUTABLE')],

requirements.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
sounddevice
22
pillow
33
requests
4-
shazamio-core/.
54
shazamio
65
scipy
76
matplotlib

shazamio-core

Lines changed: 0 additions & 1 deletion
This file was deleted.
-1.2 KB
Binary file not shown.
488 Bytes
Binary file not shown.
377 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

src/sngfetch.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
# Versioning
1515
# Major revision (new UI, lots of new features, conceptual change, etc.), Minor revision (maybe a change to a search box, 1 feature added, collection of bug fixes), Bug fix release
16-
VERSION = '2.5.3'
16+
VERSION = '2.5.4'
1717

1818
# Add arguments
1919
parser = argparse.ArgumentParser(description='Sngfetch: get song details in the command line.')

0 commit comments

Comments
 (0)