BassMunkee / awd

Automatically exported from code.google.com/p/awd
Apache License 2.0
0 stars 0 forks source link

Windows: setup.py install fails #29

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Build Python
2. Build the SDK with VC++ 2010
3. execute 'setup.py install'

What is the expected output? What do you see instead?
It should install.

What version of the product are you using? On what operating system?
PyAWD version: trunk
OS: Win7
Python: 2.6

Please provide any additional information below.

Fails with the following error log:

D:\dev\awd\sdks\python-pyawd>setup.py install
running install
running build
running build_py
running build_ext
building 'pyawd.cpyawd' extension
Traceback (most recent call last):
  File "D:\dev\awd\sdks\python-pyawd\setup.py", line 48, in <module>
    packages = [ 'pyawd', 'pyawd.utils' ]
  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 "C:\Python26\lib\distutils\command\install.py", line 577, in run
    self.run_command('build')
  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 "C:\Python26\lib\distutils\command\build.py", line 134, in run
    self.run_command(cmd_name)
  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 "C:\Python26\lib\distutils\command\build_ext.py", line 343, in run
    self.build_extensions()
  File "C:\Python26\lib\distutils\command\build_ext.py", line 469, in build_exte
nsions
    self.build_extension(ext)
  File "C:\Python26\lib\distutils\command\build_ext.py", line 534, 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']

D:\dev\awd\sdks\python-pyawd>

Original issue reported on code.google.com by pr...@ibbgdv.de on 12 Jul 2012 at 4:42

GoogleCodeExporter commented 8 years ago
Those seem to be errors caused by a missing (VC9, i.e. Visual studio 2008) 
compiler. Do you have that installed, and is python configured to know where it 
is?

Building and installing using setup.py on Windows is not something that will be 
supported very tightly. Windows binaries will be distributed via this site, and 
I personally build them entirely using VC++ (except for the pure python scripts 
of course, which are just copied across as part of the build process.) 

If you really want to build from source, e.g. because you need it right now (no 
official release out until sometime next week) all you need should be in the 
SDK Visual Studio solution file (/sdks/sdk.sln.)

Original comment by bengtric...@gmail.com on 12 Jul 2012 at 4:50

GoogleCodeExporter commented 8 years ago
Thanks for the quick reply. Yes, I had success building it with the "sdk.sln" 
file in VC, worked without any errors. But I'm unsure about the "cpyawd" 
module. Seems to be missing which is called from "utils/geom.py"

Original comment by pr...@ibbgdv.de on 12 Jul 2012 at 5:03

GoogleCodeExporter commented 8 years ago
I run into the same problem. cpyawd is missing. Anyone has a solution for this 
problem?

Original comment by cheratam...@gmail.com on 19 Sep 2012 at 10:04

GoogleCodeExporter commented 8 years ago
The solution is to compile libawd on your machine before compiling PyAWD. There 
are no working binary releases available at this point. I'm intending to 
release one as soon as possible, but it's a lot of work, so I probably won't 
make it before the end of the month.

Original comment by bengtric...@gmail.com on 19 Sep 2012 at 10:11

GoogleCodeExporter commented 8 years ago
I am actually compiling both libawd and pyawd. There is no output cpyawd. 

I found a comment on some link that "cio has been renamed to cpyawd" ??? 

Original comment by cheratam...@gmail.com on 19 Sep 2012 at 10:48

GoogleCodeExporter commented 8 years ago
So to recap the problem.
I need the awd Blender exporter. For that I am:

Using python 3.2.
Compiling sdk.sln from VC++.
The output in \awd\sdks\python-pyawd\build\pyawd\ is:
__init__, anim,cyo,core,geom,material,pyio and scene. All py scripts.

I am copying the pyawd folder into Blender lib folder.
I am copying io_awd folder into Blender scripts/addons.
In Blender I am installing the addon.
In Blender I go File->Export->Away3d

The error is: line17 in build_geom from pyawd.cpyawd import util_build_geom No 
module named cpyawd.

Can anyone just give me that cpyawd.py that I am missing? I have spent 2 days 
already trying to figure out where to get it/how to generate it. This is a dead 
end for me.

Thanks in advance.

Original comment by cheratam...@gmail.com on 19 Sep 2012 at 12:10

GoogleCodeExporter commented 8 years ago
There is no working blender exporter, so you can give up straight away unless 
you feel like patching the exporter until it is up to date with the most recent 
changes in the specification (and hence the Away3D parsers.)

Original comment by bengtric...@gmail.com on 19 Sep 2012 at 12:16