NoahGWood / OpenEFT

Open-source EFT Fingerprint Software
Other
67 stars 11 forks source link

error when ./build_windows.sh help python3 openeft.py dont work or localhost #32

Open Bongi11 opened 1 year ago

Bongi11 commented 1 year ago

Checking NBIS binaries paths Installing LibOpenJP2-Tools Reading package lists... Done Building dependency tree... Done Reading state information... Done libopenjp2-tools is already the newest version (2.4.0-6). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Installing Pip Requirements ./build_windows.sh: line 34: cd: /home/dan/OpenEFT: No such file or directory Defaulting to user installation because normal site-packages is not writeable ERROR: Could not open requirements file: [Errno 2] No such file or directory: 'requirements.txt' python3: can't open file '/home/dan/openeft/nbis/manage.py': [Errno 2] No such file or directory OpenEFT build complete. Update your /home/dan/OpenEFT/nbis/nfiq/bin:/home/dan/OpenEFT/nbis/nfseg/bin:/home/dan/OpenEFT/nbis/nfiq/bin:/home/dan/OpenEFT/nbis/nfseg/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/lib/wsl/lib:/mnt/c/Program Files/WindowsApps/MicrosoftCorporationII.WindowsSubsystemForLinux_1.2.5.0_x64__8wekyb3d8bbwe:/mnt/c/WINDOWS/system32:/mnt/c/WINDOWS:/mnt/c/WINDOWS/System32/Wbem:/mnt/c/WINDOWS/System32/WindowsPowerShell/v1.0/:/mnt/c/WINDOWS/System32/OpenSSH/:/mnt/c/Program Files/dotnet/:/mnt/c/Program Files/Device Service Thales Runtime and Drivers/bin:/mnt/c/Users/Owner/AppData/Local/Microsoft/WindowsApps:/mnt/c/Users/Owner/.dotnet/tools:/snap/bin by typing 'source ~/.bashrc' and run the app by typing 'python3 openeft.py' ./build_windows.sh: line 40: cd: /home/dan/OpenEFT: No such file or directory dan@DESKTOP-K671AFJ:~/openeft$

somekid6 commented 1 year ago

It looks like "/home/dan/OpenEFT" doesn't exist but the lowercase "/home/dan/openeft" does. Debian/Ubuntu folders/commands are case sensitive. Did you type out "git clone --recurse-submodules https://github.com/NoahGWood/OpenEFT.git" but all lowercase by any chance? If you type it all lowercase then you end up with a lowercase "openeft" folder. That breaks the script since it's looking for "OpenEFT" and won't ever see "openeft" since they're technically not the same letters as far as Ubuntu is concerned.

You can fix this by deleting that folder and restarting but make sure the capitalization is exactly the same as in the guide. Here's some instructions to get you to a fresh enough start:

open your WSL instance

type

cd ~/

and press enter.

type

sudo rm -rf ~/openeft

and press enter (this deletes that folder)

Now you can follow the guide.

Tip: you can copy the text and right click in WSL to paste it so you don't have to type it all out manually.