expected "data- n" command, found...
See original GitHub issueI had used ghp-import successfully in windows, but no I swiched to linux an get the following error message when I run ghp-import docs
:
fatal: Expected 'data n' command, found:
fast-import: dumping crash report to .git/fast_import_crash_85004
Traceback (most recent call last):
File "/home/nils/.local/bin/ghp-import", line 8, in <module>
sys.exit(main())
File "/home/nils/.local/lib/python3.8/site-packages/ghp_import.py", line 278, in main
ghp_import(args[0], **opts.__dict__)
File "/home/nils/.local/lib/python3.8/site-packages/ghp_import.py", line 257, in ghp_import
run_import(git, srcdir, **opts)
File "/home/nils/.local/lib/python3.8/site-packages/ghp_import.py", line 192, in run_import
pipe.stdin.close()
BrokenPipeError: [Errno 32] Broken pipe
I dont even beginn to know how I could debug this, can you give me a hint?
Click to expand what the crash report says
fast-import crash report:
fast-import process: 85004
parent process : 85002
at 2021-08-06 14:26:18 +0000
fatal: Expected 'data n' command, found:
Most Recent Commands Before Crash
---------------------------------
M 100644 inline mithelfen-anpacken-mithelfen/19-newsletter-abonnieren/index.html
data 56612
M 100644 inline mithelfen-anpacken-mithelfen/22-kontaktformular/index.html
data 55895
M 100644 inline mithelfen-anpacken-mithelfen/22-kontaktformular/1391103200_Blog_Artdesigner.lv.png
data 15270
M 100644 inline mithelfen-anpacken-mithelfen/75-teamtraining-mit-wiesel-co-am-zimmerb/Team_in_Aktion_WiCoZ.JPG
data 138359
M 100644 inline mithelfen-anpacken-mithelfen/75-teamtraining-mit-wiesel-co-am-zimmerb/index.html
data 59495
M 100644 inline mithelfen-anpacken-mithelfen/20-anpacken/index.html
data 59136
M 100644 inline site_libs/font-awesome-5.1.0/css/all.css
data 45687
M 100644 inline site_libs/font-awesome-5.1.0/css/v4-shims.css
data 41293
M 100644 inline site_libs/font-awesome-5.1.0/webfonts/fa-brands-400.woff
data 73920
M 100644 inline site_libs/font-awesome-5.1.0/webfonts/fa-brands-400.woff2
data 63376
M 100644 inline site_libs/font-awesome-5.1.0/webfonts/fa-brands-400.ttf
data 114816
M 100644 inline site_libs/font-awesome-5.1.0/webfonts/fa-regular-400.woff2
data 14952
M 100644 inline site_libs/font-awesome-5.1.0/webfonts/fa-solid-900.woff
data 76632
M 100644 inline site_libs/font-awesome-5.1.0/webfonts/fa-solid-900.woff2
data 59572
M 100644 inline site_libs/font-awesome-5.1.0/webfonts/fa-regular-400.ttf
data 40516
M 100644 inline site_libs/font-awesome-5.1.0/webfonts/fa-brands-400.svg
data 622420
M 100644 inline site_libs/font-awesome-5.1.0/webfonts/fa-regular-400.eot
data 40744
M 100644 inline site_libs/font-awesome-5.1.0/webfonts/fa-brands-400.eot
data 115052
M 100644 inline site_libs/font-awesome-5.1.0/webfonts/fa-solid-900.eot
data 160768
M 100644 inline site_libs/font-awesome-5.1.0/webfonts/fa-solid-900.svg
data 592839
M 100644 inline site_libs/font-awesome-5.1.0/webfonts/fa-regular-400.svg
data 141551
M 100644 inline site_libs/font-awesome-5.1.0/webfonts/fa-regular-400.woff
data 18212
M 100644 inline site_libs/font-awesome-5.1.0/webfonts/fa-solid-900.ttf
data 160548
M 100644 inline site_libs/lightable-0.0.1/lightable.css
data 5090
M 100644 inline site_libs/headroom-0.9.4/headroom.min.js
data 5359
M 100644 inline site_libs/popper-2.6.0/popper.min.js
data 18453
M 100644 inline site_libs/jquery-1.11.3/jquery.min.js
data 95957
M 100644 inline site_libs/webcomponents-2.0.0/webcomponents.js
data 94086
M 100644 inline site_libs/bowser-1.9.3/bowser.min.js
data 7496
M 100644 inline site_libs/tippy-6.2.7/tippy.umd.min.js
data 22451
M 100644 inline site_libs/tippy-6.2.7/tippy-light-border.css
data 2810
M 100644 inline site_libs/tippy-6.2.7/tippy.css````
data 1390
M 100644 inline site_libs/tippy-6.2.7/tippy-bundle.umd.min.js
data 24077
M 100644 inline site_libs/distill-2.2.21/template.v2.js
data 143721
M 100644 inline site_libs/fuse-6.4.1/fuse.min.js
data 22858
M 100644 inline site_libs/autocomplete-0.37.1/autocomplete.min.js
data 57214
M 100644 inline site_libs/header-attrs-2.8/header-attrs.js
data 507
M 100644 inline site_libs/kePrint-0.0.1/kePrint.js
data 275
M 100644 inline site_libs/anchor-4.2.2/anchor.min.js
data 5827
M 100644 inline wissenschaft-externe-projekte/wissenschaft-externe-projekte.json
data 12542
M 100644 inline wissenschaft-externe-projekte/131-nistkammer-monitoring/schema_Nistkammer-Monit-2.jpg
data 50295
M 100644 inline wissenschaft-externe-projekte/131-nistkammer-monitoring/index.html
data 60240
M 100644 inline wissenschaft-externe-projekte/131-nistkammer-monitoring/07260411-korr-hochf.jpg
data 425484
M 100644 inline wissenschaft-externe-projekte/90-stiftung-wieselnetz-win-wiesel-patchw/WIN_patchwork.png
data 615619
M 100644 inline wissenschaft-externe-projekte/90-stiftung-wieselnetz-win-wiesel-patchw/index.html
data 59355
M 100644 inline wissenschaft-externe-projekte/89-stiftung-wieselnetz-win-foerdermassna/index.html
data 59107
M 100644 inline wissenschaft-externe-projekte/89-stiftung-wieselnetz-win-foerdermassna/WIN_foerdermassnahmen.png
data 434355
M 100644 inline wissenschaft-externe-projekte/87-monitoring-der-kleinmusteliden-in-der/CSCF.png
data 676999
M 100644 inline wissenschaft-externe-projekte/87-monitoring-der-kleinmusteliden-in-der/index.html
data 61249
M 100644 inline wissenschaft-externe-projekte/126-mammaliabox/126-mammaliabox.Rmd
*
Active Branch LRU
-----------------
active_branches = 1 cur, 5 max
pos clock name
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1) 0 refs/heads/gh-pages
Inactive Branches
-----------------
refs/heads/gh-pages:
status : active loaded dirty
tip commit : 75d11ffd69e0a8fcd46d1542dd7ea9e894dfbf6a
old tree : 0000000000000000000000000000000000000000
cur tree : 0000000000000000000000000000000000000000
commit clock: 0
last pack :
Marks
-----
-------------------
END OF CRASH REPORT
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
How to fix a "Command not found" error in Linux - Red Hat
Learn five ways to deal with a "Command not found" error, Linux users. ... PATH variable is never involved, and the file runs...
Read more >bash - How to pass a string to a command that expects a file?
You can use the "fake" filename /dev/stdin which represents the standard input. So execute this: echo "$the_recipe" | cook /dev/stdin.
Read more >'command not found: jest' - Stack Overflow
I was getting zsh: command not found: jest after installing jest and trying to use the command jest . The solution that worked...
Read more >Troubleshooting AWS CLI errors - AWS Command Line Interface
When the AWS CLI reports an error that you don't immediately understand, or produces results that you don't expect, you can get more...
Read more >Print Statement in Python – How to Print with Example Syntax ...
*object can be none, one, or many data values to be printed, and it can be of any data type. Objects get converted...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks for the investigation @JudgeGregg. Closing this at it appears to be an upstream dependency’s issue. Feel free to reopen if you discover something that ghp-import could be doing better.
I think I can reproduce this, and it’s probably not ghp-import’s fault: it happens when a filename has a line break in its name:
if you run:
in your output directory, you will create a file with a line break in its name and git-import will fail.
Now the question is: how does pelican creates such weird filenames. I’m fairly sure it’s due to some weird spacing in a rst file, but cannot reproduce it yet.