Comments (14)
@VladFromRomania Hi you can get latest compiled builds from here. Don't get confused by the date, the builds are automatically updated whenever new commit happens.
If you want to compile yourself for windows what you have to do is:
- install visual studio with c and c++ modules.
- install python 3.7 (if you use anaconda create a conda env with python 3.7)
- install numpy and cython (
conda install numpy cython
) - add python path in environment variables (i think anaconda does that automatically)
- open visual studio's command prompt and change directory to the code path.
- download animation nodes headers and add to the path as mentioned here
- run
python setup.py build --export --noversioncheck
from an_bluefox_extension.
@harisreedhar Hello. Thanks for answering me. Managed to get over a few hurdles, but now when I run the point 7, I get this error:
_fatal error C1083: Cannot open compiler generated file: '': Invalid argument
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\Tools\\MSVC\\14.28.29333\\bin\\HostX86\\x64\\cl.exe' failed with exit status 1_
I have no idea where to look for the problem. I would apreciate your help, if you have the time. Thank you!
I get this warning:
_\anaconda3\envs\py37\lib\site-packages\numpy\core\include\numpy\npy_1_7_deprecated_api.h(14) : Warning Msg: Using deprecated NumPy API, disable it with #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION_
I also get this warning, on a lot of generated nodes?
_warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data_
should I worry about those warnings also?
from an_bluefox_extension.
I'm not quite sure about the error. Can you check Cython Include Paths
is correct inside conf.json file?
You can ignore those warnings.
from an_bluefox_extension.
Tryed again this morning, not shure if I missed it yestarday, but befor the fatal error C1083, the previous line had another error:
_an_bluefox_extension\libs\skimage\_marching_cubes_lewiner_cy.c : fatal error C1083: Cannot open compiler generated file: '': Invalid argument_
I have unzipped the animation_nodes_headers and place it in the an_bluefox_extension-master folder and I have this line for it in the conf.json: "Cython Include Paths" : ["./animation_nodes_headers"]
Just to be clear about the local path: an_bluefox_extension-master\animation_nodes_headers -- so an_bluefox_extension-master
is the root folder for animation_nodes_headers
. The animation_nodes_headers
has the same structure as the original zip file (inside of animation_nodes_headers
folder there is an animation_nodes
folder that contains all the other folders and files.
I have tryed to build again, changing the conf.json like this: "Cython Include Paths" : ["\\animation_nodes_headers"]
I get exactly the same errors, so I guess this is the problem. I runned out of time so I can not do research right now. Hopefully I will have time later, during the evening.
@harisreedhar thank you verry much for taking the time to help me!
update: tryed using full absolute path for the Cython Include Paths
but I am getting the same result
the Copy Target
is pointing to the AppData\\Roaming\\Blender Foundation\\Blender\\2.92\\scripts\\addons
, where I have the Blender data, by default. This is how it should be, judging by theconf.default.json
that you left as a template, right?
from an_bluefox_extension.
Ok, I think there is a problem with the files and here is why: I have downloaded the source code zip from the master-cd-build
, followed the exact same steps (with conf.json
pointing to a copy of animation_nodes_headers
inside of the unziped source code files of the master-cd-build
) and it compiled without errors, gave me a zip file that I installed in Blender 2.92 and that is giving me this options:
Given the fact that I have tryed the an_bluefox_extension_v1_0_windows_py37.zip
, I find it strange that it is only giving me a single node... But maybe the source files are not the same as the compiled version? After all, when I install the plugin, it has a test extension
in the name...
from an_bluefox_extension.
I have tryed again, on a fresh copy of the unziped files. Even changed the name from an_bluefox_extension-master
to an_bluefox_extension-master-cd-build
and I get the same errors:
an_bluefox_extension-master-cd-build\an_bluefox_extension\libs\skimage\_marching_cubes_lewiner_cy.c : fatal error C1083: Cannot open compiler generated file: '': Invalid argument error: command 'F:\\Development\\Microsoft Visual Studio\\2019\\VC\\Tools\\MSVC\\14.28.29333\\bin\\HostX86\\x64\\cl.exe' failed with exit status 1
from an_bluefox_extension.
Ok, I think there is a problem with the files and here is why: I have downloaded the source code zip from the
master-cd-build
, followed the exact same steps (withconf.json
pointing to a copy ofanimation_nodes_headers
inside of the unziped source code files of themaster-cd-build
) and it compiled without errors, gave me a zip file that I installed in Blender 2.92 and that is giving me this options:Given the fact that I have tryed the
an_bluefox_extension_v1_0_windows_py37.zip
, I find it strange that it is only giving me a single node... But maybe the source files are not the same as the compiled version? After all, when I install the plugin, it has atest extension
in the name...
The source code is not updated, it is old...try installing this
from an_bluefox_extension.
I have tryed again, on a fresh copy of the unziped files. Even changed the name from
an_bluefox_extension-master
toan_bluefox_extension-master-cd-build
and I get the same errors:
an_bluefox_extension-master-cd-build\an_bluefox_extension\libs\skimage\_marching_cubes_lewiner_cy.c : fatal error C1083: Cannot open compiler generated file: '': Invalid argument error: command 'F:\\Development\\Microsoft Visual Studio\\2019\\VC\\Tools\\MSVC\\14.28.29333\\bin\\HostX86\\x64\\cl.exe' failed with exit status 1
Are you sure all necessary packages are installed? This error occurs probably due to absence of numpy. can u run this command pip freeze
which will list all installed modules.
Can u try try compile after deleting libs/skimage folder and nodes>mesh>marching_cubes.py file
from an_bluefox_extension.
Are you sure all necessary packages are installed? This error occurs probably due to absence of numpy. can u run this command pip freeze which will list all installed modules.
This is the numpy version: numpy==1.17.0
The reason that I have for using anaconda is that I got errors regarding numpy and that was the easiest way I found to get around that ( 2 days ago, when I started this whole thing)
The source code is not updated, it is old...try installing this
I used the 1.0 builded version, knowing that that one worked for sure, I just wanted to isolate the problem. I understand now: code is older than the builded version.
Can u try try compile after deleting libs/skimage folder and nodes>mesh>marching_cubes.py file
I will try this now...
A.
Ok, so Ive tryed. I get this error:
an_bluefox_extension-master-cd-build\an_bluefox_extension\nodes\color\c_utils.c : fatal error C1083: Cannot open compiler generated file: '': Invalid argument
error: command 'F:\Development\Microsoft Visual Studio\2019\VC\Tools\MSVC\14.28.29333\bin\HostX86\x64\cl.exe' failed with exit status 1`
Maybe I do something wrong here?
- I open
Microsoft Visual Studio Community 2019
at the location of the unzipped files - I open Tools/Command Line/Developer Command Prompt (from inside VS 2019, obiously)
- I copy/paste
%windir%\System32\cmd.exe "/K" C:\Users\my_name\anaconda3\Scripts\activate.bat C:\Users\my_name\anaconda3\envs\py37
to start anaconda with the python 3.7 enviroment - I run
python setup.py build --export --noversioncheck
@harisreedhar Thank you for this:
The source code is not updated, it is old...try installing this
If I remember corectly, this is not the same thing as this builded version:https://github.com/harisreedhar/an_bluefox_extension/releases/tag/master-cd-build
It is the updated version, that I am trying to build...
Still, I will try to solve the puzzle and learn how to build my own versions.
B.
Ok... So the fun continues. Looking at the error from A. I deleted the node c_utils.pyx
and the file c_utils.c
and now I get this error:
an_bluefox_extension-master-cd-build\an_bluefox_extension\nodes\falloff\mandelbulb_falloff.c : fatal error C1083: Cannot open compiler generated file: '': Invalid argument error: command 'F:\\Development\\Microsoft Visual Studio\\2019\\VC\\Tools\\MSVC\\14.28.29333\\bin\\HostX86\\x64\\cl.exe' failed with exit status 1
....and now it gets stuck in shape_falloff.c
clearly I am missing something... I will try tommorow.
from an_bluefox_extension.
Are you sure all necessary packages are installed? This error occurs probably due to absence of numpy. can u run this command pip freeze which will list all installed modules.
This is the numpy version: numpy==1.17.0
The reason that I have for using anaconda is that I got errors regarding numpy and that was the easiest way I found to get around that ( 2 days ago, when I started this whole thing)The source code is not updated, it is old...try installing this
I used the 1.0 builded version, knowing that that one worked for sure, I just wanted to isolate the problem. I understand now: code is older than the builded version.
Can u try try compile after deleting libs/skimage folder and nodes>mesh>marching_cubes.py file
I will try this now...A.
Ok, so Ive tryed. I get this error:
an_bluefox_extension-master-cd-build\an_bluefox_extension\nodes\color\c_utils.c : fatal error C1083: Cannot open compiler generated file: '': Invalid argument
error: command 'F:\Development\Microsoft Visual Studio\2019\VC\Tools\MSVC\14.28.29333\bin\HostX86\x64\cl.exe' failed with exit status 1`Maybe I do something wrong here?
1. I open `Microsoft Visual Studio Community 2019` at the location of the unzipped files 2. I open Tools/Command Line/Developer Command Prompt (from inside VS 2019, obiously) 3. I copy/paste `%windir%\System32\cmd.exe "/K" C:\Users\my_name\anaconda3\Scripts\activate.bat C:\Users\my_name\anaconda3\envs\py37` to start anaconda with the python 3.7 enviroment 4. I run `python setup.py build --export --noversioncheck`
@harisreedhar Thank you for this:
The source code is not updated, it is old...try installing this
If I remember corectly, this is not the same thing as this builded version:https://github.com/harisreedhar/an_bluefox_extension/releases/tag/master-cd-build
It is the updated version, that I am trying to build...
Still, I will try to solve the puzzle and learn how to build my own versions.B.
Ok... So the fun continues. Looking at the error from A. I deleted the nodec_utils.pyx
and the filec_utils.c
and now I get this error:
an_bluefox_extension-master-cd-build\an_bluefox_extension\nodes\falloff\mandelbulb_falloff.c : fatal error C1083: Cannot open compiler generated file: '': Invalid argument error: command 'F:\\Development\\Microsoft Visual Studio\\2019\\VC\\Tools\\MSVC\\14.28.29333\\bin\\HostX86\\x64\\cl.exe' failed with exit status 1
....and now it gets stuck inshape_falloff.c
clearly I am missing something... I will try tommorow.
I'm currently using linux. I'll try myself on a windows machine in few days and let you know.
from an_bluefox_extension.
I'm currently using linux. I'll try myself on a windows machine in few days and let you know
I will try again. I removed Python and Anaconda, that I had installed. I will try to do a clean install, most likely I messed something up, when I did the first setup. If you have any sugestions on best practices for configuring the right enviroment, it would be most appreciated.
from an_bluefox_extension.
Ok. So I have reinstalled only Anaconda and python 3.7 enviroment for it (I did not installed the Python 3.8 enviroment from the python.org, like I had before), run it from inside of Visual Studio. And now I get this type of errors, that I have in this file (I saved the entire verbose, maybe it will help). It now points to some problems in nodes using Cyton?
I also did another pip freeze from inside of anaconda py37 env, in case it would help.
@harisreedhar If you test a windows build and you have no problems, just let me know and I will dig deeper in my sistem. Don`t want to waste your time. But if you also have problems, maybe my log files would help you.
pip_freeze_output.txt
errors.txt
from an_bluefox_extension.
@VladFromRomania
Sorry for the delay. I didn't got time to compile myself in a windows environment.
From the errors.txt it seems the path of animation nodes headers are wrong.
I'll try myself soon and let you know. thanks for your patience.
from an_bluefox_extension.
From the errors.txt it seems the path of animation nodes headers are wrong.
Ok, so Ive turned the
conf.json line from an absolute path into
"Cython Include Paths" : [".\animation_nodes_headers"]
`
Now I get the errors that I used to get (error file attached)
And when I run the version that you uploaded 4 hours ago, I get this errors:
I'll try myself soon and let you know. thanks for your patience.
@harisreedhar I am the one that has to thank you for your patience :)
from an_bluefox_extension.
Related Issues (14)
- how do you install addons ? HOT 1
- Blender 3.1 and Animation Node new version compatibility ssue maybe? HOT 2
- Bug report: Spline Tracer does not work well HOT 1
- Bug report:messy polylines HOT 1
- Bug report : install error HOT 1
- install error HOT 6
- Cannot to run .pyx files. HOT 5
- Installation failed on Ubuntu 20.04.1 LTS and Blender 2.91.0 HOT 3
- Python 3.9 compiled version for Linux? HOT 1
- Proposal: Marching Cubes option to operate on 2d grid HOT 2
- Error upon activation with the most recent Animation Nodes commit HOT 4
- Spline tracing - Rendering on Renderfarm HOT 6
- Problems installing your extension HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from an_bluefox_extension.