Skip to content
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

import issues #4

Closed
rahuldave opened this issue Jan 25, 2013 · 5 comments
Closed

import issues #4

rahuldave opened this issue Jan 25, 2013 · 5 comments

Comments

@rahuldave
Copy link

➜ juliatry ../julia/julia server.jl
unsupported or misplaced expression import
in include at boot.jl:248
in include_from_node1 at util.jl:251
in reload_path at util.jl:271
in require at util.jl:223
in include at boot.jl:248
in include_from_node1 at util.jl:251
in process_options at client.jl:238
in _start at client.jl:304
at /Users/rahul/.julia/ZMQ/src/ZMQ.jl:422

➜ juliatry cat server.jl
require("ZMQ")
using ZMQ
require("ZMQ/src/RPCJuliaSer")
using RPCJuliaSer
run_server() #using port 5555 by default

@rahuldave
Copy link
Author

I fix this by importing Base.get at the very top of the file and commenting the one at near line 422:

if _zmq_major > 2
    #import Base.get
    global get

@aviks
Copy link
Contributor

aviks commented Jan 25, 2013

Can you tell me the version of Julia, and the git hash of the ZMQ package that you are running? I can't replicate this myself.

aviks ~/dev/julia $ ./julia
               _
   _       _ _(_)_     |  A fresh approach to technical computing
  (_)     | (_) (_)    |  Documentation: http://docs.julialang.org
   _ _   _| |_  __ _   |  Type "help()" to list help topics
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 0.0.0+108147280.r7435.dirty
 _/ |\__'_|_|_|\__'_|  |  Commit 7435ffaf34 (2013-01-25 20:33:46)*
|__/                   |

julia> using ZMQ
julia> require("ZMQ/src/RPCJuliaSer")
julia> run_server()

@rahuldave
Copy link
Author

➜ Learning ./julia/julia
_
_ _ ()_ | A fresh approach to technical computing
() | () () | Documentation: http://docs.julialang.org
_ _ | | __ _ | Type "help()" to list help topics
| | | | | | |/ ` | |
| | |
| | | | (
| | | Version 0.0.0+107211096.rba9e.dirty
/ |_'|||__'| | Commit ba9eb0a653 (2013-01-14 19:30:42)*
|__/ |

running the 14th feb binary on snow leopard (which is why)

and

➜ ZMQ git log
commit 4b38427
Author: Avik Sengupta avik@sengupta.net
Date: Wed Jan 9 17:18:07 2013 +0000

add postinstall script

@aviks
Copy link
Contributor

aviks commented Jan 25, 2013

OK, the Jan 14th build of Julia should have most of the changes that we need. Could you please try a Pkg.update() to get the latest version of the ZMQ package, and see if this particular issue around 'import' goes away.

Note that the read: end of file issue will still remain. Its being tracked in #5

@rahuldave
Copy link
Author

Issue around import is gone. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants