Comments (8)
If you have python 3.6.x and above installed, then you will need to be on python shell on your terminal to run that command.
your_user@you~% python
Type "help", "copyright", "credits" or "license" for more information.
>>> from jiraone import LOGIN, USER
>>>
from jiraone.
Thanks for the quick response. If I'm in the python shell I'm still getting an error:
Python 3.9.5 (default, May 3 2021, 19:12:05)
[Clang 12.0.5 (clang-1205.0.22.9)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
from jiraone import LOGIN, USER
Traceback (most recent call last):
File "", line 1, in
ModuleNotFoundError: No module named 'jiraone'
So then I thought I should install jiraone within the python shell and this is the result:
pip install jiraone
File "", line 1
pip install jiraone
^
SyntaxError: invalid syntax
from jiraone.
I believe you need to install virtual environment first to do that
your_user@you~% python -m virtualenv venv
cd into the directory of your venv and activate it. You might be asked to upgrade pip and virtualenv, please follow your screen prompt to do that.
your_user@you~% source venv/bin/activate
(venv)your_user@you~% pip install jiraone
(venv)your_user@you~% python
Type "help", "copyright", "credits" or "license" for more information.
>>>
from jiraone.
Hey @aubreyskingdom
How did your configuration go?
from jiraone.
I've made a lot of progress! I was able to get into the virtual environment successfully and configure my login info. I am testing the usage of this by running this:
if name == 'main':
# the output of the file would be absolute to the directory where this python file is being executed from
USER.get_all_users(pull="active", user_type="atlassian", file="user_file.csv")
and this is the result I'm getting:
Current Record - At Row 50
Current Record - At Row 100
Current Record - At Row 150
Current Record - At Row 200
Traceback (most recent call last):
File "", line 3, in
File "/opt/homebrew/lib/python3.9/site-packages/jiraone/reporting.py", line 1139, in get_all_users
self.report(category=folder, filename=file)
File "/opt/homebrew/lib/python3.9/site-packages/jiraone/reporting.py", line 1144, in report
file_writer(folder=category, file_name=filename, data=read, mark="many")
File "/opt/homebrew/lib/python3.9/site-packages/jiraone/reporting.py", line 1265, in file_writer
file = path_builder(path=folder, file_name=file_name)
File "/opt/homebrew/lib/python3.9/site-packages/jiraone/reporting.py", line 1254, in path_builder
base_dir = os.path.join(WORK_PATH, path)
File "/opt/homebrew/Cellar/[email protected]/3.9.5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/posixpath.py", line 90, in join
genericpath._check_arg_types('join', a, *p)
File "/opt/homebrew/Cellar/[email protected]/3.9.5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/genericpath.py", line 152, in _check_arg_types
raise TypeError(f'{funcname}() argument must be str, bytes, or '
TypeError: join() argument must be str, bytes, or os.PathLike object, not '_SpecialForm'
from jiraone.
Hey @aubreyskingdom
I think the problem might be with the path to the file. Can you try the below by adding the folder
path
USER.get_all_users(pull="active", user_type="atlassian", file="user_file.csv", folder="Test_Folder")
from jiraone.
Hi @aubreyskingdom
Hope the above helps!
from jiraone.
If all is okay, I will be closing off this issue.
from jiraone.
Related Issues (20)
- I found a bug in the class PROJECT.change_log
- How to export issues with needed feilds only? HOT 8
- How-to: Using Jira api token to log in HOT 8
- field_name: Target a field name to render. datatype -> string HOT 4
- Export in .RST an project, issue HOT 4
- Issue using download_attachments HOT 5
- Recurring header line with issue export HOT 3
- Jiraone delta extraction HOT 2
- JSON export HOT 5
- issue_export page size parameter needed HOT 3
- issue_export failing HOT 5
- Problem with Export parameters for field_types HOT 3
- Question about issue_export HOT 1
- Error trying to import to json (Jira Data Center) HOT 19
- issue_export stuck HOT 5
- CSV error HOT 2
- _csv.Error: field larger than field limit (131072) HOT 2
- Authentication with bearer token HOT 10
- Issue with `issue_export()` omitting last row
- Private CA certificates / OAuth login HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jiraone.