Letractively / rdflib

Automatically exported from code.google.com/p/rdflib
Other
0 stars 0 forks source link

"Unable to find vcvarsall.bat" error when trying to install rdflib-2.4.2 with Python 2.6.4 and Windows 7 x64 #104

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Try and install rdflib 2.4.2 using easy_install from the command prompt 
by issuing the command "easy_install -U "rdflib==2.4.2""

What is the expected output? What do you see instead?
- I expect that it will install smoothly.

- What I actually see is:

Searching for rdflib==2.4.2
Reading http://pypi.python.org/simple/rdflib/
Reading http://rdflib.net/
Best match: rdflib 2.4.2
Downloading http://rdflib.net/rdflib-2.4.2.tar.gz
Processing rdflib-2.4.2.tar.gz
Running rdflib-2.4.2\setup.py -q bdist_egg --dist-dir 
c:\users\brycet~1\appdata\
local\temp\easy_install-st4_nc\rdflib-2.4.2\egg-dist-tmp-qjaet5
warning: no files found matching 'example.py'
error: Setup script exited with error: Unable to find vcvarsall.bat

What version of the product are you using? On what operating system?
rdflib 2.4.2
Python 2.6.4
Windows 7 x64

Please provide any additional information below.
- I did some reading and found a suggestion to try installing the Visual 
C++ redistributable.  I found and installed both x86 and x64 versions of 
the redistributable but this did not change anything.  
- I read somewhere that an error somewhat similar to this existed in Python 
version 2.6.3 due to a regression but was fixed in Python 2.6.4.  Given 
that I'm running Python 2.6.4, this should not have affected me.

Original issue reported on code.google.com by mongrelu...@gmail.com on 28 Jan 2010 at 2:02

GoogleCodeExporter commented 9 years ago
This will not be an issue in rdflib 2.5.x as we have switched to using pure 
python for the sparql parser 
implementation.

Original comment by eik...@gmail.com on 1 Feb 2010 at 7:12

GoogleCodeExporter commented 9 years ago

Original comment by eik...@gmail.com on 1 Feb 2010 at 7:20

GoogleCodeExporter commented 9 years ago

Original comment by eik...@gmail.com on 1 Feb 2010 at 7:49

GoogleCodeExporter commented 9 years ago
Good to hear that it won't be a problem in 2.5.x.

In the meantime I found a workaround which is to install minGW32 and compile it 
with 
that.  So for anyone with a similar problem:

1. Download minGW32 installer from sourceforge
2. When you install the tool and get the screen asking what components to 
install, 
select "MinGW base tools", "g++ compiler" and "MingW make".
3. After MinGW is installed, add C:\MinGW\bin to your Path environment variable
4. Create a file in C:\Python26\Lib\distutils and call it distutils.cfg
5. In this file, put the following:

[build]
compiler=mingw32

This way easy_install will try and use mingw32 as the compiler when you install 
rdflib.  

6. Run the easy_install command again:  easy_install -U "rdflib==2.4.2"

And hopefully you're all good.

Original comment by mongrelu...@gmail.com on 2 Feb 2010 at 8:14

GoogleCodeExporter commented 9 years ago
This will no longer be an issue starting with rdflib 2.5.0. At this time, we 
are not planning on fixing this for 
2.4.x.

Original comment by eik...@gmail.com on 5 Feb 2010 at 3:38

GoogleCodeExporter commented 9 years ago
why am i getting runtime error: can't find a version in Winodows.h when i try 
this workaround?

Original comment by a.celeje...@gmail.com on 26 Sep 2010 at 2:19

GoogleCodeExporter commented 9 years ago
why am i getting runtime error: can't find a version in Winodows.h when i try 
this workaround?

Original comment by a.celeje...@gmail.com on 26 Sep 2010 at 2:20

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
#>easy_install mercurial
Searching for mercurial
Reading http://pypi.python.org/simple/mercurial/
Reading http://mercurial.selenic.com/
Reading http://www.selenic.com/mercurial
Best match: mercurial 1.9.1
Downloading http://mercurial.selenic.com/release/mercurial-1.9.1.tar.gz
Processing mercurial-1.9.1.tar.gz
Running mercurial-1.9.1\setup.py -q bdist_egg --dist-dir c:\users\alec~1\appda
ta\local\temp\easy_install-ohxbqg\mercurial-1.9.1\egg-dist-tmp-sd92rn
cc1.exe: error: unrecognized command line option '-mno-cygwin'
error: Setup script exited with error: command 'gcc' failed with exit status 1

Original comment by Alec.Tay...@gmail.com on 25 Sep 2011 at 2:48

GoogleCodeExporter commented 9 years ago
Alec - your bug has nothing to do with rdflib - you are in the wrong place :) 

Your solution is to install cygwin, and otherwise look at the mercurial 
homepage for mercurial support. 

Cheers, 

- Gunnar

Original comment by gromgull on 26 Sep 2011 at 8:26

GoogleCodeExporter commented 9 years ago
可以看看http://www.ibaiyang.org/2012/07/15/python-trouble/

这个问题一般是因为我们的python2.7找的环境变量和我们安装��
�VS2010版本不一致导致的。。。

Original comment by ubaiy...@gmail.com on 16 Nov 2012 at 3:26