amorison / qjobs Goto Github PK
View Code? Open in Web Editor NEWqstat wrapper
License: MIT License
qstat wrapper
License: MIT License
Hi,
I've also got this error below. Any solution?
Thanks!
Sander
[svanderlaan@hpcs03 ~]$ qjobs
Traceback (most recent call last):
File "/hpc/local/CentOS7/dhl_ec/bin/qjobs", line 9, in <module>
load_entry_point('qjobs==0.1.0.dev0', 'console_scripts', 'qjobs')()
File "/hpc/local/CentOS7/common/lang/python/2.7.10/lib/python2.7/site-packages/pkg_resources/__init__.py", line 547, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/hpc/local/CentOS7/common/lang/python/2.7.10/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2720, in load_entry_point
return ep.load()
File "/hpc/local/CentOS7/common/lang/python/2.7.10/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2380, in load
return self.resolve()
File "/hpc/local/CentOS7/common/lang/python/2.7.10/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2386, in resolve
module = __import__(self.module_name, fromlist=['__name__'], level=0)
File "/hpc/local/CentOS7/dhl_ec/lib/python2.7/site-packages/qjobs-0.1.0.dev0-py2.7.egg/qjobs/main.py", line 20
print('trailing spaces to set to an actual x/empty string', end='\n\n')
^
SyntaxError: invalid syntax
Hi, I just installed qjobs with
python3 -m pip install -U --user qjobs
Collecting qjobs
Downloading qjobs-0.1.1-py3-none-any.whl (9.3 kB)
Collecting setuptools-scm
Downloading setuptools_scm-4.1.2-py2.py3-none-any.whl (27 kB)
Collecting loam>=0.1.1
Downloading loam-0.3.1-py3-none-any.whl (13 kB)
Requirement already satisfied, skipping upgrade: setuptools in /usr/local/lib/python3.6/site-packages (from setuptools-scm->qjobs) (45.2.0)
Collecting toml>=0.9.4
Downloading toml-0.10.2-py2.py3-none-any.whl (16 kB)
Installing collected packages: setuptools-scm, toml, loam, qjobs
Successfully installed loam-0.3.1 qjobs-0.1.1 setuptools-scm-4.1.2 toml-0.10.2
...but get a startup error:
Traceback (most recent call last):
File "/home/me/.local/bin/qjobs", line 5, in
from qjobs.main import main
File "/home/me/.local/lib/python3.6/site-packages/qjobs/init.py", line 18, in
conf = ConfigurationManager(config.CONF_DEF, config.CONFIG_FILE)
TypeError: init() takes 1 positional argument but 3 were given
Is there a version mismatch between loam and qjobs on PyPI?
Thanks,
Rob
I have modified qjobs
to be compatible with the TORQUE/qstat. See my fork of qjobs
(https://github.com/liuyxpp/qjobs).
There are several differences between TORQUE/qstat and Sun Grid/qstat. For example, Torque/qstat doesn't accept option '-xml' but '-x'. Furthermore '-x' seems to be incompatible with other options, such as '-u'. The 'Job_list' tag should be 'Job' in Torque/qstat. And all other item tags in current qjobs
are different than those in Torque/qstat. The time reported in Torque/qstat is a UNIX timestamp rather than an ISO timeformat string.
I have not yet figured out two corresponding tags for two items: 'slots' and 'hard_req_queue' in Torque/qstat.
Have any ideas to support both qstat
s?
Hi,
I'm getting the error below (in bold). Any tips?
Best,
Sander
running install
running bdist_egg
running egg_info
creating qjobs.egg-info
writing qjobs.egg-info/PKG-INFO
writing top-level names to qjobs.egg-info/top_level.txt
writing dependency_links to qjobs.egg-info/dependency_links.txt
writing entry points to qjobs.egg-info/entry_points.txt
writing manifest file 'qjobs.egg-info/SOURCES.txt'
reading manifest file 'qjobs.egg-info/SOURCES.txt'
writing manifest file 'qjobs.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_py
creating build
creating build/lib
creating build/lib/qjobs
copying qjobs/__main__.py -> build/lib/qjobs
copying qjobs/job.py -> build/lib/qjobs
copying qjobs/main.py -> build/lib/qjobs
copying qjobs/misc.py -> build/lib/qjobs
copying qjobs/cmdargs.py -> build/lib/qjobs
copying qjobs/__init__.py -> build/lib/qjobs
copying qjobs/constants.py -> build/lib/qjobs
copying qjobs/configfile.py -> build/lib/qjobs
creating build/bdist.linux-x86_64
creating build/bdist.linux-x86_64/egg
creating build/bdist.linux-x86_64/egg/qjobs
copying build/lib/qjobs/__main__.py -> build/bdist.linux-x86_64/egg/qjobs
copying build/lib/qjobs/job.py -> build/bdist.linux-x86_64/egg/qjobs
copying build/lib/qjobs/main.py -> build/bdist.linux-x86_64/egg/qjobs
copying build/lib/qjobs/misc.py -> build/bdist.linux-x86_64/egg/qjobs
copying build/lib/qjobs/cmdargs.py -> build/bdist.linux-x86_64/egg/qjobs
copying build/lib/qjobs/__init__.py -> build/bdist.linux-x86_64/egg/qjobs
copying build/lib/qjobs/constants.py -> build/bdist.linux-x86_64/egg/qjobs
copying build/lib/qjobs/configfile.py -> build/bdist.linux-x86_64/egg/qjobs
byte-compiling build/bdist.linux-x86_64/egg/qjobs/__main__.py to __main__.pyc
byte-compiling build/bdist.linux-x86_64/egg/qjobs/job.py to job.pyc
byte-compiling build/bdist.linux-x86_64/egg/qjobs/main.py to main.pyc
**File "build/bdist.linux-x86_64/egg/qjobs/main.py", line 20
print('trailing spaces to set to an actual x/empty string', end='\n\n')
^
SyntaxError: invalid syntax**
byte-compiling build/bdist.linux-x86_64/egg/qjobs/misc.py to misc.pyc
byte-compiling build/bdist.linux-x86_64/egg/qjobs/cmdargs.py to cmdargs.pyc
byte-compiling build/bdist.linux-x86_64/egg/qjobs/__init__.py to __init__.pyc
byte-compiling build/bdist.linux-x86_64/egg/qjobs/constants.py to constants.pyc
byte-compiling build/bdist.linux-x86_64/egg/qjobs/configfile.py to configfile.pyc
creating build/bdist.linux-x86_64/egg/EGG-INFO
copying qjobs.egg-info/PKG-INFO -> build/bdist.linux-x86_64/egg/EGG-INFO
copying qjobs.egg-info/SOURCES.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying qjobs.egg-info/dependency_links.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying qjobs.egg-info/entry_points.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying qjobs.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/qjobs-0.1.0.dev0-py2.7.egg' and adding 'build/bdist.linux-x86_64/egg' to it
removing 'build/bdist.linux-x86_64/egg' (and everything under it)
Processing qjobs-0.1.0.dev0-py2.7.egg
Copying qjobs-0.1.0.dev0-py2.7.egg to /hpc/local/CentOS7/dhl_ec/lib/python2.7/site-packages
Adding qjobs 0.1.0.dev0 to easy-install.pth file
Installing qjobs script to /hpc/local/CentOS7/dhl_ec/bin
Installed /hpc/local/CentOS7/dhl_ec/lib/python2.7/site-packages/qjobs-0.1.0.dev0-py2.7.egg
Processing dependencies for qjobs==0.1.0.dev0
Finished processing dependencies for qjobs==0.1.0.dev0
UNSTABLE DEVELOPMENT VERSION 0.1.0.dev0
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.