nicholishen / pymt5adapter---DEPRECATED

A drop-in pythonic adapter for the MetaTrader5 package to enhance usability.
BSD 2-Clause "Simplified" License
86 stars 31 forks source link

No module named 'dataclasses' #4

Closed VladPerervenko closed 4 years ago

VladPerervenko commented 4 years ago

After updating 0.3.15 to version 0.4.1, a warning appears. `> repl_python() Python 3.6.10 (C:/Users/User/AppData/Local/r-miniconda/envs/r-reticulate/python.exe) Reticulate 1.16 REPL -- A Python interpreter in R.

import pymt5adapter as mt5 ModuleNotFoundError: No module named 'dataclasses'` Can install the necessary packages along with the update? Not critical

nicholishen commented 4 years ago

I forgot that python 3.6 didn't have dataclasses... I changed the Ping dataclass to a namedtuple for the next release. Thanks for bringing that to my attention.

metaperl commented 4 years ago

Alternatively, you can make the backport of dataclasses on PyPi a requirement: http://pypi.org/project/dataclasses/

But then versions earlier than 3.6 might have issues.