I am attempting to build pygraphviz on windows 7 but have problems,see Traceback 1 below. At the moment I am considering changing to the mingw gcc compile. But have also seen that the compiler used should be the same as used in my distribution - Python(x,y).
I'm aware of the pain others have had with this issue. But can't seem to find my exact problem.
I did have, and can easily get, a working version from Christoph Gohlke's Unofficial Windows Binaries for Python Extension Packages. The reason I am attempting a build is that I think it might be a reason that I was getting the problem described here (I'm aware that I might be clutching at straws here and would welcome being put straight on this possible folly).
What debugging step should I next take?
Note. I previously updated the msvc9compiler.py file to the below (to fix this problem - see traceback 2):
def library_dir_option(self, dir): # FIXED VERSION
if ' ' in dir and not dir.startswith('"'):
dir = '"%s"' % dir
return "/LIBPATH:" + dir
Traceback 1:
python setup.py install
running install
include_dirs=None
library_dirs=None
running build
running build_py
running egg_info
writing pygraphviz.egg-info\PKG-INFO
writing top-level names to pygraphviz.egg-info\top_level.txt
writing dependency_links to pygraphviz.egg-info\dependency_links.txt
reading manifest file 'pygraphviz.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'pygraphviz.egg-info\SOURCES.txt'
running build_ext
building 'pygraphviz._graphviz' extension
C:\Python27\lib\site-packages\setuptools\dist.py:285: UserWarning: Normalizing '1.4.dev' to '1.4.dev0'
normalized_version,
warning: no previously-included files matching '*~' found anywhere in distribution
warning: no previously-included files matching '*.pyc' found anywhere in distribution
warning: no previously-included files matching '.svn' found anywhere in distribution
no previously-included directories found matching 'doc\build'
Traceback (most recent call last):
File "setup.py", line 93, in <module>
tests_require=['nose>=0.10.1', 'doctest-ignore-unicode>=0.1.0',],
File "C:\Python27\lib\distutils\core.py", line 151, in setup
dist.run_commands()
File "C:\Python27\lib\distutils\dist.py", line 953, in run_commands
self.run_command(cmd)
File "C:\Python27\lib\distutils\dist.py", line 972, in run_command
cmd_obj.run()
File "C:\Python27\Lib\site-packages\pygraphviz-master\setup_commands.py", line 50, in modified_run
orig_run(self)
File "C:\Python27\lib\site-packages\setuptools\command\install.py", line 65, in run
orig.install.run(self)
File "C:\Python27\lib\distutils\command\install.py", line 563, in run
self.run_command('build')
File "C:\Python27\lib\distutils\cmd.py", line 326, in run_command
self.distribution.run_command(command)
File "C:\Python27\lib\distutils\dist.py", line 972, in run_command
cmd_obj.run()
File "C:\Python27\lib\distutils\command\build.py", line 127, in run
self.run_command(cmd_name)
File "C:\Python27\lib\distutils\cmd.py", line 326, in run_command
self.distribution.run_command(command)
File "C:\Python27\lib\distutils\dist.py", line 972, in run_command
cmd_obj.run()
File "C:\Python27\lib\site-packages\setuptools\command\build_ext.py", line 49, in run
_build_ext.run(self)
File "C:\Python27\lib\distutils\command\build_ext.py", line 337, in run
self.build_extensions()
File "C:\Python27\lib\distutils\command\build_ext.py", line 446, in build_extensions
self.build_extension(ext)
File "C:\Python27\lib\site-packages\setuptools\command\build_ext.py", line 174, in build_extension
_build_ext.build_extension(self, ext)
File "C:\Python27\lib\distutils\command\build_ext.py", line 496, in build_extension
depends=ext.depends)
File "C:\Python27\lib\distutils\msvc9compiler.py", line 473, in compile
self.initialize()
File "C:\Python27\lib\distutils\msvc9compiler.py", line 396, in initialize
self.cc = self.find_exe("cl.exe")
AttributeError: MSVCCompiler instance has no attribute 'find_exe'
Traceback 2:
python setup.py install
running install
include_dirs=None
library_dirs=None
running build
running build_py
running egg_info
writing pygraphviz.egg-info\PKG-INFO
writing top-level names to pygraphviz.egg-info\top_level.txt
writing dependency_links to pygraphviz.egg-info\dependency_links.txt
reading manifest file 'pygraphviz.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'pygraphviz.egg-info\SOURCES.txt'
running build_ext
building 'pygraphviz._graphviz' extension
C:\Program Files (x86)\Common Files\Microsoft\Visual C++ for Python\9.0\VC\Bin\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG "-IC:/Program Files (x86)/Graphviz2.38/include" -INone -IC:\Python27\include -IC:\Python27\PC /Tcpygraphviz/graphviz_wrap.c /Fobuild\temp.win32-2.7\Release\pygraphviz/graphviz_wrap.obj
graphviz_wrap.c
pygraphviz/graphviz_wrap.c(3354) : warning C4047: 'return' : 'int' differs in levels of indirection from 'Agsym_t *'
pygraphviz/graphviz_wrap.c(3440) : warning C4101: 'mode_byte_obj1' : unreferenced local variable
pygraphviz/graphviz_wrap.c(3439) : warning C4101: 'mode_obj1' : unreferenced local variable
pygraphviz/graphviz_wrap.c(3441) : warning C4101: 'mode1' : unreferenced local variable
pygraphviz/graphviz_wrap.c(3438) : warning C4101: 'fd1' : unreferenced local variable
pygraphviz/graphviz_wrap.c(3512) : warning C4101: 'mode2' : unreferenced local variable
pygraphviz/graphviz_wrap.c(3510) : warning C4101: 'mode_obj2' : unreferenced local variable
pygraphviz/graphviz_wrap.c(3509) : warning C4101: 'fd2' : unreferenced local variable
pygraphviz/graphviz_wrap.c(3511) : warning C4101: 'mode_byte_obj2' : unreferenced local variable
C:\Python27\lib\site-packages\setuptools\dist.py:285: UserWarning: Normalizing '1.4.dev' to '1.4.dev0'
normalized_version,
warning: no previously-included files matching '*~' found anywhere in distribution
warning: no previously-included files matching '*.pyc' found anywhere in distribution
warning: no previously-included files matching '.svn' found anywhere in distribution
no previously-included directories found matching 'doc\build'
Traceback (most recent call last):
File "setup.py", line 93, in <module>
tests_require=['nose>=0.10.1', 'doctest-ignore-unicode>=0.1.0',],
File "C:\Python27\lib\distutils\core.py", line 151, in setup
dist.run_commands()
File "C:\Python27\lib\distutils\dist.py", line 953, in run_commands
self.run_command(cmd)
File "C:\Python27\lib\distutils\dist.py", line 972, in run_command
cmd_obj.run()
File "C:\Python27\Lib\site-packages\pygraphviz-master\setup_commands.py", line 50, in modified_run
orig_run(self)
File "C:\Python27\lib\site-packages\setuptools\command\install.py", line 65, in run
orig.install.run(self)
File "C:\Python27\lib\distutils\command\install.py", line 563, in run
self.run_command('build')
File "C:\Python27\lib\distutils\cmd.py", line 326, in run_command
self.distribution.run_command(command)
File "C:\Python27\lib\distutils\dist.py", line 972, in run_command
cmd_obj.run()
File "C:\Python27\lib\distutils\command\build.py", line 127, in run
self.run_command(cmd_name)
File "C:\Python27\lib\distutils\cmd.py", line 326, in run_command
self.distribution.run_command(command)
File "C:\Python27\lib\distutils\dist.py", line 972, in run_command
cmd_obj.run()
File "C:\Python27\lib\site-packages\setuptools\command\build_ext.py", line 49, in run
_build_ext.run(self)
File "C:\Python27\lib\distutils\command\build_ext.py", line 337, in run
self.build_extensions()
File "C:\Python27\lib\distutils\command\build_ext.py", line 446, in build_extensions
self.build_extension(ext)
File "C:\Python27\lib\site-packages\setuptools\command\build_ext.py", line 174, in build_extension
_build_ext.build_extension(self, ext)
File "C:\Python27\lib\distutils\command\build_ext.py", line 528, in build_extension
target_lang=language)
File "C:\Python27\lib\distutils\ccompiler.py", line 691, in link_shared_object
extra_preargs, extra_postargs, build_temp, target_lang)
File "C:\Python27\lib\distutils\msvc9compiler.py", line 606, in link
libraries)
File "C:\Python27\lib\distutils\ccompiler.py", line 1068, in gen_lib_options
lib_opts.append(compiler.library_dir_option(dir))
File "C:\Python27\lib\distutils\msvc9compiler.py", line 753, in library_dir_option
return "/LIBPATH:" + dir
TypeError: cannot concatenate 'str' and 'NoneType' objects
Related
Xfoil Manual Setup Through setup.py raise "CMake Error: Error: generator : MinGW Makefiles"
I have downloaded the python XFOIL library and made some modifications to the API, which is written in Fortran f90, in order to get the thickness attribute, which is calculated in the XFOIL fortran library but not transferred to python through the API, as follows:
function get_thickness() bind(c, name='get_thickness')
use m_xgeom, only: THICK
integer(c_float) :: get_thickness
get_thickness = THICK
end function get_thickness
Since I've made this modification, I have to make the installation manually rather than using pip install.
I tried:
$RepoPath\xfoil-python-master>python setup.py install
But when I try to make the installation with python setup.py install, I get the following error:
running install
$UserPath\Anaconda3\envs\py37\lib\site-packages\setuptools\command\install.py:37: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build, pip and other standards-based tools.
setuptools.SetuptoolsDeprecationWarning,
$UserPath\Anaconda3\envs\py37\lib\site-packages\setuptools\command\easy_install.py:147: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools.
EasyInstallDeprecationWarning,
running bdist_egg
running egg_info
writing xfoil.egg-info\PKG-INFO
writing dependency_links to xfoil.egg-info\dependency_links.txt
writing requirements to xfoil.egg-info\requires.txt
writing top-level names to xfoil.egg-info\top_level.txt
reading manifest file 'xfoil.egg-info\SOURCES.txt'
adding license file 'LICENSE'
writing manifest file 'xfoil.egg-info\SOURCES.txt'
installing library code to build\bdist.win-amd64\egg
running install_lib
running build_py
running build_ext
['-DCMAKE_BUILD_TYPE=Release', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY_RELEASE=$RepoPath\\\xfoil-python-master\\build\\lib.win-amd64-cpython-37\\xfoil', '-DCMAKE_ARCHIVE_OUTPUT_DIRECTORY_RELEASE=build\\temp.win-amd64-cpython-37\\Release', '-DPYTHON_EXECUTABLE=C:\\Users\\kandemir\\Anaconda3\\envs\\py37\\python.exe', '-DCMAKE_WINDOWS_EXPORT_ALL_SYMBOLS=TRUE', '-DCMAKE_RUNTIME_OUTPUT_DIRECTORY_RELEASE=$RepoPath\\\xfoil-python-master\\build\\lib.win-amd64-cpython-37\\xfoil', '-G', 'MinGW Makefiles']
CMake Error: Error: generator : MinGW Makefiles
Does not match the generator used previously: NMake Makefiles
Either remove the CMakeCache.txt file and CMakeFiles directory or choose a different binary directory.
Traceback (most recent call last):
File "setup.py", line 149, in <module>
zip_safe=False
File "$UserPath\Anaconda3\envs\py37\lib\site-packages\setuptools\__init__.py", line 87, in setup
return distutils.core.setup(**attrs)
File "$UserPath\Anaconda3\envs\py37\lib\site-packages\setuptools\_distutils\core.py", line 185, in setup
return run_commands(dist)
File "$UserPath\Anaconda3\envs\py37\lib\site-packages\setuptools\_distutils\core.py", line 201, in run_commands
dist.run_commands()
File "$UserPath\Anaconda3\envs\py37\lib\site-packages\setuptools\_distutils\dist.py", line 968, in run_commands
self.run_command(cmd)
File "$UserPath\Anaconda3\envs\py37\lib\site-packages\setuptools\dist.py", line 1217, in run_command
super().run_command(command)
File "$UserPath\Anaconda3\envs\py37\lib\site-packages\setuptools\_distutils\dist.py", line 987, in run_command
cmd_obj.run()
File "$UserPath\Anaconda3\envs\py37\lib\site-packages\setuptools\command\install.py", line 74, in run
self.do_egg_install()
File "$UserPath\Anaconda3\envs\py37\lib\site-packages\setuptools\command\install.py", line 123, in do_egg_install
self.run_command('bdist_egg')
File "$UserPath\Anaconda3\envs\py37\lib\site-packages\setuptools\_distutils\cmd.py", line 319, in run_command
self.distribution.run_command(command)
File "$UserPath\Anaconda3\envs\py37\lib\site-packages\setuptools\dist.py", line 1217, in run_command
super().run_command(command)
File "$UserPath\Anaconda3\envs\py37\lib\site-packages\setuptools\_distutils\dist.py", line 987, in run_command
cmd_obj.run()
File "$UserPath\Anaconda3\envs\py37\lib\site-packages\setuptools\command\bdist_egg.py", line 165, in run
cmd = self.call_command('install_lib', warn_dir=0)
File "$UserPath\Anaconda3\envs\py37\lib\site-packages\setuptools\command\bdist_egg.py", line 151, in call_command
self.run_command(cmdname)
File "$UserPath\Anaconda3\envs\py37\lib\site-packages\setuptools\_distutils\cmd.py", line 319, in run_command
self.distribution.run_command(command)
File "$UserPath\Anaconda3\envs\py37\lib\site-packages\setuptools\dist.py", line 1217, in run_command
super().run_command(command)
File "$UserPath\Anaconda3\envs\py37\lib\site-packages\setuptools\_distutils\dist.py", line 987, in run_command
cmd_obj.run()
File "$UserPath\Anaconda3\envs\py37\lib\site-packages\setuptools\command\install_lib.py", line 11, in run
self.build()
File "$UserPath\Anaconda3\envs\py37\lib\site-packages\setuptools\_distutils\command\install_lib.py", line 112, in build
self.run_command('build_ext')
File "$UserPath\Anaconda3\envs\py37\lib\site-packages\setuptools\_distutils\cmd.py", line 319, in run_command
self.distribution.run_command(command)
File "$UserPath\Anaconda3\envs\py37\lib\site-packages\setuptools\dist.py", line 1217, in run_command
super().run_command(command)
File "$UserPath\Anaconda3\envs\py37\lib\site-packages\setuptools\_distutils\dist.py", line 987, in run_command
cmd_obj.run()
File "$UserPath\Anaconda3\envs\py37\lib\site-packages\setuptools\command\build_ext.py", line 84, in run
_build_ext.run(self)
File "$UserPath\Anaconda3\envs\py37\lib\site-packages\Cython\Distutils\old_build_ext.py", line 186, in run
_build_ext.build_ext.run(self)
File "$UserPath\Anaconda3\envs\py37\lib\site-packages\setuptools\_distutils\command\build_ext.py", line 346, in run
self.build_extensions()
File "setup.py", line 110, in build_extensions
cwd=self.build_temp)
File "$UserPath\Anaconda3\envs\py37\lib\subprocess.py", line 363, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake', '$RepoPath\\\xfoil-python-master', '-DCMAKE_BUILD_TYPE=Release', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY_RELEASE=$RepoPath\\\xfoil-python-master\\build\\lib.win-amd64-cpython-37\\xfoil', '-DCMAKE_ARCHIVE_OUTPUT_DIRECTORY_RELEASE=build\\temp.win-amd64-cpython-37\\Release', '-DPYTHON_EXECUTABLE=C:\\Users\\kandemir\\Anaconda3\\envs\\py37\\python.exe', '-DCMAKE_WINDOWS_EXPORT_ALL_SYMBOLS=TRUE', '-DCMAKE_RUNTIME_OUTPUT_DIRECTORY_RELEASE=$RepoPath\\\xfoil-python-master\\build\\lib.win-amd64-cpython-37\\xfoil', '-G', 'MinGW Makefiles']' returned non-zero exit status 1.
Could you please help me to find the solution to that?
could somebody help me with this?
I just simple follow the instruction of megvii
python setup.py develop
the problem comeup:
(newtorch) PS D:\codeofpaper\YOLOX-main> python setup.py develop
running develop
running egg_info
writing yolox.egg-info\PKG-INFO
writing dependency_links to yolox.egg-info\dependency_links.txt
writing top-level names to yolox.egg-info\top_level.txt
reading manifest file 'yolox.egg-info\SOURCES.txt'
adding license file 'LICENSE'
writing manifest file 'yolox.egg-info\SOURCES.txt'
running build_ext
Traceback (most recent call last):
File "setup.py", line 63, in <module>
packages=setuptools.find_packages(),
File "D:\Anaconda\Anaconda3\envs\newtorch\lib\site-packages\setuptools\__init__.py", line 153, in setup
return distutils.core.setup(**attrs)
File "D:\Anaconda\Anaconda3\envs\newtorch\lib\distutils\core.py", line 148, in setup
dist.run_commands()
File "D:\Anaconda\Anaconda3\envs\newtorch\lib\distutils\dist.py", line 966, in run_commands
self.run_command(cmd)
File "D:\Anaconda\Anaconda3\envs\newtorch\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "D:\Anaconda\Anaconda3\envs\newtorch\lib\site-packages\setuptools\command\develop.py", line 34, in run
self.install_for_development()
File "D:\Anaconda\Anaconda3\envs\newtorch\lib\site-packages\setuptools\command\develop.py", line 114, in install_for_development
self.run_command('build_ext')
File "D:\Anaconda\Anaconda3\envs\newtorch\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "D:\Anaconda\Anaconda3\envs\newtorch\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "D:\Anaconda\Anaconda3\envs\newtorch\lib\site-packages\setuptools\command\build_ext.py", line 79, in run
_build_ext.run(self)
File "D:\Anaconda\Anaconda3\envs\newtorch\lib\site-packages\Cython\Distutils\old_build_ext.py", line 186, in run
_build_ext.build_ext.run(self)
File "D:\Anaconda\Anaconda3\envs\newtorch\lib\distutils\command\build_ext.py", line 309, in run
force=self.force)
File "D:\Anaconda\Anaconda3\envs\newtorch\lib\distutils\ccompiler.py", line 1032, in new_compiler
return klass(None, dry_run, force)
File "D:\Anaconda\Anaconda3\envs\newtorch\lib\distutils\cygwinccompiler.py", line 285, in __init__
CygwinCCompiler.__init__ (self, verbose, dry_run, force)
File "D:\Anaconda\Anaconda3\envs\newtorch\lib\distutils\cygwinccompiler.py", line 129, in __init__
if self.ld_version >= "2.10.90":
TypeError: '>=' not supported between instances of 'NoneType' and 'str'
MY CMDline output
I don't kbow what to do?
My cp is Windows10,and I use anaconda virtual env
This means that gcc was not found on your computer, i.e. cygwin is not set up correctly. distutils tries to find the version with this line:
commands = ['gcc -dumpversion', 'ld -v', 'dllwrap --version']
return tuple([_find_exe_version(cmd) for cmd in commands])
So make sure that your PATH is set up correctly so that you can run these commands from the same terminal from which you executed your pip install
This question has been asked a couple of times and I spend at least five hours trying to incorporate suggestions in those posts [but was mostly unsuccessful.
I installed Canopy Enthought python on my windows and now I want to install Levenshtein package available at https://code.google.com/p/pylevenshtein/.
I extracted and tried to run using usual python command but got the following error.
(Canopy 64bit) C:\Users\mary\Desktop>cd python-Levenshtein-0.11.2
(Canopy 64bit) C:\Users\mary\Desktop\python-Levenshtein-0.11.2>python setup.
py install
running install
running bdist_egg
running egg_info
writing requirements to python_Levenshtein.egg-info\requires.txt
writing python_Levenshtein.egg-info\PKG-INFO
writing namespace_packages to python_Levenshtein.egg-info\namespace_packages.txt
writing top-level names to python_Levenshtein.egg-info\top_level.txt
writing dependency_links to python_Levenshtein.egg-info\dependency_links.txt
writing entry points to python_Levenshtein.egg-info\entry_points.txt
reading manifest file 'python_Levenshtein.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching '*' under directory 'docs'
warning: no previously-included files matching '*pyc' found anywhere in distribu
tion
warning: no previously-included files matching '.project' found anywhere in dist
ribution
warning: no previously-included files matching '.pydevproject' found anywhere in
distribution
writing manifest file 'python_Levenshtein.egg-info\SOURCES.txt'
installing library code to build\bdist.win-amd64\egg
running install_lib
running build_ext
building 'Levenshtein' extension
Traceback (most recent call last):
File "setup.py", line 46, in <module>
""",
File "C:\Users\mary\AppData\Local\Enthought\Canopy\App\appdata\canopy-1.4.
0.1938.win-x86_64\lib\distutils\core.py", line 152, in setup
dist.run_commands()
File "C:\Users\mary\AppData\Local\Enthought\Canopy\App\appdata\canopy-1.4.
0.1938.win-x86_64\lib\distutils\dist.py", line 953, in run_commands
self.run_command(cmd)
File "C:\Users\mary\AppData\Local\Enthought\Canopy\App\appdata\canopy-1.4.
0.1938.win-x86_64\lib\distutils\dist.py", line 972, in run_command
cmd_obj.run()
File "C:\Users\mary\AppData\Local\Enthought\Canopy\User\lib\site-packages\
setuptools\command\install.py", line 73, in run
self.do_egg_install()
File "C:\Users\mary\AppData\Local\Enthought\Canopy\User\lib\site-packages\
setuptools\command\install.py", line 93, in do_egg_install
self.run_command('bdist_egg')
File "C:\Users\mary\AppData\Local\Enthought\Canopy\App\appdata\canopy-1.4.
0.1938.win-x86_64\lib\distutils\cmd.py", line 326, in run_command
self.distribution.run_command(command)
File "C:\Users\mary\AppData\Local\Enthought\Canopy\App\appdata\canopy-1.4.
0.1938.win-x86_64\lib\distutils\dist.py", line 972, in run_command
cmd_obj.run()
File "C:\Users\mary\AppData\Local\Enthought\Canopy\User\lib\site-packages\
setuptools\command\bdist_egg.py", line 179, in run
cmd = self.call_command('install_lib', warn_dir=0)
File "C:\Users\mary\AppData\Local\Enthought\Canopy\User\lib\site-packages\
setuptools\command\bdist_egg.py", line 166, in call_command
self.run_command(cmdname)
File "C:\Users\mary\AppData\Local\Enthought\Canopy\App\appdata\canopy-1.4.
0.1938.win-x86_64\lib\distutils\cmd.py", line 326, in run_command
self.distribution.run_command(command)
File "C:\Users\mary\AppData\Local\Enthought\Canopy\App\appdata\canopy-1.4.
0.1938.win-x86_64\lib\distutils\dist.py", line 972, in run_command
cmd_obj.run()
File "C:\Users\mary\AppData\Local\Enthought\Canopy\User\lib\site-packages\
setuptools\command\install_lib.py", line 20, in run
self.build()
File "C:\Users\mary\AppData\Local\Enthought\Canopy\App\appdata\canopy-1.4.
0.1938.win-x86_64\lib\distutils\command\install_lib.py", line 111, in build
self.run_command('build_ext')
File "C:\Users\mary\AppData\Local\Enthought\Canopy\App\appdata\canopy-1.4.
0.1938.win-x86_64\lib\distutils\cmd.py", line 326, in run_command
self.distribution.run_command(command)
File "C:\Users\mary\AppData\Local\Enthought\Canopy\App\appdata\canopy-1.4.
0.1938.win-x86_64\lib\distutils\dist.py", line 972, in run_command
cmd_obj.run()
File "C:\Users\mary\AppData\Local\Enthought\Canopy\User\lib\site-packages\
setuptools\command\build_ext.py", line 46, in run
_build_ext.run(self)
File "C:\Users\mary\AppData\Local\Enthought\Canopy\App\appdata\canopy-1.4.
0.1938.win-x86_64\lib\distutils\command\build_ext.py", line 337, in run
self.build_extensions()
File "C:\Users\mary\AppData\Local\Enthought\Canopy\App\appdata\canopy-1.4.
0.1938.win-x86_64\lib\distutils\command\build_ext.py", line 446, in build_extens
ions
self.build_extension(ext)
File "C:\Users\mary\AppData\Local\Enthought\Canopy\User\lib\site-packages\
setuptools\command\build_ext.py", line 182, in build_extension
_build_ext.build_extension(self,ext)
File "C:\Users\mary\AppData\Local\Enthought\Canopy\App\appdata\canopy-1.4.
0.1938.win-x86_64\lib\distutils\command\build_ext.py", line 496, in build_extens
ion
depends=ext.depends)
File "C:\Users\mary\AppData\Local\Enthought\Canopy\App\appdata\canopy-1.4.
0.1938.win-x86_64\lib\distutils\msvc9compiler.py", line 514, in compile
self.initialize()
File "C:\Users\mary\AppData\Local\Enthought\Canopy\App\appdata\canopy-1.4.
0.1938.win-x86_64\lib\distutils\msvc9compiler.py", line 424, in initialize
vc_env = query_vcvarsall(VERSION, plat_spec)
File "C:\Users\mary\AppData\Local\Enthought\Canopy\App\appdata\canopy-1.4.
0.1938.win-x86_64\lib\distutils\msvc9compiler.py", line 340, in query_vcvarsall
raise ValueError(str(list(result.keys())))
ValueError: [u'path']
(Canopy 64bit) C:\Users\mary\Desktop\python-Levenshtein-0.11.2>
I followed these posts but remained unsuccessful in solving this issue:
Errors while building/installing C module for Python 2.7
http://springflex.blogspot.com/2014/02/how-to-fix-valueerror-when-trying-to.html
Any help will be greatly appreciated.
This is an error, badly handled by Python 2.7's distutils. The underlying meaning is "You must have Visual C++ 2008 installed to do this build". Other than that, I suggest installing Gohlke's build: http://www.lfd.uci.edu/~gohlke/pythonlibs/#python-levenshtein
guys.
I'am trying to installing RPy2-2.3.8 on Windows 7 (64bit), Python 3.3, but RPy2 seems to have quite a lot of installation problems...:(
I tried to install RPy2 by typing "python.exe setup.py install" on "cmd" on windows environment.
R version 3.0.2 was successfully installed and the path of it was added on environment variable.
However, the following error occurred. Can anybody tell what does this error mean?
**D:\>cd rpy2-2.3.8**
D:\rpy2-2.3.8>c:\Python33\python.exe setup.py install
Using 2to3 to translate Python2-only idioms into Python3 code. Please wait...
warning: no previously-included files matching '*patch*' found anywhere in distribution
warning: no previously-included files matching '*diff*' found anywhere in distribution
warning: no previously-included files matching '.hg' found anywhere in distribution
no previously-included directories found matching 'dist'
done.
running install
running build
running build_py
running build_ext
Traceback (most recent call last):
File "setup.py", line 493, in <module>
'rpy2': ['doc/source/rpy2_logo.png', ]}
File "c:\Python33\lib\distutils\core.py", line 148, in setup
dist.run_commands()
File "c:\Python33\lib\distutils\dist.py", line 929, in run_commands
self.run_command(cmd)
File "c:\Python33\lib\distutils\dist.py", line 948, in run_command
cmd_obj.run()
File "c:\Python33\lib\distutils\command\install.py", line 569, in run
self.run_command('build')
File "c:\Python33\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "c:\Python33\lib\distutils\dist.py", line 948, in run_command
cmd_obj.run()
File "c:\Python33\lib\distutils\command\build.py", line 126, in run
self.run_command(cmd_name)
File "c:\Python33\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "c:\Python33\lib\distutils\dist.py", line 947, in run_command
cmd_obj.ensure_finalized()
File "c:\Python33\lib\distutils\cmd.py", line 107, in ensure_finalized
self.finalize_options()
File "setup.py", line 152, in finalize_options
rversion = get_rversion(r_home)
File "setup.py", line 208, in get_rversion
if rversion.startswith("WARNING"):
**TypeError: startswith first arg must be bytes or a tuple of bytes, not str**
For me it's especially weird because the error is "TypeError."
Plus, what does all the warnings mean?
All kinds of discussion will be appreciated.
Many thanks.
RPy does not support Python 3.x. You have to use 2.5 <= Python < 3.0. See official documentation for details.
When i install pymongo using easy_install with 64-bit python, exception happens. But it works with 32-bit python. It seems only 32-bit python is supported.
So i want to know whether 64-bit pymongo exists?
Thanks.
--- more details ---
running install
running bdist_egg
running egg_info
writing pymongo.egg-info\PKG-INFO
writing top-level names to pymongo.egg-info\top_level.txt
writing dependency_links to pymongo.egg-info\dependency_links.txt
reading manifest file 'pymongo.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching '*.h' under directory 'pymongo'
writing manifest file 'pymongo.egg-info\SOURCES.txt'
installing library code to build\bdist.win-amd64\egg
running install_lib
running build_py
running build_ext
building 'bson._cbson' extension
Traceback (most recent call last):
File "F:\mongodb-mongo-python-driver-7269ec4\setup.py", line 184, in <module>
"doc": doc})
File "C:\Python26\lib\distutils\core.py", line 152, in setup
dist.run_commands()
File "C:\Python26\lib\distutils\dist.py", line 975, in run_commands
self.run_command(cmd)
File "C:\Python26\lib\distutils\dist.py", line 995, in run_command
cmd_obj.run()
File "build\bdist.win-amd64\egg\setuptools\command\install.py", line 76, in ru
n
File "build\bdist.win-amd64\egg\setuptools\command\install.py", line 96, in do
_egg_install
File "C:\Python26\lib\distutils\cmd.py", line 333, in run_command
self.distribution.run_command(command)
File "C:\Python26\lib\distutils\dist.py", line 995, in run_command
cmd_obj.run()
File "build\bdist.win-amd64\egg\setuptools\command\bdist_egg.py", line 175, in
run
File "build\bdist.win-amd64\egg\setuptools\command\bdist_egg.py", line 161, in
call_command
File "C:\Python26\lib\distutils\cmd.py", line 333, in run_command
self.distribution.run_command(command)
File "C:\Python26\lib\distutils\dist.py", line 995, in run_command
cmd_obj.run()
File "build\bdist.win-amd64\egg\setuptools\command\install_lib.py", line 20, i
n run
File "C:\Python26\lib\distutils\command\install_lib.py", line 112, in build
self.run_command('build_ext')
File "C:\Python26\lib\distutils\cmd.py", line 333, in run_command
self.distribution.run_command(command)
File "C:\Python26\lib\distutils\dist.py", line 995, in run_command
cmd_obj.run()
File "F:\mongodb-mongo-python-driver-7269ec4\setup.py", line 108, in run
build_ext.run(self)
File "C:\Python26\lib\distutils\command\build_ext.py", line 345, in run
self.build_extensions()
File "C:\Python26\lib\distutils\command\build_ext.py", line 471, in build_exte
nsions
self.build_extension(ext)
File "F:\mongodb-mongo-python-driver-7269ec4\setup.py", line 118, in build_ext
ension
build_ext.build_extension(self, ext)
File "C:\Python26\lib\distutils\command\build_ext.py", line 536, in build_exte
nsion
depends=ext.depends)
File "C:\Python26\lib\distutils\msvc9compiler.py", line 448, in compile
self.initialize()
File "C:\Python26\lib\distutils\msvc9compiler.py", line 358, in initialize
vc_env = query_vcvarsall(VERSION, plat_spec)
File "C:\Python26\lib\distutils\msvc9compiler.py", line 274, in query_vcvarsal
l
raise ValueError(str(list(result.keys())))
ValueError: [u'path']
Run vcvarsall.bat first, then install pymongo.