aelmiger / lane_detection

Lane Detection algorithm for a Jetson Nano based autonomous vehicle
MIT License
16 stars 4 forks source link

Jetpack4.5.1 doesn't meet requirements.txt #2

Open zeta0707 opened 2 years ago

zeta0707 commented 2 years ago

Hi aelmiger,

Which jetpack do you use? I'd like to try again this project onto your verified jetpack version After clone your project, I failed to install requirements.txt.

zeta@zeta-jetbot:~$ git clone https://github.com/aelmiger/lane_detection.git
Cloning into 'lane_detection'...
remote: Enumerating objects: 81, done.
remote: Counting objects: 100% (3/3), done.
remote: Compressing objects: 100% (3/3), done.
remote: Total 81 (delta 0), reused 0 (delta 0), pack-reused 78
Unpacking objects: 100% (81/81), done.
zeta@zeta-jetbot:~$ cd lane_detection/

zeta@zeta-jetbot:~/lane_detection$ pip install -r requirements.txt
Collecting numpy==1.18.4 (from -r requirements.txt (line 1))
  Could not find a version that satisfies the requirement numpy==1.18.4 (from -r requirements.txt (line 1)) (from versions: 1.3.0, 1.4.1, 1.5.0, 1.5.1, 1.6.0, 1.6.1, 1.6.2, 1.7.0, 1.7.1, 1.7.2, 1.8.0, 1.8.1, 1.8.2, 1.9.0, 1.9.1, 1.9.2, 1.9.3, 1.10.0.post2, 1.10.1, 1.10.2, 1.10.4, 1.11.0, 1.11.1, 1.11.2, 1.11.3, 1.12.0, 1.12.1, 1.13.0rc1, 1.13.0rc2, 1.13.0, 1.13.1, 1.13.3, 1.14.0rc1, 1.14.0, 1.14.1, 1.14.2, 1.14.3, 1.14.4, 1.14.5, 1.14.6, 1.15.0rc1, 1.15.0rc2, 1.15.0, 1.15.1, 1.15.2, 1.15.3, 1.15.4, 1.16.0rc1, 1.16.0rc2, 1.16.0, 1.16.1, 1.16.2, 1.16.3, 1.16.4, 1.16.5, 1.16.6)
No matching distribution found for numpy==1.18.4 (from -r requirements.txt (line 1))

Thanks!

aelmiger commented 2 years ago

Hey!

I cannot recall which version of Jetpack was used, but you can try changing the numpy version in the requirements.txt. Something like numpy>=1.18 should do the trick.

Regards

zeta0707 commented 2 years ago

Hi,

OK. I will try your suggestion soon.

Thanks!

On Wed, Oct 27, 2021 at 6:20 PM aelmiger @.***> wrote:

Hey!

I cannot recall which version of Jetpack was used, but you can try changing the numpy version in the requirements.txt. Something like numpy>=1.18 should do the trick.

Regards

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/aelmiger/lane_detection/issues/2#issuecomment-952715161, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACTG6A3BLHHP3MX4B4NWSSDUI7G5XANCNFSM5GWU4PCQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

zeta0707 commented 2 years ago

Hi,

I modified requirements.txt.

jetbot@jetbot-nano:~/lane_detection$ cat requirements.txt 
numpy>=1.18.4
scipy>=1.4.1
opencv-contrib-python >= 4.2.0.34

Then installed the required packages. Actually below log is 2nd log of install, then see already installed.

jetbot@jetbot-nano:~/lane_detection$  pip3 install -r requirements.txt
WARNING: pip is being invoked by an old script wrapper. This will fail in a future version of pip.
Please see https://github.com/pypa/pip/issues/5599 for advice on fixing the underlying issue.
To avoid this problem you can invoke Python with '-m pip' instead of running pip directly.
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: numpy>=1.18.4 in /home/jetbot/.local/lib/python3.6/site-packages (from -r requirements.txt (line 1)) (1.19.5)
Requirement already satisfied: scipy>=1.4.1 in /home/jetbot/.local/lib/python3.6/site-packages (from -r requirements.txt (line 2)) (1.5.4)
Requirement already satisfied: opencv-contrib-python>=4.2.0.34 in /home/jetbot/.local/lib/python3.6/site-packages (from -r requirements.txt (line 3)) (4.5.4.58)

But I see core dump. Any advice?

jetbot@jetbot-nano:~/lane_detection$ python3 lane_detection_script.py
Illegal instruction (core dumped)

Thanks!

Brian040101 commented 2 years ago

i also have core dumped problem.

Brian040101 commented 2 years ago

you just need to add "export OPENLAS_CORETYPE=ARMV8" in .bashrc