Code Monkey home page Code Monkey logo

Comments (1)

CrazyCreepy avatar CrazyCreepy commented on June 27, 2024

Hi @milen-prg I have the same issue when I try to switch to tyhe python 3.6 to 3.11.4 because Visual Code Studio can't use python 3.6. I don't have the solution, but I have some clues about the issue.

First, we try to use this package with python 3.11 when it's only be test with the version 3.8. So that normal that we have some issue there.

Second, like you said is not the pip the issue, but is a missing file in the tempoary file that was download.
To be precisly it's the gsl_site.py that not in the reposity. If you download the new release an go to [extract file]\pygsl-2.3.3\gsl_dist the no gsl_site.py.
You need to create this file with this in it:

# Some systems do not provide gsl-config. So here the locations can be entered
 # by hand.
 import os

# The path to the directory where gsl is installed. Currently setup.py assumes
# that the include files are located in "prefix/include". 
prefix = os.path.join("C:\\", "OpenSource", "local")

cflags = "-g -I" + os.path.join(prefix, "include")

libs   = "-L" + os.path.join(prefix, "lib")+ " -lgsl -lgslcblas -lm"

# Enter the correct GSL versions by hand..
version = "2.7"

# swig_extension.py needs swig to generate the approbriate wrapper files. This
# variable only needs to be correct is you use USE_SWIG=1 in setup.py
swig = os.path.join("C:\\", "OpenSource", "swig", "swig-4.1.1", "swig")
#swig = os.path.join("C:\\", "Programs", "Swig", "SWIG-1.3.19", "swig")

Also, be sure to have the latest wheel package and swig pacakge.
Afther that open a bash command and type python setup.py gsl_wrappers

the result should be:

<swig_extension.SWIG_Extension('__callback') at 0x25b364dc350>
Building testing ufuncs!
#29 extension modules
running gsl_wrappers
Exporting parser tree using swig: ['C:\\OpenSource\\swig\\swig-4.1.1\\swig', '-I
C:\\OpenSource\\local\\include', '-xml', 'C:\\Users\\Alexandre\\Downloads\\pygsl
-2.3.3.tar\\pygsl-2.3.3\\pygsl-2.3.3\\testing\\src\\sf\\sf.i']
error: [WinError 2] The system cannot find the file specified

Now that where I am I need to figure it out how to solve this swig error.

The other option like mention here is to install manually GSL Library and rebuild the Wrapper from scrath.

If you want all step I made with more detail. I have post a question on stack.

from pygsl.

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.