Fail to install OpenPTV on Windows

110 views
Skip to first unread message

Chris Xu

unread,
Feb 8, 2022, 10:15:44 PM2/8/22
to openptv
Dear community,

I was trying to install pyptv in the anaconda environment with the following command: 
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

See attached for the error message I got. How can I fix the error?

Thanks in advance,
Chris 
e2.PNG

Alex Liberzon

unread,
Feb 9, 2022, 12:23:09 AM2/9/22
to Chris Xu, openptv
At the moment we have Windows only on Python 3.10 or older 3.7 
Create an environment with 

conda create -n openptv3 Python=3.10 

conda activate openptv3

… and then the installation commands 



From: ope...@googlegroups.com <ope...@googlegroups.com> on behalf of Chris Xu <chris...@gmail.com>
Sent: Wednesday, February 9, 2022 5:15:44 AM
To: openptv <ope...@googlegroups.com>
Subject: Fail to install OpenPTV on Windows
 
--
You received this message because you are subscribed to the Google Groups "openptv" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openptv+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openptv/fe009d2f-7692-4360-914b-908ecffc8a2en%40googlegroups.com.

Chris Xu

unread,
Feb 9, 2022, 1:12:15 AM2/9/22
to openptv
I just installed pyptv but when I tried to download the test case with the command: git clone --depth 1 -b master --single-branch https://github.com/OpenPTV/test_cavity.git
I got this error message:
e3.PNG

Chris Xu

unread,
Feb 9, 2022, 4:48:52 AM2/9/22
to openptv
I am able to download the test_cavity but when I tried to run it I got this message:
e4.PNG

Alex Liberzon

unread,
Feb 9, 2022, 7:08:24 AM2/9/22
to openptv
Great. So hopefully this is the last bug of enable we need to patch. Please, copy this file over the corrupted one: 


cp pathdata.py C:\users\chris\anaconda3\envs\openptv3\lib\site-packages\enable\savage\svg\
pathdata.py

Chris Xu

unread,
Feb 9, 2022, 3:19:49 PM2/9/22
to openptv
Now I can open test_cavity but when I clicked int/restart this pop up:
e5.PNG

Alex Liberzon

unread,
Feb 9, 2022, 4:24:16 PM2/9/22
to Chris Xu, openptv
Please in the environment add

pip install imagecodecs 



Sent: Wednesday, February 9, 2022 10:19:49 PM
To: openptv <ope...@googlegroups.com>
Subject: Re: Fail to install OpenPTV on Windows
 

Chris Xu

unread,
Feb 9, 2022, 6:06:46 PM2/9/22
to openptv
I can open and run the test_cavity now. However, when I close pyptv I got this message:
Traceback (most recent call last):
  File "C:\Users\chris\anaconda3\envs\openptv3\lib\site-packages\enable\qt4\base_window.py", line 289, in sizeHint
    return self.handler.sizeHint(qt_size_hint)
  File "C:\Users\chris\anaconda3\envs\openptv3\lib\site-packages\enable\qt4\base_window.py", line 186, in sizeHint
    preferred_size = self._enable_window.component.get_preferred_size()
AttributeError: 'NoneType' object has no attribute 'get_preferred_size'

Alex Liberzon

unread,
Feb 10, 2022, 12:38:04 AM2/10/22
to Chris Xu, openptv
Thanks for reporting. Don’t know how to solve this. If OpenPTV works - I am happy. 

Sent: Thursday, February 10, 2022 1:06:45 AM
To: openptv <ope...@googlegroups.com>
Reply all
Reply to author
Forward
0 new messages