Fail to install OPenPTV on Windows

129 views
Skip to first unread message

連振宇

unread,
Dec 10, 2022, 8:51:37 PM12/10/22
to openptv
Hi, my name is Daniel. I made some errors during installation (as shown in the picture). Does anyone know why?  thanks111.png

Alex Liberzon

unread,
Dec 11, 2022, 2:24:57 AM12/11/22
to openptv
Hi Daniel,

It's impossible to guess what the error is from this snapshot. Please provide all the information:
- computer platform
- Windows version
- compiler version
- Python version and how it's installed
- installation commands

Do you follow these instructions?

連振宇

unread,
Dec 11, 2022, 3:30:38 AM12/11/22
to openptv
My computer is windows 10, Visual Studio Code, python 3.8 from (https://www.python.org/downloads/windows/)
When I execute the .py file in the test folder in the compiler, the following picture is displayed.
112.png
alex.l...@gmail.com 在 2022年12月11日 星期日下午3:24:57 [UTC+8] 的信中寫道:

Alex Liberzon

unread,
Dec 11, 2022, 3:37:32 AM12/11/22
to 連振宇, openptv
This is not helpful either.

1. do you follow the installation instructions?  yes/no ? please print the output of the installation process in your command line. it's not clear whether you installed pyptv
correctly in your cv2 conda environment. 
it's not even clear if you activated your conda environment and run your code from it.

We cannot support your installation without clear description of the problem. Windows 10 + Anaconda + Python 3.8 should work without any problem, so it seems that
some step in the installation instructions is not clear.



--
You received this message because you are subscribed to a topic in the Google Groups "openptv" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/openptv/sBiW2H4lfzw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to openptv+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openptv/82d6a964-cc4c-448f-ae60-9ef4a923aae2n%40googlegroups.com.

連振宇

unread,
Dec 11, 2022, 4:00:48 AM12/11/22
to openptv
 yes, I follow the installation instructions ( As shown below).
Then I  use VS code to execute the .py file in the test folder, and the problem is shown in Figure 2.
113.png
114.png

alex.l...@gmail.com 在 2022年12月11日 星期日下午4:37:32 [UTC+8] 的信中寫道:

Alex Liberzon

unread,
Dec 11, 2022, 4:13:34 AM12/11/22
to 連振宇, openptv
1. open your command prompt
2. type:

conda activate [name-of-environment]
pyptv [name of the working folder]

That's the way to use it. You're welcome to see our Youtube tutorials (the link is on the documentation website)

If you want to use VS Code - make sure your choose the Python from the proper conda environment. Apparently this is the problem right now. But this is not the OpenPTV problem

good luck 





連振宇

unread,
Dec 11, 2022, 4:48:31 AM12/11/22
to openptv
Thank you, Alex. 
According to the above two steps, I successfully opened the program, which will be used in particle tracking in the future.

alex.l...@gmail.com 在 2022年12月11日 星期日下午5:13:34 [UTC+8] 的信中寫道:

しょうことう

unread,
Dec 14, 2022, 4:07:32 PM12/14/22
to openptv
Hello, Daniel!
I am Zitao, from Osaka University.
I am also trying to run OpenPTV on windows system.
I used anaconda to install numpy as pyptv as instructed in official website, which is 
python -m pip install --upgrade pip 
pip install numpy 
pip install pyptv --index-url https://pypi.fury.io/pyptv --extra-index-url https://pypi.org/simple
I also download the test case.

But I have totally no idea how to open the GUI, and how to open the program.
I am also using Visual Studio Code.OpenPTV_error.png
I attached the screenshot here.

Since there are very limited resources and the official Youtube videos aimed for Linux and image is vague to see clearly,
It will be very helpful if you could kindly give me some instructions about how should I open the program or
where can I find other tutorials.

Best Regards
Zitao

Alex Liberzon

unread,
Dec 14, 2022, 4:41:27 PM12/14/22
to openptv
Hi Zitao,

All you need to do is:
1. open your command prompt
2. activate your conda environment where pyptv was installed
3. run:
pyptv test_cavity

or pyptv [full_path_to_working_folder]

e.g.

pyptv c:\china\PIV_test\test_cavity

しょうことう

unread,
Dec 15, 2022, 1:16:19 PM12/15/22
to openptv
I simply wrote down how I installed OpenPTV on my windows system.
I attached the memo here, and hopefully it can help someone who tries to install it on Windows.
Please correct me if there is anything wrong or it can be done in an easier way.

Install OpenPTV on Windows system.pdf

Alex Liberzon

unread,
Dec 15, 2022, 1:22:04 PM12/15/22
to しょうことう, openptv
Thanks. This is great. Note that when you use conda you can install Python version different from the one that you have "natively" on your computer.


みじんぼ

unread,
Jun 29, 2023, 10:14:17 PM6/29/23
to openptv
thanks for your document, i have installed it according to document, thanks

2022年12月16日金曜日 3:16:19 UTC+9 しょうことう:
Reply all
Reply to author
Forward
0 new messages