NoahGWood / OpenEFT

Open-source EFT Fingerprint Software
Other
63 stars 9 forks source link

CalledProcessError at /new/step2 #16

Open markland556 opened 1 year ago

markland556 commented 1 year ago

Finally managed to work through all the uninstalled packages and it mostly seems to work now until the last step. Not sure if this is due to me uploading the test.png file with no actual prints.. doubting it. After step 5 i get this working page.

Command 'nfseg 13 1 1 1 0 /tmp/tmpa1jslsly/R_FOUR.jp2' returned non-zero exit status 127. Request Method: POST Request URL: http://localhost:7100/new/step2 Django Version: 4.1.7 Exception Type: CalledProcessError Exception Value:
Command 'nfseg 13 1 1 1 0 /tmp/tmpa1jslsly/R_FOUR.jp2' returned non-zero exit status 127. Exception Location: /usr/lib/python3.10/subprocess.py, line 524, in run Raised during: conversion.views.step2 Python Executable: /usr/bin/python3 Python Version: 3.10.6 Python Path:
['/home/mark/openeft/OpenEFT', '/usr/lib/python310.zip', '/usr/lib/python3.10', '/usr/lib/python3.10/lib-dynload', '/home/mark/.local/lib/python3.10/site-packages', '/usr/local/lib/python3.10/dist-packages', '/usr/lib/python3/dist-packages'] Server time: Mon, 27 Mar 2023 00:04:35 +0000

tjordan170 commented 1 year ago

Looks like you don’t have the nfseg binary anywhere in your path.

markland556 commented 1 year ago

Ive been copying files and trying everything i can think of and seem to be spinning my wheels. Heres what i get after an attempted "fresh" install.

