ReactiveX / RxPY

ReactiveX for Python
https://rxpy.rtfd.io
MIT License
4.81k stars 361 forks source link

marbles error on windows10 in japan(utc+9) #162

Closed katsuooo closed 7 years ago

katsuooo commented 7 years ago

I tryed your tutorial for marbles in windows10

"marbles tutorial" https://github.com/ReactiveX/RxPY/blob/develop/notebooks/Getting%20Started.ipynb

from rx.testing import marbles xs = Observable.from_marbles("a-b-c-|") xs.to_blocking().to_marbles()

I get Error in this code. error last line File "c:\python36\lib\site-packages\rx\concurrency\schedulerbase.py", line 60, in to_relative timespan = timespan - datetime.fromtimestamp(0) OSError: [Errno 22] Invalid argument

I change code in rx/concurrency/schedulerbase.py class SchedulerBase / def def to_relative(cls, timespan):

timespan = timespan - datetime.fromtimestamp(0)

        timespan = timespan - datetime(1970,1,1)

This code run without error. In ubuntu16.04, I don't get this error.

Best regards.

dbrattli commented 7 years ago

This is a bug in Python 3.6. https://bugs.python.org/issue29100

katsuooo commented 7 years ago

I don't check your requirement. I use rxpy in Python3.4.

lock[bot] commented 5 years ago

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.