-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error during the installation #12
Comments
Looks like need to install the python development headers for python 2.7.
|
Yeah, it's annoying sometimes that Linux distros leave those out. Who do Glad you figured it out. Let me know if anything else bites you. -Casey On Sat, Feb 27, 2016 at 3:24 PM Bryce Guinta notifications@github.com
|
Wow that was an amazingly fast answer ! |
Hey! Hope you're still reading comments. I have my own script for noise, but since it's a .py script, it's not as fast. I've tried converting my .py to .pyd, and i succeeded. But even after converting it to pyd, it didn't seem to speed up. How do you convert .c to .pyd? And/or as an alternative, how do i seed your noise module? |
I'd recommend using 3d noise(if you are doing something 2d), and then using the z-axis as your seed. If you are doing something 3d, consider using 4d simplex noise and using the w axis as your seed. (that is only change that axis value when you want a different seed). This thread is maybe not the best place to ask though Cheers |
thanks! to be honest, i didn't even think of that. is a bit of a let down that he didn't include an argument in the noise classes to input your own perm... overall, i just wish i knew how he generated his own .pyd file. if it's compiled right from pure c... i tried with his .c though, cause if it worked, i would have modded the module myself. might just have to do some more googling on it. anyway... thanks for replying so quickly! |
When using pip to install noise : sudo pip install noise , an error occured :
......
blablabla
......
running build_ext
building 'noise._simplex' extension
creating build/temp.linux-x86_64-2.7
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/python2.7 -c _simplex.c -o build/temp.linux-x86_64-2.7/_simplex.o -funroll-loops
_simplex.c:5:20: fatal error: Python.h: Aucun fichier ou dossier de ce type
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
When trying the installation via the github repository, the folder Python.h is also missing:
sudo python setup.py install
......
.....
building 'noise._simplex' extension
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/python2.7 -c _simplex.c -o build/temp.linux-x86_64-2.7/_simplex.o -funroll-loops
_simplex.c:5:20: fatal error: Python.h: Aucun fichier ou dossier de ce type
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
Anyway, thank for your helpfull librairy.
Gnu-Bricoleur
EDIT : It work with pip3 install but not with pip for the default version of python wich is 2.7 on my distrib, i suppose it work with sudo python3 setup.py install although i didn't try
The text was updated successfully, but these errors were encountered: