GithubHelp home page GithubHelp logo

Error during the installation about noise HOT 6 CLOSED

caseman avatar caseman commented on August 21, 2024
Error during the installation

from noise.

Comments (6)

brycepg avatar brycepg commented on August 21, 2024

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.

caseman avatar caseman commented on August 21, 2024

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.

Gnu-Bricoleur avatar Gnu-Bricoleur commented on August 21, 2024

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.

AidenWard13 avatar AidenWard13 commented on August 21, 2024

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.

brycepg avatar brycepg commented on August 21, 2024

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.

AidenWard13 avatar AidenWard13 commented on August 21, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.