hustcc / timeago

:hourglass: Simple library used to format datetime with `*** time ago` statement. eg: "3 hours ago".
http://timeago.org
MIT License
224 stars 37 forks source link

timeago 1.0.12 refuses to install on Windows 10 #29

Closed AlexFlipnote closed 4 years ago

AlexFlipnote commented 4 years ago
C:\WINDOWS\system32>pip install timeago --upgrade
Collecting timeago
  Using cached https://files.pythonhosted.org/packages/70/c7/3a1ccd78d542e592534f4c74e63ead33d5f11977b0e26d061e022ed285ed/timeago-1.0.12.tar.gz
    ERROR: Command errored out with exit status 1:
     command: 'c:\python37\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\AlexFlipnote\\AppData\\Local\\Temp\\pip-install-6k63qzau\\timeago\\setup.py'"'"'; __file__='"'"'C:\\Users\\AlexFlipnote\\AppData\\Local\\Temp\\pip-install-6k63qzau\\timeago\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\AlexFlipnote\AppData\Local\Temp\pip-install-6k63qzau\timeago\pip-egg-info'
         cwd: C:\Users\AlexFlipnote\AppData\Local\Temp\pip-install-6k63qzau\timeago\
    Complete output (9 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "C:\Users\AlexFlipnote\AppData\Local\Temp\pip-install-6k63qzau\timeago\setup.py", line 12, in <module>
        long_description = readme(),
      File "C:\Users\AlexFlipnote\AppData\Local\Temp\pip-install-6k63qzau\timeago\setup.py", line 7, in readme
        return f.read()
      File "c:\python37\lib\encodings\cp1252.py", line 23, in decode
        return codecs.charmap_decode(input,self.errors,decoding_table)[0]
    UnicodeDecodeError: 'charmap' codec can't decode byte 0x8d in position 805: character maps to <undefined>
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

Current Python version: Python 3.7.4 Tried versions: 3.7.6, 3.8.1 OS: Windows 10 Pro

Note: It does work to install it on my Debian 8.10 server, as a side-note.

lolobosse commented 4 years ago

Ok, I can understand the error. But I need to reproduce it on a windows computer to fix it.

Let me few hours...

It's not about 1.0.12 btw: it's from the moment where I changed the setup.py I guess that 1.0.7 would work (in case it helps for you because you need to make it work asap :smile:)

Le dim. 5 janv. 2020 à 23:44, AlexFlipnote notifications@github.com a écrit :

C:\WINDOWS\system32>pip install timeago --upgrade Collecting timeago Using cached https://files.pythonhosted.org/packages/70/c7/3a1ccd78d542e592534f4c74e63ead33d5f11977b0e26d061e022ed285ed/timeago-1.0.12.tar.gz ERROR: Command errored out with exit status 1: command: 'c:\python37\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\AlexFlipnote\AppData\Local\Temp\pip-install-6k63qzau\timeago\setup.py'"'"'; file='"'"'C:\Users\AlexFlipnote\AppData\Local\Temp\pip-install-6k63qzau\timeago\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\AlexFlipnote\AppData\Local\Temp\pip-install-6k63qzau\timeago\pip-egg-info' cwd: C:\Users\AlexFlipnote\AppData\Local\Temp\pip-install-6k63qzau\timeago\ Complete output (9 lines): Traceback (most recent call last): File "", line 1, in File "C:\Users\AlexFlipnote\AppData\Local\Temp\pip-install-6k63qzau\timeago\setup.py", line 12, in long_description = readme(), File "C:\Users\AlexFlipnote\AppData\Local\Temp\pip-install-6k63qzau\timeago\setup.py", line 7, in readme return f.read() File "c:\python37\lib\encodings\cp1252.py", line 23, in decode return codecs.charmap_decode(input,self.errors,decoding_table)[0] UnicodeDecodeError: 'charmap' codec can't decode byte 0x8d in position 805: character maps to ----------------------------------------ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

Current Python version: Python 3.7.4 Tried versions: 3.7.6, 3.8.1 OS: Windows 10 Pro

Note: It does work to install it on my Debian 8.10 server, as a side-note.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/hustcc/timeago/issues/29?email_source=notifications&email_token=ABGKSTI6PUUHKFCEETNEHMLQ4JPD5A5CNFSM4KC5QYJ2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IEDKOIA, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABGKSTMMAGHGJ36OU2P2RVLQ4JPD5ANCNFSM4KC5QYJQ .

AlexFlipnote commented 4 years ago

I use 1.0.10 which is the last version to work on Windows actually. Don't have to make it work asap, but would be nice to cases where I debug on Windows machine and not on my server 😊

lolobosse commented 4 years ago

Is it working with timeago 1.0.13?

AlexFlipnote commented 4 years ago
C:\WINDOWS\system32>pip install timeago
Collecting timeago
  Using cached https://files.pythonhosted.org/packages/57/68/513d00d481bc8989a75a0a817ac199f9e0ddb769209baab694f5d035a0e4/timeago-1.0.13.tar.gz
Installing collected packages: timeago
    Running setup.py install for timeago ... done
Successfully installed timeago-1.0.13

Yupp, it works to install it on Windows now and to use in Python scripts, thank you. ❤️

lolobosse commented 4 years ago

Very nice! Thanks for reporting :pray:

Le lun. 13 janv. 2020 à 20:22, AlexFlipnote notifications@github.com a écrit :

C:\WINDOWS\system32>pip install timeago

Collecting timeago

Using cached https://files.pythonhosted.org/packages/57/68/513d00d481bc8989a75a0a817ac199f9e0ddb769209baab694f5d035a0e4/timeago-1.0.13.tar.gz

Installing collected packages: timeago

Running setup.py install for timeago ... done

Successfully installed timeago-1.0.13

Yupp, it works to install it on Windows now and to use in Python scripts, thank you. ❤️

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/hustcc/timeago/issues/29?email_source=notifications&email_token=ABGKSTICB547ZGYHEC2BYQTQ5S5QRA5CNFSM4KC5QYJ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEIZ6R2I#issuecomment-573827305, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABGKSTN4GG2LPHT2S4O3PVDQ5S5QRANCNFSM4KC5QYJQ .