Giter VIP home page Giter VIP logo

Comments (11)

PedroVelez avatar PedroVelez commented on May 20, 2024

[Update] after reading several issues, somehow similar, I modified my user name (Pedro Velez) to avoid any space but I still get the same fatal: Invalid raw date It seems related to the way the date from the commit is used, but I am not able to fix it.

from ghp-import.

c-w avatar c-w commented on May 20, 2024

This looks similar to #60. Could you report what the following command returns for you?

import time
print(time.strftime('%z'))

from ghp-import.

c-w avatar c-w commented on May 20, 2024

Resolving in favor of #60 as this seems to be the same root cause. Please add any additional questions or follow-up to that other issue. Thanks!

from ghp-import.

c-w avatar c-w commented on May 20, 2024

This has been released in 0.6.0.

from ghp-import.

imdeepmind avatar imdeepmind commented on May 20, 2024

I'm using version 2.0.2 of ghp-import and Python 3.8.10. Still getting this error. Any idea what's wrong @c-w ?

I'm getting the following output from the code you mentioned above.

>>> import time
>>> print(time.strftime('%z'))
+0530
>>> 

from ghp-import.

c-w avatar c-w commented on May 20, 2024

Could you provide me with the full stack trace @imdeepmind? Also, what OS and git version are you on?

from ghp-import.

imdeepmind avatar imdeepmind commented on May 20, 2024

Here are the details @c-w

Stacktrace:

fatal: Invalid raw date "<[email protected]> 1638984718 +0530" in ident: Abhishek Chatterjee <imdeepmind> <[email protected]> 1638984718 +0530
fast-import: dumping crash report to .git/fast_import_crash_19516
Traceback (most recent call last):
  File "/home/imdeepmind/Desktop/workspace/hocrox/env/bin/ghp-import", line 8, in <module>
    sys.exit(main())
  File "/home/imdeepmind/Desktop/workspace/hocrox/env/lib/python3.8/site-packages/ghp_import.py", line 278, in main
    ghp_import(args[0], **opts.__dict__)
  File "/home/imdeepmind/Desktop/workspace/hocrox/env/lib/python3.8/site-packages/ghp_import.py", line 257, in ghp_import
    run_import(git, srcdir, **opts)
  File "/home/imdeepmind/Desktop/workspace/hocrox/env/lib/python3.8/site-packages/ghp_import.py", line 192, in run_import
    pipe.stdin.close()
BrokenPipeError: [Errno 32] Broken pipe

OS Version: OS: Linux Mint 20.1 x86_64

Git Version: git version 2.25.1

from ghp-import.

c-w avatar c-w commented on May 20, 2024

Looks like this is an unrelated issue. Could you provide the output of git config --list too, thanks!

from ghp-import.

imdeepmind avatar imdeepmind commented on May 20, 2024

Here it is @c-w

(env) imdeepmind@imdeepmind:~/Desktop/workspace/hocrox(enhancement/add-doc-site)$ git config --list
[email protected]
user.name=Abhishek Chatterjee <imdeepmind>
alias.add-commit=!git add -A && git commit
core.repositoryformatversion=0
core.filemode=true
core.bare=false
core.logallrefupdates=true
[email protected]:imdeepmind/hocrox.git
remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*
branch.main.remote=origin
branch.main.merge=refs/heads/main

from ghp-import.

c-w avatar c-w commented on May 20, 2024

Could you try removing the <imdeepmind> from the user name: git config user.name "Abhishek Chatterjee"? I wonder if that's throwing off the fast-import date parser.

from ghp-import.

imdeepmind avatar imdeepmind commented on May 20, 2024

Thanks @c-w, changing the name user.name fixed the issue

from ghp-import.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.