Comments (6)
Looks like need to install the python development headers for python 2.7.
sudo apt-get install python-dev
for ubuntu
sudo yum install python-devel
for fedora
from noise.
Yeah, it's annoying sometimes that Linux distros leave those out. Who do
they think we are, mere end users? :^)
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 [email protected]
wrote:
Looks like need to install the python development headers for python 2.7.
sudo apt-get install python-dev for ubuntu
sudo yum install python-devel for fedora—
Reply to this email directly or view it on GitHub
#12 (comment).
from noise.
Wow that was an amazingly fast answer !
You were right about the python-dev package and it explain why it worked on my PC and not on two fresh install of ubuntu.
I didn't imagine that the Python.h folder was provided by the python development header and not by the library.
However, it is strange that the header for python3 are installed (by default or as depency with pip3) on ubuntu and not the header for python2 whereas python2 is the default python compiler.
Also, i have done few tests and it seems (i haven't test everything) that no librairy can be install using pip without the header so maybe i will signal this to the pip team.
Thank again, brycepg for your help and caseman for your librairy.
(I am not sure it is my job to close the issue but i'll did that and you'll correct me if i'am wrong :-) )
from noise.
Hey! Hope you're still reading comments.
I really like this noise module for being really fast.
I have my own script for noise, but since it's a .py script, it's not as fast.
I have no choice really to use my own. Cause this noise library doesn't allow you to change the perm. (seed)
I've tried converting my .py to .pyd, and i succeeded.
I made this tutorial immediately. https://www.youtube.com/watch?v=7UR8JXzfRR4
(It goes from .py to .c to .pyd)
But even after converting it to pyd, it didn't seem to speed up.
You have a nice perlin noise script in c, but for some reason, my method of converting the code to .pyd didn't work with your .c script.
How do you convert .c to .pyd?
It would really help me out.
And/or as an alternative, how do i seed your noise module?
Thanks.
-Aiden
from noise.
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
from noise.
thanks! to be honest, i didn't even think of that.
as long as making it generate faster means using this module, and using 3d noise as 2d so i can seed it, then i guess that's what i'll do.
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.
it's just so fast compared to .py
if it's compiled right from pure c...
not .py to .c to .pyd like i attempted...
i tried with his .c though, cause if it worked, i would have modded the module myself.
but sadly i got a weird error saying:
include/math.h:217: error: unknown constraint 't'
might just have to do some more googling on it.
then if i figure that out, i can make another video.
and update this 3 year old noise module...
anyway... thanks for replying so quickly!
from noise.
Related Issues (20)
- Can't import noise from other directories HOT 3
- noise fails to install with pip HOT 4
- noisemachine.com is offline ? HOT 1
- Where should the grad2 symbol in _perlin.so come from? HOT 13
- How to randomize the noise?
- cannot import name _perlin after running install.py successfully from master HOT 2
- README link to information on simplex noise is broken HOT 2
- [Discussion] Adding type hints?
- Segfault on snoise4 with lacunarity argument
- ImportError: Error relocating .../_perlin.cpython-37m-x86_64-linux-gnu.so: grad2: symbol not found HOT 1
- Add inverse function
- Can't import noise
- Could you update the latest version to pypi?
- Cant install noise via pip HOT 5
- IndexError
- Hot to credit noise
- Base in py_noise2 doesn't do *anything*
- ModuleNotFoundError: No module named 'noise.connection' HOT 2
- SegFault in pnoise2 when providing large seeds
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 noise.