科学网

 找回密码
  注册

tag 标签: cannot

相关帖子

版块 作者 回复/查看 最后发表

没有相关内容

相关日志

windows max path导致的问题ValueError: source code string ...
LUCKYLUFFY 2018-3-2 11:33
【版权所有,转载请注明出处】 问题描述:运行 python 程序,在 import 语句部分出现: ValueError: source code string cannot contain null bytes 错误 网络搜索出来的结果: 解决方案: linux 下面运行 sed -i 's/\\x0//g' Filename 测试方法:无效 问题回想:本机安装python 3的时候有一个 Disable path length limit的选项,但是服务器上安装的时候没有,所有猜测与这个有关。 查看系统配置:本机( Win 10 1709 )服务器( Win10 1511 ) 检索到的帖子:http://mspoweruser.com/ntfs-260-character-windows-10/ Open Group Policy Editor (Press Windows Key and type gpedit.msc and hit Enter key . Navigate to the following directory: Local Computer Policy Computer Configuration Administrative Templates System Filesystem NTFS . Click Enable NTFS long paths option and enable it. 来自 http://mspoweruser.com/ntfs-260-character-windows-10/ 查看本机的配置【计算机配置 - 管理模板 - 文件系统】 查看服务器的竟然没有这个 好吧,所以问题的解决方案来了。 想方设法把 path (from module import * 中的module的路径) 的长度 改短一些(比如重命名,比如移动文件夹and so on)。 果然,问题迎刃而解!
个人分类: Tip|8785 次阅读|0 个评论
libRlapack.so: cannot open (R in Ubuntu)
bigdataage 2015-5-21 10:30
libRlapack.so: cannot open (R in Ubuntu) The library libRlapack.so is located in /usr/lib/R/modules but is named lapack.so next I copy the file in the same folder with the right name sudo cp lapack.so libRlapack.so sudo cp /usr/lib/R/modules/libRlapack.so /usr/lib/libRlapack.so OK! https://bugs.launchpad.net/ubuntu/+source/rkward/+bug/264436
6578 次阅读|0 个评论
退一步,海阔天空
热度 2 zuojun 2015-5-20 18:29
从昨晚起,电子邮件送不出去。今天中午开始跟电子邮箱过不去。结果,越搞越糟糕。最后,四个邮箱,一个成了空白。无可奈何(急中生智?),直接用Yahoo website送邮件。这样,至少可以和外界联系了。 因为有了“临时措施”,干脆把Mac的Mail关了。反而,因此解决了“问题”。 有时候,拼命还不如认输。
个人分类: iLove Mac|2697 次阅读|4 个评论
[转载] Google it: cannot vs. can not
zuojun 2013-10-30 02:49
http://www.dailywritingtips.com/cannot-or-can-not/ ps. I may have had a Blog on this, but google-ing it is faster than finding that old Blog.
个人分类: Scientific Writing|1753 次阅读|0 个评论
[转载]解决/usr/bin/ld: cannot find -lxxx
ljl627 2012-2-26 09:23
在linux环境编译应用程式或lib的source code时常常会出现如下的错误讯息: /usr/bin/ld: cannot find -lxxx 这些讯息会随着编译不同类型的source code 而有不同的结果出来如: /usr/bin/ld: cannot find -lc /usr/bin/ld: cannot find -lltdl /usr/bin/ld: cannot find -lXtst 其中xxx即表示函式库文件名称,如上例的:libc.so、libltdl.so、libXtst.so。 其命名规则是:lib+库名(即xxx)+.so。 会发生这样的原因有以下三种情形: 1 系统没有安装相对应的lib 2 相对应的lib版本不对 3 lib(.so档)的symbolic link 不正确,没有连结到正确的函式库文件(.so) 解决方法: (1)先判断在/usr/lib 下的相对应的函式库文件(.so) 的symbolic link 是否正确 若不正确改成正确的连结目标即可解决问题。 (2)若不是symbolic link 的问题引起,而是系统缺少相对应的lib安装lib即可解决。 (3)如何安装缺少的lib: 以上面三个错误讯息为例: 错误1缺少libc的LIB 错误2缺少libltdl的LIB 错误3缺少libXtst的LIB     以Ubuntu为例:   先搜寻相对应的LIB再进行安装的作业如:   apt-cache search libc-dev apt-cache search libltdl-dev apt-cache search libXtst-dev 实例: 在进行输入法gcin的Source Code的编译时出现以下的错误讯息: /usr/bin/ld: cannot find -lXtst 经检查后发现是: lib(.so档)的symbolic link 不正确 解决方法如下: cd /usr/lib ln -s libXtst.so.6 libXtst.so 如果在/usr/lib的目录下找不到libXtst.so 档,那么就表示系统没有安装libXtst的函式库。 解法如下: apt-get install libxtst-dev 转自:http://blog.sina.com.cn/s/blog_616fb0880100xrjj.html
63658 次阅读|0 个评论
[转载]God will make a way
mimizhu2003 2011-10-24 07:25
God will make a way where there seems to be no way He works in ways we cannot see He will make a way for me He be my guide hold me closely to his side with love and strength for each new day He will make a way,he will make a way by a roadway in the wilderness he will lead me and rivers in the desert will I see heaven and earth will fade but his word will still remain he will do something new today
个人分类: 随感|2010 次阅读|0 个评论

Archiver|手机版|科学网 ( 京ICP备07017567号-12 )

GMT+8, 2024-5-18 02:43

Powered by ScienceNet.cn

Copyright © 2007- 中国科学报社

返回顶部