- android - RelativeLayout 背景可绘制重叠内容
- android - 如何链接 cpufeatures lib 以获取 native android 库?
- java - OnItemClickListener 不起作用,但 OnLongItemClickListener 在自定义 ListView 中起作用
- java - Android 文件转字符串
我正在学习如何使用 gitstats 通过 git 创建报告。所以我下载并安装了 Git-1.8.1.2-preview20130201.exe 、 python-2.6.2.msi 、 gp463-win32-setup.exe(gnuplot) 并克隆了 gitstats
来自 http://gitstats.com/ .我还将我的 git、python、gnuplot、gitstats 添加到我的 PATH 中。然后我自己用“Git Bash”创建了一个名为 repo1 的存储库。但是当我输入命令来创建
报告关于repo1,它输出这样的错误:
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Users\Dynamsoft220\Desktop>e:
E:\>cd Jeremy\Git\gitstats
E:\Jeremy\Git\gitstats>python gitstats e:\Jeremy\Git\repo1 e:\Jeremy\Git\report
[0.08100] >> gnuplot --version
Output path: e:\Jeremy\Git\report
Git path: e:\Jeremy\Git\repo1
Collecting data...
[0.12600] >> git shortlog -s HEAD | wc -l
[0.08300] >> git show-ref --tags
[0.18100] >> git rev-list --pretty=format:"%at %ai %aN <%aE>" HEAD | grep -v ^co
mmit
[0.09300] >> git rev-list --pretty=format:"%at %T" HEAD | grep -v ^commit
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "D:\Python26\lib\multiprocessing\forking.py", line 341, in main
prepare(preparation_data)
File "D:\Python26\lib\multiprocessing\forking.py", line 450, in prepare
file, path_name, etc = imp.find_module(main_name, dirs)
ImportError: No module named gitstats
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "D:\Python26\lib\multiprocessing\forking.py", line 341, in main
prepare(preparation_data)
File "D:\Python26\lib\multiprocessing\forking.py", line 450, in prepare
file, path_name, etc = imp.find_module(main_name, dirs)
ImportError: No module named gitstats
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "D:\Python26\lib\multiprocessing\forking.py", line 341, in main
prepare(preparation_data)
File "D:\Python26\lib\multiprocessing\forking.py", line 450, in prepare
file, path_name, etc = imp.find_module(main_name, dirs)
ImportError: No module named gitstats
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "D:\Python26\lib\multiprocessing\forking.py", line 341, in main
prepare(preparation_data)
File "D:\Python26\lib\multiprocessing\forking.py", line 450, in prepare
file, path_name, etc = imp.find_module(main_name, dirs)
ImportError: No module named gitstats
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "D:\Python26\lib\multiprocessing\forking.py", line 341, in main
prepare(preparation_data)
File "D:\Python26\lib\multiprocessing\forking.py", line 450, in prepare
file, path_name, etc = imp.find_module(main_name, dirs)
ImportError: No module named gitstats
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "D:\Python26\lib\multiprocessing\forking.py", line 341, in main
prepare(preparation_data)
File "D:\Python26\lib\multiprocessing\forking.py", line 450, in prepare
file, path_name, etc = imp.find_module(main_name, dirs)
ImportError: No module named gitstats
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "D:\Python26\lib\multiprocessing\forking.py", line 341, in main
prepare(preparation_data)
File "D:\Python26\lib\multiprocessing\forking.py", line 450, in prepare
file, path_name, etc = imp.find_module(main_name, dirs)
ImportError: No module named gitstats
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "D:\Python26\lib\multiprocessing\forking.py", line 341, in main
prepare(preparation_data)
File "D:\Python26\lib\multiprocessing\forking.py", line 450, in prepare
file, path_name, etc = imp.find_module(main_name, dirs)
ImportError: No module named gitstats
我真的不知道如何解决这个错误。其实我想也许是因为软件版本太晚了,但似乎不是!对于大多数人来说似乎太简单了,无法讨论
TT,所以我找不到很多关于它的文章。任何建议将不胜感激!谢谢~
最佳答案
我在让 gitstats 在 Windows 上运行时也遇到了问题。这很棘手,因为它看起来一切正常,但实际上行不通!
以下是一些对我有帮助的调整。首先,我确保 PYTHON_PATH 设置正确并将其添加到路径中:
C:\> set PYTHON_PATH=C:\Python27;C:\Python27\Lib;C:\Python27\DLLs;C:\Python27\Lib\lib-tk
C:\> set PATH=%PATH%;%PYTHON_PATH%
接下来,我将 gitstats 添加到路径中,因为,好吧,为什么不在这一点上:
C:\> set PATH=%PATH%;c:\projects\gitstats
最后,重命名* gitstats
为 gitstats.py
:
C:\> cd projects\gitstats
C:\> ren gitstats gitstats.py
* 在 github 上的问题日志中提到了重命名,@danio 在那里解决了:https://github.com/hoxu/gitstats/issues/34
关于windows - gitstats在windows中使用gitstats报错的解决方法,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19680536/
我正在努力学习本教程 https://github.com/cf-platform-eng/spring-boot-cities/tree/master/cities-service在 Cloud F
0){ echo "Username or email already exists."; }else{ $query = mysql_que
我想在Linux上编译ARToolKit源码,下载源码,按照ARToolKit文档,配置GLUT , OpenGL, libjpeg 等库。 转到 ARToolKit 目录并键入 ./Configer
你好,我在这个程序中遇到错误,wcout 不是 `std' 的成员。如您所见,我也使用了 iostream,但没有用。我有 Dev-C++ 4.9.9.2,我的操作系统是 XP SP3我需要你的帮助。
我尝试对一个网站进行多次投票,但我得到: panic: runtime error: invalid memory address or nil pointer dereference [signal
当我将“ using namespace std; int main(){ string s[30]; int n = 20; for(int i = 0; i using
我设置了 EMAIL_URL process.env.MAIL_URL="smtp://xx%40gmail.com:yyy@smtp.gmail.com:465" 这个工作找到了 Email.sen
我有如下文件夹结构 . ├── docker-compose.yml └── web-app ├── create_tomcat_admin.sh ├── Dockerfile
这是我在 php 中的查询代码: $query3 = mysql_query("SELECT * FROM area_of_work") or die('Invalid query:'. mysql_
我正在尝试将 therubyracer/therubyracer-heroku 安装到我的应用程序,因为它在 heroku 服务器中不起作用,因为我没有 javascript 运行时环境。 当我尝试安
我正在开发一个非常简单的 React 应用程序。它有一个组件,在这个组件中,我试图在单击链接时设置状态。但出于某种原因,setState 甚至没有得到认可。它带有下划线,表示未解析的函数或方法 set
我有三个来源:代码处理.h typedef enum {typeBool, typeVarDeclaration, typeFuncDeclaration } nodeEnum; typedef st
我正在尝试从我的 Android 手机向 raspi 发送连续的命令。我使用了此链接中的代码,但出现错误。 链接:https://stackoverflow.com/questions/2347143
我正在尝试从数据库中加载数据并将其放入不同的 View 中。 log cat 返回错误,它找不到“_id”列。 有人可以帮我解决这个问题吗? SqlHelper代码: public class Fib
我的alertview给出了这个问题..它与sqlite无关..它给出了一些信息.. 我该如何解决这个问题? UIAlertView *infoShow = [[UIAlertView alloc]
这个问题在这里已经有了答案: launch activities from different package (5 个答案) 关闭 10 年前。 最近我一直在开发一个新的应用程序,我正在尝试使用
这是我的代码: #include #include typedef struct test { int *a; char *s; }TEST; int main (void) {
所以我定义了一个函数,如果它是由它的 lonesome 实现的,那么它非常适合对线性数组进行合并排序,但是如果我把它放到一个类中,它就会出错。我认为这是一个很好的例子,说明我不太了解类(class)的
我是 IOS 新手。我有一个示例项目,并试图在此基础上学习 Obj-C。 现在我正处于学习如何使用 UIAlertController 的阶段。我有这样的代码: if (loanAmount == 0
当我尝试使用 wincachegrind 并获取 cachegrind 文件时,它返回 Cannot find call target. cachegrind.out line number:68 有
我是一名优秀的程序员,十分优秀!