更新了最新代码的同学安装没有出问题么, portable_hash.c doesn't exist

29 views
Skip to first unread message

Leslie Wen

unread,
Oct 29, 2013, 3:52:27 AM10/29/13
to dpark...@googlegroups.com



dpark (master) $ sudo python setup.py install --verbose
Password:
running install
running bdist_egg
running egg_info
writing requirements to DPark.egg-info/requires.txt
writing DPark.egg-info/PKG-INFO
writing top-level names to DPark.egg-info/top_level.txt
writing dependency_links to DPark.egg-info/dependency_links.txt
reading manifest file 'DPark.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'DPark.egg-info/SOURCES.txt'
installing library code to build/bdist.macosx-10.9-intel/egg
running install_lib
running build_py
error: can't copy 'dpark/portable_hash.c': doesn't exist or not a regular file

对python不熟悉, 不过猜测问题在 setup.py:

         ext_modules = [Extension('dpark.portable_hash', ['dpark/portable_hash.pyx'])]

还是我的设置有问题?



Windreamer

unread,
Oct 29, 2013, 4:51:43 AM10/29/13
to dpark-users
hi dpark 新增加了依赖cython的模块,安装时需要先装cython的包

---
Windreamer
--
You received this message because you are subscribed to the Google Groups "DPark Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dpark-users...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

田忠博

unread,
Oct 29, 2013, 5:50:10 AM10/29/13
to dpark-users
hi Leslie,

   刚刚改了一下打包的方式,让安装的时候可以不依赖Cython,你看看能不能解决你的问题。


2013/10/29 Windreamer <windr...@gmail.com>

Leslie Wen

unread,
Oct 29, 2013, 5:56:23 AM10/29/13
to dpark...@googlegroups.com

现在好了。。
之前我是安装了cython的啊, 不然应该是先报依赖的错误, 对吧

田忠博

unread,
Oct 29, 2013, 6:17:37 AM10/29/13
to dpark-users
是的,没安装Cython会报ImportError。但是似乎并没有把Cython文件生成对应的c文件


2013/10/29 Leslie Wen <xinsh...@gmail.com>
Reply all
Reply to author
Forward
0 new messages