To build a project managed with poetry I need to build an f2py extension first. I am trying to achieve it with a separate build.py file inspired by this answer. For now my setup.py is:
# In case of numpy, build_ext is a module containing class build_ext
from numpy.distutils.core import Extension, build_ext
ext = Extension(
'ext_name',
sources=[<list_of_fortran_sources>],
)
def build(setup_kwargs):
setup_kwargs.update(
{"ext_modules": [ext], "cmdclass": {"build_ext": build_ext.build_ext}}
)
But trying to build it I am getting an error:
>>> poetry build
A setup.py file already exists. Using it.
running build
running build_py
running build_ext
Traceback (most recent call last):
File "/home/lap1dem/dev-python/iricore/setup.py", line 37, in <module>
setup(**setup_kwargs)
File "/home/lap1dem/.cache/pypoetry/virtualenvs/iricore-iDxR-q1V-py3.8/lib/python3.8/site-packages/setuptools/__init__.py", line 87, in setup
return distutils.core.setup(**attrs)
File "/home/lap1dem/.cache/pypoetry/virtualenvs/iricore-iDxR-q1V-py3.8/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 148, in setup
return run_commands(dist)
File "/home/lap1dem/.cache/pypoetry/virtualenvs/iricore-iDxR-q1V-py3.8/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 163, in run_commands
dist.run_commands()
File "/home/lap1dem/.cache/pypoetry/virtualenvs/iricore-iDxR-q1V-py3.8/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 967, in run_commands
self.run_command(cmd)
File "/home/lap1dem/.cache/pypoetry/virtualenvs/iricore-iDxR-q1V-py3.8/lib/python3.8/site-packages/setuptools/dist.py", line 1214, in run_command
super().run_command(command)
File "/home/lap1dem/.cache/pypoetry/virtualenvs/iricore-iDxR-q1V-py3.8/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 986, in run_command
cmd_obj.run()
File "/home/lap1dem/.cache/pypoetry/virtualenvs/iricore-iDxR-q1V-py3.8/lib/python3.8/site-packages/setuptools/_distutils/command/build.py", line 136, in run
self.run_command(cmd_name)
File "/home/lap1dem/.cache/pypoetry/virtualenvs/iricore-iDxR-q1V-py3.8/lib/python3.8/site-packages/setuptools/_distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/home/lap1dem/.cache/pypoetry/virtualenvs/iricore-iDxR-q1V-py3.8/lib/python3.8/site-packages/setuptools/dist.py", line 1214, in run_command
super().run_command(command)
File "/home/lap1dem/.cache/pypoetry/virtualenvs/iricore-iDxR-q1V-py3.8/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 985, in run_command
cmd_obj.ensure_finalized()
File "/home/lap1dem/.cache/pypoetry/virtualenvs/iricore-iDxR-q1V-py3.8/lib/python3.8/site-packages/setuptools/_distutils/cmd.py", line 107, in ensure_finalized
self.finalize_options()
File "/home/lap1dem/.cache/pypoetry/virtualenvs/iricore-iDxR-q1V-py3.8/lib/python3.8/site-packages/numpy/distutils/command/build_ext.py", line 86, in finalize_options
self.set_undefined_options('build',
File "/home/lap1dem/.cache/pypoetry/virtualenvs/iricore-iDxR-q1V-py3.8/lib/python3.8/site-packages/setuptools/_distutils/cmd.py", line 290, in set_undefined_options
setattr(self, dst_option, getattr(src_cmd_obj, src_option))
File "/home/lap1dem/.cache/pypoetry/virtualenvs/iricore-iDxR-q1V-py3.8/lib/python3.8/site-packages/setuptools/_distutils/cmd.py", line 103, in __getattr__
raise AttributeError(attr)
AttributeError: warn_error
I have looked into build_ext.py source file, seems like this class is trying to set undefined options, like warn_error, cpu_baseline, cpu_dispatch, etc. in addition to built-in ditutils.command.build_ext. Those additional options should be initialized with the build_ext.initialize_options(), but build_ext.set_undefined_options() fails to find them. It is not clear to me how I can fix it. Am I even on the right track to build the f2py extension?
Related
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
I am trying to make a script executable with py2exe.
Here is my setup.py code:
import cx_Freeze
executables = [cx_Freeze.Executable("Email.py")]
cx_Freeze.setup(
name="Email",
options={"build_exe": {"packages":["pygame"],
"include_files":["aura.png"]}},
executables = executables
)
And I run this from my cmd and here is the execution:
G:\Grade 12 Project>python setup.py build running build running build_exe creating directory build\exe.win32-2.7 copying C:\Python27\lib\site-packages\cx_Freeze\bases\Console.exe -> build\exe.win32-2.7\Email.exe copying C:\WINDOWS\SYSTEM32\python27.dll
-> build\exe.win32-2.7\python27.dll Traceback (most recent call last): File "setup.py", line 9, in <module>
executables = executables File "C:\Python27\lib\site-packages\cx_Freeze\dist.py", line 349, in setup
distutils.core.setup(**attrs) 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\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\cx_Freeze\dist.py", line 219, in run
freezer.Freeze() File "C:\Python27\lib\site-packages\cx_Freeze\freezer.py", line 623, in Freeze
self._FreezeExecutable(executable) File "C:\Python27\lib\site-packages\cx_Freeze\freezer.py", line 225, in
_FreezeExecutable
self._AddVersionResource(exe) File "C:\Python27\lib\site-packages\cx_Freeze\freezer.py", line 165, in
_AddVersionResource
trademarks = exe.trademarks) File "C:\Python27\lib\site-packages\cx_Freeze\freezer.py", line 759, in
__init__
parts = version.split(".") AttributeError: 'NoneType' object has no attribute 'split'
Also in my build folder , when I run Email.exe, I get this error:
ImportError: No module named __startup__
As #Mohammad Yusuf Ghazi said, you need to pass a version='x.y.z' parameter into the setup call, e.g:
cx_Freeze.setup(
name="Email",
options={
"build_exe": {"packages":["pygame"],
"include_files":["aura.png"]}},
executables = executables,
version='1.0.0'
)
It's not valid to call setup without a version number.
Are you trying to run this from the command line or from the GUI? If from the GUI you may need to call Executable("Email.py", base="Win32GUI") as per the docs in order for it to work, so that might be the problem. But it would help to see the full traceback.
I have a requirements.txt file that consists of the following modules:
Flask==0.10.1
Flask-Login==0.3.1
Flask-SQLAlchemy==2.0
Jinja2==2.7.3
MarkupSafe==0.23
SQLAlchemy==0.9.8
Werkzeug==0.9.6
argparse==1.2.1
itsdangerous==0.24
rauth==0.7.0
requests==2.4.3
When I activate my virtualenv to install these modules .\venv\Scripts\activate SQLAlchemy fails and MarkupSafe fails. If I deactivate my virtualenv, and simply pip install MarkupSafe or pip install SQLAlchemy - they successfully install.
I am at a loss as to why this is. I have tried uninstalling/reinstalling virtualenv & python - and have spoken with a friend who is quite knowledgable about Python (he thought it was something specific to the Windows environment) and unfortunately am at a loss as to what to try next.
I suspect that it may have something to do with the fact that I deleted a folder named 'Python' underneath user\AppData.. in my attempts to uninstall Python and start from a clean slate...
Here is the relevant output (or at least, what I think is the relevant part of the output) associated with MarkupSafe:
Running setup.py clean for SQLAlchemy
Running setup.py bdist_wheel for markupsafe ... error
Complete output from command c:\test_oauth\venv\scripts\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\SEANBA~1\\AppData\\Local\\Temp\\pip-build-pvc5zlcc\\markupsafe\\setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\
r\n', '\n'), __file__, 'exec'))" bdist_wheel -d C:\Users\SEANBA~1\AppData\Local\Temp\tmpkf78v48_pip-wheel- --python-tag cp35:
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win32-3.5
creating build\lib.win32-3.5\markupsafe
copying markupsafe\tests.py -> build\lib.win32-3.5\markupsafe
copying markupsafe\_compat.py -> build\lib.win32-3.5\markupsafe
copying markupsafe\_constants.py -> build\lib.win32-3.5\markupsafe
copying markupsafe\_native.py -> build\lib.win32-3.5\markupsafe
copying markupsafe\__init__.py -> build\lib.win32-3.5\markupsafe
running egg_info
writing dependency_links to MarkupSafe.egg-info\dependency_links.txt
writing MarkupSafe.egg-info\PKG-INFO
writing top-level names to MarkupSafe.egg-info\top_level.txt
warning: manifest_maker: standard file '-c' not found
reading manifest file 'MarkupSafe.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'MarkupSafe.egg-info\SOURCES.txt'
copying markupsafe\_speedups.c -> build\lib.win32-3.5\markupsafe
running build_ext
building 'markupsafe._speedups' extension
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\SEANBA~1\AppData\Local\Temp\pip-build-pvc5zlcc\markupsafe\setup.py", line 120, in <module>
try_building_extension()
File "C:\Users\SEANBA~1\AppData\Local\Temp\pip-build-pvc5zlcc\markupsafe\setup.py", line 99, in try_building_extension
run_setup(True)
File "C:\Users\SEANBA~1\AppData\Local\Temp\pip-build-pvc5zlcc\markupsafe\setup.py", line 93, in run_setup
ext_modules=ext_modules,
File "C:\Python35-32\Lib\distutils\core.py", line 148, in setup
dist.run_commands()
File "C:\Python35-32\Lib\distutils\dist.py", line 955, in run_commands
self.run_command(cmd)
File "C:\Python35-32\Lib\distutils\dist.py", line 974, in run_command
cmd_obj.run()
File "c:\test_oauth\venv\lib\site-packages\wheel\bdist_wheel.py", line 179, in run
self.run_command('build')
File "C:\Python35-32\Lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "C:\Python35-32\Lib\distutils\dist.py", line 974, in run_command
cmd_obj.run()
File "C:\Python35-32\Lib\distutils\command\build.py", line 135, in run
self.run_command(cmd_name)
File "C:\Python35-32\Lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "C:\Python35-32\Lib\distutils\dist.py", line 974, in run_command
cmd_obj.run()
File "C:\Users\SEANBA~1\AppData\Local\Temp\pip-build-pvc5zlcc\markupsafe\setup.py", line 41, in run
build_ext.run(self)
File "C:\Python35-32\Lib\distutils\command\build_ext.py", line 338, in run
self.build_extensions()
File "C:\Python35-32\Lib\distutils\command\build_ext.py", line 447, in build_extensions
self._build_extensions_serial()
File "C:\Python35-32\Lib\distutils\command\build_ext.py", line 472, in _build_extensions_serial
self.build_extension(ext)
File "C:\Users\SEANBA~1\AppData\Local\Temp\pip-build-pvc5zlcc\markupsafe\setup.py", line 47, in build_extension
build_ext.build_extension(self, ext)
File "C:\Python35-32\Lib\distutils\command\build_ext.py", line 532, in build_extension
depends=ext.depends)
File "C:\Python35-32\Lib\distutils\_msvccompiler.py", line 306, in compile
self.initialize()
File "C:\Python35-32\Lib\distutils\_msvccompiler.py", line 199, in initialize
vc_env = _get_vc_env(plat_spec)
File "c:\test_oauth\venv\lib\site-packages\setuptools\msvc.py", line 206, in msvc14_get_vc_env
return EnvironmentInfo(plat_spec, vc_ver_min=14.0).return_env()
TypeError: __init__() got an unexpected keyword argument 'vc_ver_min'
----------------------------------------
Failed building wheel for markupsafe
Here is the relevant output (or at least, what I think is the relevant part of the output) associated with the SQLAlchemy failure:
running build_ext
building 'sqlalchemy.cprocessors' extension
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\SEANBA~1\AppData\Local\Temp\pip-build-pvc5zlcc\SQLAlchemy\setup.py", line 170, in <module>
run_setup(True)
File "C:\Users\SEANBA~1\AppData\Local\Temp\pip-build-pvc5zlcc\SQLAlchemy\setup.py", line 150, in run_setup
**kwargs
File "C:\Python35-32\Lib\distutils\core.py", line 148, in setup
dist.run_commands()
File "C:\Python35-32\Lib\distutils\dist.py", line 955, in run_commands
self.run_command(cmd)
File "C:\Python35-32\Lib\distutils\dist.py", line 974, in run_command
cmd_obj.run()
File "c:\test_oauth\venv\lib\site-packages\wheel\bdist_wheel.py", line 179, in run
self.run_command('build')
File "C:\Python35-32\Lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "C:\Python35-32\Lib\distutils\dist.py", line 974, in run_command
cmd_obj.run()
File "C:\Python35-32\Lib\distutils\command\build.py", line 135, in run
self.run_command(cmd_name)
File "C:\Python35-32\Lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "C:\Python35-32\Lib\distutils\dist.py", line 974, in run_command
cmd_obj.run()
File "C:\Users\SEANBA~1\AppData\Local\Temp\pip-build-pvc5zlcc\SQLAlchemy\setup.py", line 67, in run
build_ext.run(self)
File "C:\Python35-32\Lib\distutils\command\build_ext.py", line 338, in run
self.build_extensions()
File "C:\Python35-32\Lib\distutils\command\build_ext.py", line 447, in build_extensions
self._build_extensions_serial()
File "C:\Python35-32\Lib\distutils\command\build_ext.py", line 472, in _build_extensions_serial
self.build_extension(ext)
File "C:\Users\SEANBA~1\AppData\Local\Temp\pip-build-pvc5zlcc\SQLAlchemy\setup.py", line 73, in build_extension
build_ext.build_extension(self, ext)
File "C:\Python35-32\Lib\distutils\command\build_ext.py", line 532, in build_extension
depends=ext.depends)
File "C:\Python35-32\Lib\distutils\_msvccompiler.py", line 306, in compile
self.initialize()
File "C:\Python35-32\Lib\distutils\_msvccompiler.py", line 199, in initialize
vc_env = _get_vc_env(plat_spec)
File "c:\test_oauth\venv\lib\site-packages\setuptools\msvc.py", line 206, in msvc14_get_vc_env
return EnvironmentInfo(plat_spec, vc_ver_min=14.0).return_env()
TypeError: __init__() got an unexpected keyword argument 'vc_ver_min'
----------------------------------------
Failed building wheel for SQLAlchemy
I found the answer to my issue.
The environment variable for python had been incorrectly configured (it had been made it's own system variable, rather than simply being added to the 'path' system variable).
Once this was changed, the issues disappeared.
How can I setup FLANN on Python (pyflann) on Windows? I know FLANN is now in openCV but I need the standalone version. The instructions here suggest compiling the FLANN binary or downloading a version from PointClouds but I can't use any of these.
I compiled from source but after I tried to run setup.py I got this error:
>
C:\Python27\flann-1.8.4-src\src\python>python setup.py install
running install
running build
running build_py
Traceback (most recent call last):
File "setup.py", line 27, in <module>
package_data={'pyflann.lib': ['libflann.so', 'flann.dll', 'libflann.dll', 'libflann.dylib']},
File "C:\Python27\lib\distutils\core.py", line 152, 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\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 971, in run_command cmd_obj.ensure_finalized()
File "C:\Python27\lib\distutils\cmd.py", line 109, in ensure_finalized self.finalize_options()
File "C:\Python27\lib\distutils\command\build_py.py", line 57, in finalize_options self.data_files = self.get_data_files()
File "C:\Python27\lib\distutils\command\build_py.py", line 117, in get_data_files file[plen:] for file in self.find_data_files(package, src_dir)
File "C:\Python27\lib\distutils\command\build_py.py", line 129, in find_data_files filelist = glob(os.path.join(src_dir, convert_path(pattern)))
File "C:\Python27\lib\ntpath.py", line 96, in join assert len(path) > 0
TypeError: object of type 'NoneType' has no len()
Could anyone help me to solve this or direct me to another version of flann which can I simply install?
Extract the zipped archive to C:\flann-1.8.4-src\.
Open a cmd window as Administrator (right click > Run as Administrator)
Then do the following:
cd C:\flann-1.8.4-src\
mkdir build
cd build
cmake .. -G "NMake Makefiles"
nmake install
The nmake install line should get pyflann installed without needing to call setup.py separately.
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.