#112 Can't import trac tickets
Closed: Invalid 7 years ago Opened 7 years ago by mreynolds.

pgimport clone ssh://git@pagure.io/tickets/389-TEST.git

pgimport fedorahosted https://fedorahosted.org/389.git
Enter your FAS Username: mreynolds
Password:

Repo available

1 - 389-TEST.git
Choose the import destination repo [1]:
Traceback (most recent call last):
File "/usr/bin/pgimport", line 9, in <module>
load_entry_point('pagure-importer==1.2.3', 'console_scripts', 'pgimport')()
File "/usr/lib/python2.7/site-packages/click/core.py", line 716, in call
return self.main(args, kwargs)
File "/usr/lib/python2.7/site-packages/click/core.py", line 696, in main
rv = self.invoke(ctx)
File "/usr/lib/python2.7/site-packages/click/core.py", line 1060, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/lib/python2.7/site-packages/click/core.py", line 889, in invoke
return ctx.invoke(self.callback,
ctx.params)
File "/usr/lib/python2.7/site-packages/click/core.py", line 534, in invoke
return callback(
args, kwargs)
File "/usr/lib/python2.7/site-packages/pagure_importer/commands/fedorahosted.py", line 46, in fedorahosted
trac_importer.import_issues(project)
File "/usr/lib/python2.7/site-packages/pagure_importer/utils/importer_trac.py", line 109, in import_issues
tickets_id = self.request('ticket.query', trac_query)
File "/usr/lib/python2.7/site-packages/pagure_importer/utils/importer_trac.py", line 65, in request
resp = resp.json()
File "/usr/lib/python2.7/site-packages/requests/models.py", line 812, in json
return complexjson.loads(self.text,
kwargs)
File "/usr/lib64/python2.7/site-packages/simplejson/init.py", line 501, in loads
return _default_decoder.decode(s)
File "/usr/lib64/python2.7/site-packages/simplejson/decoder.py", line 370, in decode
obj, end = self.raw_decode(s)
File "/usr/lib64/python2.7/site-packages/simplejson/decoder.py", line 393, in raw_decode
return self.scan_once(s, idx=_w(s, idx).end())
simplejson.scanner.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

I don't know if this is an issue with fedorahosted/trac or the pagure importer.


I see it's an old version of pgimport. Can you try with the new version from copr? (latest version is 2.2.2)

I have:

  1. Updated pip
  2. PR to update Readme
  3. PR to remove '.git' in case it's present in the project url

If you use the latest version(2.2.2) and not use '.git' at the end, it should work

Ugh, it was the .git extension. Even on my cheatsheet I did NOT use the .git extension. I should read my own notes more carefully. Thanks, and closing issue!

@mreynolds changed the status to Closed

7 years ago

Login to comment on this ticket.

Metadata