conda create -n pyptv_py310win python=3.10 -y
conda activate pyptv_py310win
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
pyptv .\repos\test_cavity\
(pyptv_py310win) PS C:\Users\alex> pyptv .\repos\test_cavity\
Traceback (most recent call last):
File "C:\Users\alex\miniconda3\envs\pyptv_py310win\lib\runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Users\alex\miniconda3\envs\pyptv_py310win\lib\runpy.py", line 86, in _run_code
exec(code, run_globals)
File "C:\Users\alex\miniconda3\envs\pyptv_py310win\Scripts\pyptv.exe\__main__.py", line 4, in <module>
File "C:\Users\alex\miniconda3\envs\pyptv_py310win\lib\site-packages\pyptv\pyptv_gui.py", line 47, in <module>
from pyptv.calibration_gui import CalibrationGUI
File "C:\Users\alex\miniconda3\envs\pyptv_py310win\lib\site-packages\pyptv\calibration_gui.py", line 14, in <module>
from chaco.api import Plot, ArrayPlotData, gray, \
File "C:\Users\alex\miniconda3\envs\pyptv_py310win\lib\site-packages\chaco\api.py", line 343, in <module>
from chaco.overlays.api import (
File "C:\Users\alex\miniconda3\envs\pyptv_py310win\lib\site-packages\chaco\overlays\api.py", line 63, in <module>
from chaco.overlays.layers.api import (
File "C:\Users\alex\miniconda3\envs\pyptv_py310win\lib\site-packages\chaco\overlays\layers\api.py", line 11, in <module>
from .status_layer import ErrorLayer, StatusLayer, WarningLayer
File "C:\Users\alex\miniconda3\envs\pyptv_py310win\lib\site-packages\chaco\overlays\layers\status_layer.py", line 17, in <module>
from enable.savage.svg.document import SVGDocument
File "C:\Users\alex\miniconda3\envs\pyptv_py310win\lib\site-packages\enable\savage\svg\document.py", line 27, in <module>
from . import css
File "C:\Users\alex\miniconda3\envs\pyptv_py310win\lib\site-packages\enable\savage\svg\css\__init__.py", line 10, in <module>
from .transform import transformList
File "C:\Users\alex\miniconda3\envs\pyptv_py310win\lib\site-packages\enable\savage\svg\css\transform.py", line 18, in <module>
from enable.savage.svg.pathdata import number, maybeComma
File "C:\Users\alex\miniconda3\envs\pyptv_py310win\lib\site-packages\enable\savage\svg\pathdata.py", line 117, in <module>
lineTo = Group(Command("L") + Arguments(coordinatePairSequence))
File "C:\Users\alex\miniconda3\envs\pyptv_py310win\lib\site-packages\enable\savage\svg\pathdata.py", line 29, in Command
return CaselessPreservingLiteral(char)
File "C:\Users\alex\miniconda3\envs\pyptv_py310win\lib\site-packages\enable\savage\svg\pathdata.py", line 43, in __init__
self.name = "'%s'" % matchString
AttributeError: can't set attribute 'name'
Edit "C:\Users\alex\miniconda3\envs\pyptv_py310win\lib\site-packages\enable\savage\svg\pathdata.py"
and replace self.name
by self.customName
or replace it with the attached file
Traceback (most recent call last):
File "C:\Users\alex\miniconda3\envs\pyptv_py310win\lib\site-packages\pyface\ui\qt4\code_editor\gutters.py", line 134, in paintEvent
painter.drawText(
TypeError: arguments did not match any overloaded call:
drawText(self, Union[QPointF, QPoint], str): argument 1 has unexpected type 'int'
drawText(self, QRectF, int, str): argument 1 has unexpected type 'int'
drawText(self, QRect, int, str): argument 1 has unexpected type 'int'
drawText(self, QRectF, str, option: QTextOption = QTextOption()): argument 1 has unexpected type 'int'
drawText(self, QPoint, str): argument 1 has unexpected type 'int'
drawText(self, int, int, int, int, int, str): argument 2 has unexpected type 'float'
drawText(self, int, int, str): argument 2 has unexpected type 'float'
Edit C:\Users\alex\miniconda3\envs\pyptv_py310win\lib\site-packages\pyface\ui\qt4\code_editor\gutters.py
and change the lines 135
painter.drawText(
int(0),
int(top),
int(self.width() - 2),
self.fontMetrics().height(),
QtCore.Qt.AlignmentFlag.AlignRight,
str(blocknum + 1),
)
or replace gutters.py
with the attached file