`mark@ROG503://home/mark/openeft/OpenEFT$ ./build_linux.sh Updating Submodules Setting Up NBIS ./setup.sh: 396: cd: can't cd to //home/mark/openeft/OpenEFT/nbis/an2k/src/lib/an2k /usr/bin/cp: cannot stat 'select.c.linux': No such file or directory chmod: cannot access '//home/mark/openeft/OpenEFT/nbis/jpeg2k/src/lib/jasper/configure': No such file or directory chmod: cannot access '//home/mark/openeft/OpenEFT/nbis/jpeg2k/src/lib/jasper/aclocal.m4': No such file or directory chmod: cannot access '//home/mark/openeft/OpenEFT/nbis//an2k/src/lib/an2k/select.c': No such file or directory Configuring NBIS Start: Checking "nbis" directory structure.... Verifying directory - "//home/mark/openeft/OpenEFT/nbis/ijg": [PASSED] Verifying directory - "//home/mark/openeft/OpenEFT/nbis/png": [PASSED] Verifying directory - "//home/mark/openeft/OpenEFT/nbis/openjp2": [PASSED] Verifying directory - "//home/mark/openeft/OpenEFT/nbis/commonnbis": [PASSED] Verifying directory - "//home/mark/openeft/OpenEFT/nbis/an2k": [PASSED] Verifying directory - "//home/mark/openeft/OpenEFT/nbis/bozorth3": [PASSED] Verifying directory - "//home/mark/openeft/OpenEFT/nbis/imgtools": [PASSED] Verifying directory - "//home/mark/openeft/OpenEFT/nbis/mindtct": [PASSED] Verifying directory - "//home/mark/openeft/OpenEFT/nbis/nfseg": [PASSED] Verifying directory - "//home/mark/openeft/OpenEFT/nbis/nfiq": [PASSED] Verifying directory - "//home/mark/openeft/OpenEFT/nbis/pcasys": [PASSED] Verifying directory - "//home/mark/openeft/OpenEFT/nbis/man": [PASSED] Verifying directory - "//home/mark/openeft/OpenEFT/nbis/doc": [PASSED] Verifying directory - "//home/mark/openeft/OpenEFT/nbis/doc/refs": [PASSED] End: Checking "nbis" directory structure. Start: Checking exports and calatogs directories structure.... Directory "//home/mark/openeft/OpenEFT/nbis/exports" already exist: [PASSED] Directory "//home/mark/openeft/OpenEFT/nbis/exports/include" already exist: [PASSED] Creating "//home/mark/openeft/OpenEFT/nbis/exports/lib" directory.... [PASSED] Creating "//home/mark/openeft/OpenEFT/nbis/doc/catalogs" directory.... [PASSED] End: Checking exports and calatogs directories structure Start: Generating all the p_rules.mak. Generating //home/mark/openeft/OpenEFT/nbis/ijg/p_rules.mak... Generating //home/mark/openeft/OpenEFT/nbis/png/p_rules.mak... Generating //home/mark/openeft/OpenEFT/nbis/openjp2/p_rules.mak... Generating //home/mark/openeft/OpenEFT/nbis/commonnbis/p_rules.mak... Generating //home/mark/openeft/OpenEFT/nbis/an2k/p_rules.mak... Generating //home/mark/openeft/OpenEFT/nbis/bozorth3/p_rules.mak... Generating //home/mark/openeft/OpenEFT/nbis/imgtools/p_rules.mak... Generating //home/mark/openeft/OpenEFT/nbis/mindtct/p_rules.mak... Generating //home/mark/openeft/OpenEFT/nbis/nfseg/p_rules.mak... Generating //home/mark/openeft/OpenEFT/nbis/nfiq/p_rules.mak... Generating //home/mark/openeft/OpenEFT/nbis/pcasys/p_rules.mak... End: Generating all the p_rules.mak. make[1]: Entering directory '/home/mark/openeft/OpenEFT/nbis/ijg' Start: Checking "ijg" directory structure.... Verifying directory - "//home/mark/openeft/OpenEFT/nbis/ijg/src": [PASSED] Verifying directory - "//home/mark/openeft/OpenEFT/nbis/ijg/src/lib": [FAILED] Directory: "//home/mark/openeft/OpenEFT/nbis/ijg/src/lib" doesn't exist! Please check out the missing directory "//home/mark/openeft/OpenEFT/nbis/ijg/src/lib"! Sun Mar 26 20:56:32 PDT 2023 make[1]: [//home/mark/openeft/OpenEFT/nbis/buildutil/package.mak:88: config] Error 2 make[1]: Leaving directory '/home/mark/openeft/OpenEFT/nbis/ijg' make: [Makefile:97: config] Error 1 Making NBIS make[1]: Entering directory '/home/mark/openeft/OpenEFT/nbis/ijg' Start: Copying ijg's header files to "//home/mark/openeft/OpenEFT/nbis/exports/include".... /usr/bin/cp -Rpf //home/mark/openeft/OpenEFT/nbis/ijg/src/lib/jpegb/.h //home/mark/openeft/OpenEFT/nbis/exports/include /usr/bin/cp: cannot stat '//home/mark/openeft/OpenEFT/nbis/ijg/src/lib/jpegb/.h': No such file or directory End: Copying ijg's header files to "//home/mark/openeft/OpenEFT/nbis/exports/include". make[1]: Leaving directory '/home/mark/openeft/OpenEFT/nbis/ijg' make[1]: Entering directory '/home/mark/openeft/OpenEFT/nbis/png' Start: Copying png's header files to "//home/mark/openeft/OpenEFT/nbis/exports/include".... /usr/bin/cp -Rpf //home/mark/openeft/OpenEFT/nbis/png/src/lib/png/.h //home/mark/openeft/OpenEFT/nbis/exports/include /usr/bin/cp: cannot stat '//home/mark/openeft/OpenEFT/nbis/png/src/lib/png/.h': No such file or directory End: Copying png's header files to "//home/mark/openeft/OpenEFT/nbis/exports/include". Start: Copying zlib's header files to "//home/mark/openeft/OpenEFT/nbis/exports/include".... /usr/bin/cp -Rpf //home/mark/openeft/OpenEFT/nbis/png/src/lib/zlib/.h //home/mark/openeft/OpenEFT/nbis/exports/include /usr/bin/cp: cannot stat '//home/mark/openeft/OpenEFT/nbis/png/src/lib/zlib/.h': No such file or directory End: Copying zlib's header files to "//home/mark/openeft/OpenEFT/nbis/exports/include". make[1]: Leaving directory '/home/mark/openeft/OpenEFT/nbis/png' make[1]: Entering directory '/home/mark/openeft/OpenEFT/nbis/openjp2' Start: Copying openjp2's header files to "//home/mark/openeft/OpenEFT/nbis/exports/include".... /usr/bin/mkdir: cannot create directory ‘//home/mark/openeft/OpenEFT/nbis/exports/include/openjp2’: File exists /usr/bin/cp -Rpf //home/mark/openeft/OpenEFT/nbis/openjp2/src/lib/openjp2/src/lib/openjp2/.h //home/mark/openeft/OpenEFT/nbis/exports/include/openjp2 /usr/bin/cp: cannot stat '//home/mark/openeft/OpenEFT/nbis/openjp2/src/lib/openjp2/src/lib/openjp2/.h': No such file or directory /usr/bin/cp -Rpf //home/mark/openeft/OpenEFT/nbis/openjp2/src/lib/openjp2/build/src/lib/openjp2/.h //home/mark/openeft/OpenEFT/nbis/exports/include/openjp2 /usr/bin/cp: cannot stat '//home/mark/openeft/OpenEFT/nbis/openjp2/src/lib/openjp2/build/src/lib/openjp2/.h': No such file or directory make[1]: [//home/mark/openeft/OpenEFT/nbis/buildutil/package.mak:137: cpheaders] Error 1 make[1]: Leaving directory '/home/mark/openeft/OpenEFT/nbis/openjp2' make: [Makefile:150: it] Error 1 Installing NBIS Start: Checking Final Installation directories structure.... Creating "//home/mark/openeft/OpenEFT/nbis/../build/include" directory.... [PASSED] Creating "//home/mark/openeft/OpenEFT/nbis/../build/bin" directory.... [PASSED] Creating "//home/mark/openeft/OpenEFT/nbis/../build/lib" directory.... [PASSED] Creating "//home/mark/openeft/OpenEFT/nbis/../build/nbis" directory.... [PASSED] End: Checking Final Installation directories structure. Start: Copying header files for each package to "//home/mark/openeft/OpenEFT/nbis/../build/include".... /usr/bin/cp -Rpf //home/mark/openeft/OpenEFT/nbis/ijg/src/lib/jpegb/.h //home/mark/openeft/OpenEFT/nbis/../build/include /usr/bin/cp: cannot stat '//home/mark/openeft/OpenEFT/nbis/ijg/src/lib/jpegb/.h': No such file or directory make: *** [Makefile:172: install] Error 1 Adding NBIS binaries to path export PATH="$PWD/build/bin:$PATH" > ~/.bashrc --2023-03-26 20:56:32-- https://github.com/clickot/ungoogled-chromium-binaries/releases/download/111.0.5563.65-1/ungoogled-chromium_111.0.5563.65-1.1.AppImage Resolving github.com (github.com)... 140.82.114.3 Connecting to github.com (github.com)|140.82.114.3|:443... connected. HTTP request sent, awaiting response... 302 Found Location: https://objects.githubusercontent.com/github-production-release-asset-2e65be/474718272/3bfd960b-d746-40b2-a828-79379ee44e1c?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20230327%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230327T062941Z&X-Amz-Expires=300&X-Amz-Signature=f16741eec8caa18c68d42829063bda8fb63c604085b6f711f430ac2fe8e2d33c&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=474718272&response-content-disposition=attachment%3B%20filename%3Dungoogled-chromium_111.0.5563.65-1.1.AppImage&response-content-type=application%2Foctet-stream [following] --2023-03-26 20:56:34-- https://objects.githubusercontent.com/github-production-release-asset-2e65be/474718272/3bfd960b-d746-40b2-a828-79379ee44e1c?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20230327%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230327T062941Z&X-Amz-Expires=300&X-Amz-Signature=f16741eec8caa18c68d42829063bda8fb63c604085b6f711f430ac2fe8e2d33c&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=474718272&response-content-disposition=attachment%3B%20filename%3Dungoogled-chromium_111.0.5563.65-1.1.AppImage&response-content-type=application%2Foctet-stream Resolving objects.githubusercontent.com (objects.githubusercontent.com)... 185.199.109.133, 185.199.111.133, 185.199.110.133, ... Connecting to objects.githubusercontent.com (objects.githubusercontent.com)|185.199.109.133|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 156079296 (149M) [application/octet-stream] Saving to: ‘ungoogled-chromium_111.0.5563.65-1.1.AppImage’

ungoogled-chromium_111.0.5563.65-1.1.AppI 100%[====================================================================================>] 148.85M 8.95MB/s in 25s

2023-03-26 20:57:00 (5.91 MB/s) - ‘ungoogled-chromium_111.0.5563.65-1.1.AppImage’ saved [156079296/156079296]

Installing Pip Requirements Defaulting to user installation because normal site-packages is not writeable Requirement already satisfied: asgiref==3.6.0 in /home/mark/.local/lib/python3.10/site-packages (from -r requirements.txt (line 1)) (3.6.0) Requirement already satisfied: attrs==22.2.0 in /usr/local/lib/python3.10/dist-packages (from -r requirements.txt (line 2)) (22.2.0) Collecting backports.zoneinfo==0.2.1 Downloading backports.zoneinfo-0.2.1.tar.gz (74 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 74.1/74.1 KB 182.6 kB/s eta 0:00:00 Installing build dependencies ... done Getting requirements to build wheel ... done Preparing metadata (pyproject.toml) ... done Requirement already satisfied: cattrs==22.2.0 in /usr/local/lib/python3.10/dist-packages (from -r requirements.txt (line 4)) (22.2.0) Requirement already satisfied: certifi==2022.12.7 in /usr/local/lib/python3.10/dist-packages (from -r requirements.txt (line 5)) (2022.12.7) Requirement already satisfied: charset-normalizer==3.1.0 in /usr/local/lib/python3.10/dist-packages (from -r requirements.txt (line 6)) (3.1.0) Requirement already satisfied: Django==4.1.7 in /home/mark/.local/lib/python3.10/site-packages (from -r requirements.txt (line 7)) (4.1.7) Requirement already satisfied: django-cors-headers==3.14.0 in /usr/local/lib/python3.10/dist-packages (from -r requirements.txt (line 8)) (3.14.0) Requirement already satisfied: exceptiongroup==1.1.1 in /usr/local/lib/python3.10/dist-packages (from -r requirements.txt (line 9)) (1.1.1) Requirement already satisfied: idna==3.4 in /usr/local/lib/python3.10/dist-packages (from -r requirements.txt (line 10)) (3.4) Requirement already satisfied: imutils==0.5.4 in /usr/local/lib/python3.10/dist-packages (from -r requirements.txt (line 11)) (0.5.4) Requirement already satisfied: numpy==1.24.2 in /usr/local/lib/python3.10/dist-packages (from -r requirements.txt (line 12)) (1.24.2) Requirement already satisfied: opencv-python==4.7.0.72 in /usr/local/lib/python3.10/dist-packages (from -r requirements.txt (line 13)) (4.7.0.72) Requirement already satisfied: platformdirs==3.1.1 in /usr/local/lib/python3.10/dist-packages (from -r requirements.txt (line 14)) (3.1.1) Requirement already satisfied: requests==2.28.2 in /usr/local/lib/python3.10/dist-packages (from -r requirements.txt (line 15)) (2.28.2) Requirement already satisfied: requests-cache==1.0.0 in /usr/local/lib/python3.10/dist-packages (from -r requirements.txt (line 16)) (1.0.0) Requirement already satisfied: six==1.16.0 in /usr/lib/python3/dist-packages (from -r requirements.txt (line 17)) (1.16.0) Requirement already satisfied: sqlparse==0.4.3 in /home/mark/.local/lib/python3.10/site-packages (from -r requirements.txt (line 18)) (0.4.3) Requirement already satisfied: url-normalize==1.4.3 in /usr/local/lib/python3.10/dist-packages (from -r requirements.txt (line 19)) (1.4.3) Requirement already satisfied: urllib3==1.26.15 in /usr/local/lib/python3.10/dist-packages (from -r requirements.txt (line 20)) (1.26.15) Building wheels for collected packages: backports.zoneinfo Building wheel for backports.zoneinfo (pyproject.toml) ... error error: subprocess-exited-with-error

× Building wheel for backports.zoneinfo (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [32 lines of output] running bdist_wheel running build running build_py creating build creating build/lib.linux-x86_64-3.10 creating build/lib.linux-x86_64-3.10/backports copying src/backports/init.py -> build/lib.linux-x86_64-3.10/backports creating build/lib.linux-x86_64-3.10/backports/zoneinfo copying src/backports/zoneinfo/init.py -> build/lib.linux-x86_64-3.10/backports/zoneinfo copying src/backports/zoneinfo/_common.py -> build/lib.linux-x86_64-3.10/backports/zoneinfo copying src/backports/zoneinfo/_zoneinfo.py -> build/lib.linux-x86_64-3.10/backports/zoneinfo copying src/backports/zoneinfo/_tzpath.py -> build/lib.linux-x86_64-3.10/backports/zoneinfo copying src/backports/zoneinfo/_version.py -> build/lib.linux-x86_64-3.10/backports/zoneinfo running egg_info warning: no files found matching '.png' under directory 'docs' warning: no files found matching '.svg' under directory 'docs' no previously-included directories found matching 'docs/_build' no previously-included directories found matching 'docs/_output' writing manifest file 'src/backports.zoneinfo.egg-info/SOURCES.txt' copying src/backports/zoneinfo/init.pyi -> build/lib.linux-x86_64-3.10/backports/zoneinfo copying src/backports/zoneinfo/py.typed -> build/lib.linux-x86_64-3.10/backports/zoneinfo running build_ext creating build/temp.linux-x86_64-3.10 creating build/temp.linux-x86_64-3.10/lib x86_64-linux-gnu-gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -I/usr/include/python3.10 -c lib/zoneinfo_module.c -o build/temp.linux-x86_64-3.10/lib/zoneinfo_module.o -std=c99 lib/zoneinfo_module.c: In function ‘zoneinfo_fromutc’: lib/zoneinfo_module.c:600:19: error: ‘_PyLong_One’ undeclared (first use in this function); did you mean ‘_PyLong_New’? 600 | one = _PyLong_One; | ^~~ | _PyLong_New lib/zoneinfo_module.c:600:19: note: each undeclared identifier is reported only once for each function it appears in error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1 [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for backports.zoneinfo Failed to build backports.zoneinfo ERROR: Could not build wheels for backports.zoneinfo, which is required to install pyproject.toml-based projects Installing LibOpenJP2-Tools Reading package lists... Done Building dependency tree... Done Reading state information... Done The following additional packages will be installed: libopenjp2-7 The following NEW packages will be installed: libopenjp2-7 libopenjp2-tools 0 upgraded, 2 newly installed, 0 to remove and 67 not upgraded. Need to get 236 kB of archives. After this operation, 666 kB of additional disk space will be used. Do you want to continue? [Y/n] y Get:1 http://archive.ubuntu.com/ubuntu jammy/main amd64 libopenjp2-7 amd64 2.4.0-6 [158 kB] Get:2 http://archive.ubuntu.com/ubuntu jammy/universe amd64 libopenjp2-tools amd64 2.4.0-6 [77.6 kB] Fetched 236 kB in 2s (108 kB/s) Selecting previously unselected package libopenjp2-7:amd64. (Reading database ... 49888 files and directories currently installed.) Preparing to unpack .../libopenjp2-7_2.4.0-6_amd64.deb ... Unpacking libopenjp2-7:amd64 (2.4.0-6) ... Selecting previously unselected package libopenjp2-tools. Preparing to unpack .../libopenjp2-tools_2.4.0-6_amd64.deb ... Unpacking libopenjp2-tools (2.4.0-6) ... Setting up libopenjp2-7:amd64 (2.4.0-6) ... Setting up libopenjp2-tools (2.4.0-6) ... Processing triggers for man-db (2.10.2-1) ... Processing triggers for libc-bin (2.35-0ubuntu3.1) ... /sbin/ldconfig.real: /usr/lib/wsl/lib/libcuda.so.1 is not a symbolic link

Starting OpenEFT <TemporaryDirectory '/tmp/tmp1683uqo0'> /tmp/tmp1683uqo0 RUNNING BROWSER /bin/sh: 1: ./browser/linux/chrome.AppImage: Permission denied Exception in thread Thread-1 (browser): Traceback (most recent call last): File "/usr/lib/python3.10/threading.py", line 1016, in _bootstrap_inner self.run() File "/usr/lib/python3.10/threading.py", line 953, in run self._target(*self._args, *self._kwargs) File "/home/mark/openeft/OpenEFT/openeft.py", line 31, in browser if check_output("./browser/linux/chrome.AppImage --app=http://localhost:7100/", shell=True) is not None: File "/usr/lib/python3.10/subprocess.py", line 420, in check_output return run(popenargs, stdout=PIPE, timeout=timeout, check=True, File "/usr/lib/python3.10/subprocess.py", line 524, in run raise CalledProcessError(retcode, process.args, subprocess.CalledProcessError: Command './browser/linux/chrome.AppImage --app=http://localhost:7100/' returned non-zero exit status 126. Performing system checks...

System check identified no issues (0 silenced).

You have 18 unapplied migration(s). Your project may not work properly until you apply the migrations for app(s): admin, auth, contenttypes, sessions. Run 'python manage.py migrate' to apply them. March 27, 2023 - 03:57:46 Django version 4.1.7, using settings 'OpenEFT.settings' Starting development server at http://127.0.0.1:7100/ Quit the server with CONTROL-C.`

