aliva / jdate Goto Github PK
View Code? Open in Web Editor NEWjalali date for command line
Home Page: https://pypi.python.org/pypi/jdate
jalali date for command line
Home Page: https://pypi.python.org/pypi/jdate
➜ ~ pip install jdate
Defaulting to user installation because normal site-packages is not writeable
Collecting jdate
Downloading jdate-0.0.3.tar.gz (1.9 kB)
Collecting khayyam
Downloading Khayyam-3.0.17.tar.gz (46 kB)
|████████████████████████████████| 46 kB 355 kB/s
Using legacy 'setup.py install' for jdate, since package 'wheel' is not installed.
Using legacy 'setup.py install' for khayyam, since package 'wheel' is not installed.
Installing collected packages: khayyam, jdate
Running setup.py install for khayyam ... done
Running setup.py install for jdate ... done
Successfully installed jdate-0.0.3 khayyam-3.0.17
➜ ~
➜ ~ jdate
zsh: command not found: jdate
➜ ~ jdate
zsh: command not found: jdate
➜ ~ jdate
zsh: command not found: jdate
➜ ~ jdate +%Y-%m-%d
zsh: command not found: jdate
➜ ~ jdate
zsh: command not found: jdate
➜ ~
➜ ~ git clone https://github.com/aliva/jdate
Cloning into 'jdate'...
remote: Enumerating objects: 52, done.
remote: Total 52 (delta 0), reused 0 (delta 0), pack-reused 52
Receiving objects: 100% (52/52), 6.71 KiB | 6.71 MiB/s, done.
Resolving deltas: 100% (25/25), done.
➜ ~ cd jdate
➜ jdate git:(master) lks
zsh: command not found: lks
➜ jdate git:(master) ls
jdate MANIFEST README.md setup.py
➜ jdate git:(master) ./jdate
س فر 31 10:51:10 1400
➜ jdate git:(master) ./jdate
س فر 31 10:51:12 1400
➜ jdate git:(master) python setup.py
usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: setup.py --help [cmd1 cmd2 ...]
or: setup.py --help-commands
or: setup.py cmd --help
error: no commands supplied
➜ jdate git:(master) python setup.py install
running install
error: can't create or remove files in install directory
The following error occurred while trying to add or remove files in the
installation directory:
[Errno 13] Permission denied: '/usr/lib/python3.9/site-packages/test-easy-install-17192.write-test'
The installation directory you specified (via --install-dir, --prefix, or
the distutils default setting) was:
/usr/lib/python3.9/site-packages/
Perhaps your account does not have write access to this directory? If the
installation directory is a system-owned directory, you may need to sign in
as the administrator or "root" account. If you do not have administrative
access to this machine, you may wish to choose a different installation
directory, preferably one that is listed in your PYTHONPATH environment
variable.
For information on other options, you may wish to consult the
documentation at:
https://setuptools.readthedocs.io/en/latest/easy_install.html
Please make the appropriate changes for your system and try again.
➜ jdate git:(master) sudo python setup.py install
[sudo] password for max:
running install
running bdist_egg
running egg_info
creating jdate.egg-info
writing jdate.egg-info/PKG-INFO
writing dependency_links to jdate.egg-info/dependency_links.txt
writing requirements to jdate.egg-info/requires.txt
writing top-level names to jdate.egg-info/top_level.txt
writing manifest file 'jdate.egg-info/SOURCES.txt'
reading manifest file 'jdate.egg-info/SOURCES.txt'
writing manifest file 'jdate.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
warning: install_lib: 'build/lib' does not exist -- no Python modules to install
creating build
creating build/bdist.linux-x86_64
creating build/bdist.linux-x86_64/egg
creating build/bdist.linux-x86_64/egg/EGG-INFO
installing scripts to build/bdist.linux-x86_64/egg/EGG-INFO/scripts
running install_scripts
running build_scripts
creating build/scripts-3.9
copying and adjusting jdate -> build/scripts-3.9
changing mode of build/scripts-3.9/jdate from 644 to 755
creating build/bdist.linux-x86_64/egg/EGG-INFO/scripts
copying build/scripts-3.9/jdate -> build/bdist.linux-x86_64/egg/EGG-INFO/scripts
changing mode of build/bdist.linux-x86_64/egg/EGG-INFO/scripts/jdate to 755
copying jdate.egg-info/PKG-INFO -> build/bdist.linux-x86_64/egg/EGG-INFO
copying jdate.egg-info/SOURCES.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying jdate.egg-info/dependency_links.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying jdate.egg-info/requires.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying jdate.egg-info/top_level.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
zip_safe flag not set; analyzing archive contents...
creating dist
creating 'dist/jdate-0.0.3-py3.9.egg' and adding 'build/bdist.linux-x86_64/egg' to it
removing 'build/bdist.linux-x86_64/egg' (and everything under it)
Processing jdate-0.0.3-py3.9.egg
Copying jdate-0.0.3-py3.9.egg to /usr/lib/python3.9/site-packages
Adding jdate 0.0.3 to easy-install.pth file
Installing jdate script to /usr/bin
Installed /usr/lib/python3.9/site-packages/jdate-0.0.3-py3.9.egg
Processing dependencies for jdate==0.0.3
Searching for khayyam
Reading https://pypi.org/simple/khayyam/
Downloading https://files.pythonhosted.org/packages/09/51/0af60dfa44b5cc8719ab29d73e8d281cfa628b74ea621548ce2e2dbdd088/Khayyam-3.0.17.tar.gz#sha256=d0a30c6e9caa56a7f730879df8f3fe0ad7d9fa8c57b0d8f479cfa0460a7647f2
Best match: Khayyam 3.0.17
Processing Khayyam-3.0.17.tar.gz
Writing /tmp/easy_install-4iz7vkfl/Khayyam-3.0.17/setup.cfg
Running Khayyam-3.0.17/setup.py -q bdist_egg --dist-dir /tmp/easy_install-4iz7vkfl/Khayyam-3.0.17/egg-dist-tmp-_4cxly6f
warning: no files found matching 'khayyam/algorithms_c.pyx'
Moving Khayyam-3.0.17-py3.9-linux-x86_64.egg to /usr/lib/python3.9/site-packages
Adding Khayyam 3.0.17 to easy-install.pth file
Installed /usr/lib/python3.9/site-packages/Khayyam-3.0.17-py3.9-linux-x86_64.egg
Finished processing dependencies for jdate==0.0.3
➜ jdate git:(master) jdate
Traceback (most recent call last):
File "/usr/bin/jdate", line 4, in <module>
__import__('pkg_resources').run_script('jdate==0.0.3', 'jdate')
File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 651, in run_script
self.require(requires)[0].run_script(script_name, ns)
File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 1436, in run_script
raise ResolutionError(
pkg_resources.ResolutionError: Script 'scripts/jdate' not found in metadata at '/home/max/.local/lib/python3.9/site-packages/jdate-0.0.3-py3.9.egg-info'
➜ jdate git:(master) jdate
Traceback (most recent call last):
File "/usr/bin/jdate", line 4, in <module>
__import__('pkg_resources').run_script('jdate==0.0.3', 'jdate')
File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 651, in run_script
self.require(requires)[0].run_script(script_name, ns)
File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 1436, in run_script
raise ResolutionError(
pkg_resources.ResolutionError: Script 'scripts/jdate' not found in metadata at '/home/max/.local/lib/python3.9/site-packages/jdate-0.0.3-py3.9.egg-info'
➜ jdate git:(master) ls
build dist jdate jdate.egg-info MANIFEST README.md setup.py
calling jdate with this command jdate | fribidi
with python2 throws this error
print (jdate.strftime(time_format))
UnicodeEncodeError: 'ascii' codec can't encode character u'\u062f' in position 0: ordinal not in range(128)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.