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

error in getting started #6

Open
Hatem-Jr opened this issue Jul 1, 2021 · 10 comments
Open

error in getting started #6

Hatem-Jr opened this issue Jul 1, 2021 · 10 comments

Comments

@Hatem-Jr
Copy link

Hatem-Jr commented Jul 1, 2021

Hi I cloned another repo that uses tensor flow that has the same getting started section however I tried all 3 ways of and the last one did this:
124121820-a50c2f00-da75-11eb-8cd7-034ff6ba59da
124121806-a0e01180-da75-11eb-9bbf-efea0f3abe12
124121809-a2a9d500-da75-11eb-88d9-bc744ecdfc51
124121813-a3426b80-da75-11eb-9af4-a2ff33f84945

@tugot17
Copy link
Owner

tugot17 commented Jul 1, 2021

Seems like a darkflow issue. Did you try solving it like in #849 darkflow issue?

@Hatem-Jr
Copy link
Author

Hatem-Jr commented Jul 1, 2021

the solution of JaronrH I got stuck at number 6 and that was the error:

D:\custom code\YOLO-Object-Counting-API>setup.py build_ext --inplace
Traceback (most recent call last):
File "D:\custom code\YOLO-Object-Counting-API\setup.py", line 3, in
from Cython.Build import cythonize
ModuleNotFoundError: No module named 'Cython'

Even though all requirements already were satisfied in points 3,4,5

@Hatem-Jr
Copy link
Author

Hatem-Jr commented Jul 1, 2021

can you tell me all the modules that I should install even before the getting started section ? (with their cmd install commands ?)

@tugot17
Copy link
Owner

tugot17 commented Jul 1, 2021

Have you tried all 3 options described in Getting started section of the Readme??

@Hatem-Jr
Copy link
Author

Hatem-Jr commented Jul 1, 2021

option 1:
D:\custom code\YOLO-Object-Counting-API>python3 setup.py build_ext --inplace
Python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings > Manage App Execution Aliases.

option 2:
Screenshot (5)

and option 3 as above

@tugot17
Copy link
Owner

tugot17 commented Jul 1, 2021

Maybe try using anaconda and replace python3 with python?

@Hatem-Jr
Copy link
Author

Hatem-Jr commented Jul 1, 2021

D:\custom code\YOLO-Object-Counting-API>python setup.py build_ext --inplace
running build_ext
copying build\lib.win-amd64-3.8\darkflow\cython_utils\nms.cp38-win_amd64.pyd -> darkflow\cython_utils
copying build\lib.win-amd64-3.8\darkflow\cython_utils\cy_yolo2_findboxes.cp38-win_amd64.pyd -> darkflow\cython_utils
copying build\lib.win-amd64-3.8\darkflow\cython_utils\cy_yolo_findboxes.cp38-win_amd64.pyd -> darkflow\cython_utils

but when running the count_cars_crossing_virtual_line.py this error occurs:
PS D:\custom code\YOLO-Object-Counting-API> & C:/Users/Owner/AppData/Local/Programs/Python/Python39/python.exe "d:/custom code/YOLO-Object-Counting-API/count_cars_crosing_virtual_line.py"
Traceback (most recent call last):
File "d:\custom code\YOLO-Object-Counting-API\count_cars_crosing_virtual_line.py", line 2, in
from object_counting_api import ObjectCountingAPI
File "d:\custom code\YOLO-Object-Counting-API\object_counting_api.py", line 1, in
from darkflow.net.build import TFNet
File "d:\custom code\YOLO-Object-Counting-API\darkflow\net\build.py", line 1, in
import tensorflow as tf
ModuleNotFoundError: No module named 'tensorflow'

@tugot17
Copy link
Owner

tugot17 commented Jul 2, 2021

Did you try installing tensroflow?

pip install tensorflow?

@Hatem-Jr
Copy link
Author

Hatem-Jr commented Jul 2, 2021

requirement already satisfied in the cmd but somehow when I run this count_cars_crossing_virtual_line.py the error above happens, also I tried adding imports in that file still same error but I might have an idea what is your running environment in vscode? my current one is: C:/Users/Owner/AppData/Local/Programs/Python/Python39/python.exe I tried using different environments but had more errors than just: ModuleNotFoundError: No module named 'tensorflow'

Screenshot (6)

@Hatem-Jr
Copy link
Author

Hatem-Jr commented Jul 2, 2021

everything is installed correctly and option 1 in the read me file worked problem is when running this: C:/Users/Owner/AppData/Local/Programs/Python/Python39/python.exe "d:/custom code/YOLO-Object-Counting-API/count_cars_crosing_virtual_line.py" this error appears: "ModuleNotFoundError: No module named "tensorflow" even though tensor flow is installed correctly in the comment above is there anymore modules I should install in order to get the counting to work (before even the getting started part in readme) ?

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

2 participants