tjordan170 commented 1 year ago

Looks like it's running. What's not working for you, exactly?

markland556 commented 1 year ago

i get the error as mentioned in the opening post. Ive got through the install multiple times adding in the files it says it cant find and seem to get closer to a clean error free install. but always gives me the error screen on the last step

markland556 commented 1 year ago

Here is the terminal output:

[INFO] tile number 1 / 1 [INFO] Generated outfile /tmp/tmpc94begwm/R_FOUR.jp2 encode time: 2368 ms /bin/sh: 1: nfseg: not found Internal Server Error: /new/step2 Traceback (most recent call last): File "/usr/local/lib/python3.10/dist-packages/django/core/handlers/exception.py", line 56, in inner response = get_response(request) File "/usr/local/lib/python3.10/dist-packages/django/core/handlers/base.py", line 197, in _get_response response = wrapped_callback(request, *callback_args, *callback_kwargs) File "/home/mark/openeft/OpenEFT/conversion/views.py", line 61, in step2 fname = generate_eft(data) File "/home/mark/openeft/OpenEFT/conversion/core/core.py", line 54, in generate_eft each.convert() File "/home/mark/openeft/OpenEFT/conversion/core/fingerprint.py", line 155, in convert self.segment() File "/home/mark/openeft/OpenEFT/conversion/core/fingerprint.py", line 124, in segment a = check_output(x, shell=True, text=True).split('\n') File "/usr/lib/python3.10/subprocess.py", line 420, in check_output return run(popenargs, stdout=PIPE, timeout=timeout, check=True, File "/usr/lib/python3.10/subprocess.py", line 524, in run raise CalledProcessError(retcode, process.args, subprocess.CalledProcessError: Command 'nfseg 13 1 1 1 0 /tmp/tmpc94begwm/R_FOUR.jp2' returned non-zero exit status 127. [30/Mar/2023 01:43:39] "POST /new/step2 HTTP/1.1" 500 83575

tjordan170 commented 1 year ago

If you're getting the error for nfseg with an exit status of 127, the binary either doesn't exist on your system or the binary cannot be found in your path. And if you fix that, you'll probably get a similar error for nfiq if it isn't on your system or in your path.

tjordan170 commented 1 year ago

What's the output of the following command?

~/openeft/OpenEFT/nbis/nfseg/bin/nfseg
markland556 commented 1 year ago

no such directory. I dont even have a bin directory under the nfseg folder.. so is it not being built when the setup runs then?

tjordan170 commented 1 year ago

Not unless it's putting them somewhere else. Full disclosure, I didn't use the install_linux.sh script. I built the nbis binaries myself using their instructions and added the locations to my path.

Tim-Healey commented 1 year ago

@tjordan170 Can you explain your process for building NBIS libraries? Thanks in advance, new to Linux... I install according to NBIS instructions: ./setup.sh /home/tim/Documents/OpenEFT --64 make config make it make install make catalog I am ending up with the same error as @markland556, and the directory /OpenEFT/nbis/bin/nfseg/ does not exist. (entire /bin/ directory does not exist). image

Tim-Healey commented 1 year ago

@markland556, For me this was caused by incorrect installation of NBIS binaries. I had to install an older version of GCC for it to work correctly. https://github.com/NoahGWood/OpenEFT/discussions/17

camtheham commented 1 year ago

@markland556 @Tim-Healey

I ran into the exact same issue and then another one after it and solved it. I will also describe my installation procedure.

Installation Procedure for NBIS/OpenJPEG:

  1. ran git clone command to get this repo
  2. manually installed openJPEG from the provided link using git clone and following the instructions on that repo
  3. deleted the included nbis submodule (rm -rf nbis) with THIS repo
  4. ran git clone command to get another nbis fork (https://github.com/OwenPemberton/nbis)
  5. created an nbis directory in /home/user_name
  6. cd into the nbis git we just cloned into
  7. ./setup.sh /home/user_name/nbis
  8. make config
  9. make it
  10. sudo make install LIBNBIS=no

Now that all external libraries were installed correctly, I went ahead and installed openeft

Installation Procedure for OpenEFT using provided build_linux.sh script:

  1. ran build_linux.sh script
  2. received an error about some wheel not being built, fixed it by going into requirements.txt in main repo clone and replacing line 3 with "backports.zoneinfo;python_version<"3.9" then saving and exiting that .txt file
  3. ran OpenEFT with "python3 openeft.py"
  4. got errors about 18 unapplied migrations, fixed that by returning to terminal and closing openeft.py with CRTL + C. Then I typed "python3 manage.py migrate" in the terminal. This got rid of that error message for me.

Now that openeft wasn't giving me anymore errors upon launching it, I was able to fill out the webpage that is generated. Once I completed this, I got the same exact error you are having. After I fixed this error, I ran through the process again and got another error which I also fixed. I will outline how to do both below.

/new/step2 error fix

  1. CTRL+C to return to the terminal and close openeft.py
  2. type the following command into the terminal "export PATH=/home/user_name/OpenEFT/nbis/nfseg/bin:$PATH"
  3. Also add this to your .bashrc file located in the /home/user_name directory so that it will be persistent between terminal sessions.

You should no longer receive this error. Remember to replace the /home/user_name with the username you are running the terminal under. Now, I got a similar error but for a different binary file which I will show you how to fix below. You might as well jump straight to step 2 of the next section while you don't have openeft.py running.

final error I got fix

  1. CTRL+C to return to the terminal and close openeft.py
  2. type the following command into the terminal "export PATH=/home/user_name/OpenEFT/nbis/nfiq/bin:$PATH"
  3. Also add to the .bashrc file in the /home/user_name directory.

The above is what fixed my problems and I was then able to generate an EFT file. If you have any questions or run into trouble let me know.

ocpistol-bec commented 2 months ago

@markland556 @Tim-Healey

I ran into the exact same issue and then another one after it and solved it. I will also describe my installation procedure.

Installation Procedure for NBIS/OpenJPEG:

  1. ran git clone command to get this repo
  2. manually installed openJPEG from the provided link using git clone and following the instructions on that repo
  3. deleted the included nbis submodule (rm -rf nbis) with THIS repo
  4. ran git clone command to get another nbis fork (https://github.com/OwenPemberton/nbis)
  5. created an nbis directory in /home/user_name
  6. cd into the nbis git we just cloned into
  7. ./setup.sh /home/user_name/nbis
  8. make config
  9. make it
  10. sudo make install LIBNBIS=no

Now that all external libraries were installed correctly, I went ahead and installed openeft

Installation Procedure for OpenEFT using provided build_linux.sh script:

  1. ran build_linux.sh script
  2. received an error about some wheel not being built, fixed it by going into requirements.txt in main repo clone and replacing line 3 with "backports.zoneinfo;python_version<"3.9" then saving and exiting that .txt file
  3. ran OpenEFT with "python3 openeft.py"
  4. got errors about 18 unapplied migrations, fixed that by returning to terminal and closing openeft.py with CRTL + C. Then I typed "python3 manage.py migrate" in the terminal. This got rid of that error message for me.

Now that openeft wasn't giving me anymore errors upon launching it, I was able to fill out the webpage that is generated. Once I completed this, I got the same exact error you are having. After I fixed this error, I ran through the process again and got another error which I also fixed. I will outline how to do both below.

/new/step2 error fix

  1. CTRL+C to return to the terminal and close openeft.py
  2. type the following command into the terminal "export PATH=/home/user_name/OpenEFT/nbis/nfseg/bin:$PATH"
  3. Also add this to your .bashrc file located in the /home/user_name directory so that it will be persistent between terminal sessions.

You should no longer receive this error. Remember to replace the /home/user_name with the username you are running the terminal under. Now, I got a similar error but for a different binary file which I will show you how to fix below. You might as well jump straight to step 2 of the next section while you don't have openeft.py running.

final error I got fix

  1. CTRL+C to return to the terminal and close openeft.py
  2. type the following command into the terminal "export PATH=/home/user_name/OpenEFT/nbis/nfiq/bin:$PATH"
  3. Also add to the .bashrc file in the /home/user_name directory.

The above is what fixed my problems and I was then able to generate an EFT file. If you have any questions or run into trouble let me know.

I am running this in a lxc and had to make sure cmake was installed to get it to build nbis correctly.

This fixed all my issues on ubuntu as well, also exported export PATH=/root/OpenEFT/nbis/an2k/bin:$PATH to get upload eft to work.

Thank you so much for all your documentations