Giter VIP home page Giter VIP logo

Comments (5)

pdetrempe avatar pdetrempe commented on July 20, 2024

Hi there! Any idea what was causing this issue for you? I'm having a the same error message on a new computer.

Thanks!

from daemonmode.jl.

dmolina avatar dmolina commented on July 20, 2024

Could you give a little more information? In which Operative System, and which version of Julia?
I need that to be able to replicate it and fix it.
Thank you in advance!

from daemonmode.jl.

pdetrempe avatar pdetrempe commented on July 20, 2024

Yup! I'm seeing this on Windows 10 with Julia 1.9.2.

from daemonmode.jl.

rgelleschus avatar rgelleschus commented on July 20, 2024

I seem to have the same or a similar problem on Windows 10 with Julia 1.10.1. I get simple examples (e.g. jlcall('x -> x^2',{2.1})) to run perfectly fine. But when I try to run functions from my own project, it fails with that cryptic setenv([...]): operation not supported on socket (ENOTSUP) error.

I tried both the syntax
jlcall(function_name,{inputs},'project','path/to/project','modules',{'project'})
as well as
jlcall(function_name,{inputs},'setup','path/to/setup_code.jl'),
where I put

using Pkg
Pkg.develop(path = "path/to/project")
import project

In the first instance, my error looked similar to what mhechthz showed. In the second instance, the stacktrace shows that the error occurs in the line with Pkg.develop().

from daemonmode.jl.

dmolina avatar dmolina commented on July 20, 2024

Thank you for your interest. I think the problem is the develop() because it create a new project and change the activated work dir. DaemonMode is going to use the activated project in the Daemon process, so I think it is better to do that in the server, not in the client (or the activate, It is not good to run develop() several times).

I personally usually I run the Daemon process setting previously JULIA_PROJECT, and the run the client, that does not Pkg activate (or develop). If you activate with the same project than the Daemon, it is working, but develop() is not right in my opinion, I never use develop inside a program, only activate.

from daemonmode.jl.

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.