Quantcast

Nemo AcbField error

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
85 messages Options
12345
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Nemo AcbField error

digxx
Maybe I'm doing sth wrong or sth has changed since 0.4 but I get an error using an AcbField

r=AcbField(64)
res=r(1)

ERROR: LoadError: error compiling AcbField: error compiling Type: could not load library "libarb"
 in include_from_node1(::String) at .\loading.jl:488

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Nemo AcbField error

digxx
push...
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Nemo AcbField error

Jeffrey Sarnoff
The exported logic requires both the real and the imaginary parts  be given.

ComplexField = AcbField(64)
complexValue = ComplexField(1, 0)





On Monday, October 17, 2016 at 8:08:40 AM UTC-4, digxx wrote:
push...
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Nemo AcbField error

Julia Users mailing list
This is probably something we could fix easily enough.

By the way, feel free to send support queries for Nemo to the Google list nemo-devel if you prefer. I believe Jeffrey is also signed up there, but we don't all notice the posts here.

Bill.

On Monday, 17 October 2016 22:43:07 UTC+2, Jeffrey Sarnoff wrote:
The exported logic requires both the real and the imaginary parts  be given.

ComplexField = AcbField(64)
complexValue = ComplexField(1, 0)





On Monday, October 17, 2016 at 8:08:40 AM UTC-4, digxx wrote:
push...
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Nemo AcbField error

digxx
Hey, Sorry but I also get this error when I write

r=AcbField(64)
r(1,1)

Likewise

r=ArbField(64)
r(1) 

gives me the same error...
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Nemo AcbField error

Jeffrey Sarnoff
I do not get that error.  Are you using the current versions of Julia nd Nemo?  You may see a warning message with the first use each session.

Here is a transcript:. Let me see yours, and  the output of versioninfo().


> using Nemo
> c = AcbField(64)
Complex Field with 64 bits of precision and error bounds

> c(1,1)
..warning...
1.0000000000000000000 + i*1.0000000000000000000
> c(1,1)
1.0000000000000000000 + i*1.0000000000000000000
> f = ArbField(64)
Real Field with 64 bits of precision and error bounds

julia
> f(1)

1.0000000000000000000





On Tuesday, October 18, 2016 at 6:27:28 PM UTC-4, digxx wrote:
Hey, Sorry but I also get this error when I write

r=AcbField(64)
r(1,1)

Likewise

r=ArbField(64)
r(1) 

gives me the same error...
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Nemo AcbField error

Tommy Hofmann
pari was not built/downloaded properly. Do a Pkg.build("Nemo") in julia and check again.

On Wednesday, October 19, 2016 at 2:44:20 AM UTC+2, Jeffrey Sarnoff wrote:
I do not get that error.  Are you using the current versions of Julia nd Nemo?  You may see a warning message with the first use each session.

Here is a transcript:. Let me see yours, and  the output of versioninfo().


> using Nemo
> c = AcbField(64)
Complex Field with 64 bits of precision and error bounds

> c(1,1)
..warning...
1.0000000000000000000 + i*1.0000000000000000000
> c(1,1)
1.0000000000000000000 + i*1.0000000000000000000
> f = ArbField(64)
Real Field with 64 bits of precision and error bounds

julia
> f(1)

1.0000000000000000000





On Tuesday, October 18, 2016 at 6:27:28 PM UTC-4, digxx wrote:
Hey, Sorry but I also get this error when I write

r=AcbField(64)
r(1,1)

Likewise

r=ArbField(64)
r(1) 

gives me the same error...
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Nemo AcbField error

digxx
It does not work either. When I run Pkg.build("Nemo") it starts

julia> Pkg.build("Nemo")
INFO: Building Nemo
WARNING: `@windows` is deprecated, use `@static is_windows()` instead
 in depwarn(::String, ::Symbol) at .\deprecated.jl:64
 in @windows(::Any, ::Any) at .\deprecated.jl:472
 in include_from_node1(::String) at .\loading.jl:488
 in evalfile(::String, ::Array{String,1}) at .\loading.jl:504 (repeats 2 times)
 in cd(::##2#4, ::String) at .\file.jl:48
 in (::##1#3)(::IOStream) at .\none:13
 in open(::##1#3, ::String, ::String) at .\iostream.jl:113
 in eval(::Module, ::Any) at .\boot.jl:234
 in process_options(::Base.JLOptions) at .\client.jl:239
 in _start() at .\client.jl:318
while loading C:\cygwin64\home\Diger\.julia\v0.5\Nemo\deps\build.jl, in expression starting on line 1
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 85504  100 85504    0     0  72326      0  0:00:01  0:00:01 --:--:-- 72707
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  672k  100  672k    0     0   266k      0  0:00:02  0:00:02 --:--:--  267k
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  450k  100  450k    0     0   192k      0  0:00:02  0:00:02 --:--:--  192k
fatal: destination path 'antic' already exists and is not an empty directory.
Already up-to-date.
fatal: destination path 'flint2' already exists and is not an empty directory.
Already up-to-date.
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 13.8M  100 13.8M    0     0  1052k      0  0:00:13  0:00:13 --:--:-- 1345k
fatal: destination path 'arb' already exists and is not an empty directory.
Already up-to-date.
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 21.8M  100 21.8M    0     0   894k      0  0:00:24  0:00:24 --:--:--  926k
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 6066k  100 6066k    0     0   825k      0  0:00:07  0:00:07 --:--:-- 1198k


every time I run Pkg.build("Nemo")
So apparently it is never properly build.
I'm using Julia 0.5.0 and Pkg.update("Nemo") also ran through the newest version.
However the Pkg.build problem remains...
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Nemo AcbField error

Julia Users mailing list
The above shows that everything downloaded ok, I think. Did it not then go on and rebuild everything?

Bill.

On 23 October 2016 at 21:11, digxx <[hidden email]> wrote:
It does not work either. When I run Pkg.build("Nemo") it starts

julia> Pkg.build("Nemo")
INFO: Building Nemo
WARNING: `@windows` is deprecated, use `@static is_windows()` instead
 in depwarn(::String, ::Symbol) at .\deprecated.jl:64
 in @windows(::Any, ::Any) at .\deprecated.jl:472
 in include_from_node1(::String) at .\loading.jl:488
 in evalfile(::String, ::Array{String,1}) at .\loading.jl:504 (repeats 2 times)
 in cd(::##2#4, ::String) at .\file.jl:48
 in (::##1#3)(::IOStream) at .\none:13
 in open(::##1#3, ::String, ::String) at .\iostream.jl:113
 in eval(::Module, ::Any) at .\boot.jl:234
 in process_options(::Base.JLOptions) at .\client.jl:239
 in _start() at .\client.jl:318
while loading C:\cygwin64\home\Diger\.julia\v0.5\Nemo\deps\build.jl, in expression starting on line 1
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 85504  100 85504    0     0  72326      0  0:00:01  0:00:01 --:--:-- 72707
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  672k  100  672k    0     0   266k      0  0:00:02  0:00:02 --:--:--  267k
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  450k  100  450k    0     0   192k      0  0:00:02  0:00:02 --:--:--  192k
fatal: destination path 'antic' already exists and is not an empty directory.
Already up-to-date.
fatal: destination path 'flint2' already exists and is not an empty directory.
Already up-to-date.
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 13.8M  100 13.8M    0     0  1052k      0  0:00:13  0:00:13 --:--:-- 1345k
fatal: destination path 'arb' already exists and is not an empty directory.
Already up-to-date.
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 21.8M  100 21.8M    0     0   894k      0  0:00:24  0:00:24 --:--:--  926k
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 6066k  100 6066k    0     0   825k      0  0:00:07  0:00:07 --:--:-- 1198k


every time I run Pkg.build("Nemo")
So apparently it is never properly build.
I'm using Julia 0.5.0 and Pkg.update("Nemo") also ran through the newest version.
However the Pkg.build problem remains...

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Nemo AcbField error

digxx
No it does not go on...When I manually start Pkg.build("Nemo") in the same session I get:
julia> Pkg.build("Nemo")
INFO: Building Nemo
WARNING: `@windows` is deprecated, use `@static is_windows()` instead
 in depwarn(::String, ::Symbol) at .\deprecated.jl:64
 in @windows(::Any, ::Any) at .\deprecated.jl:472
 in include_from_node1(::String) at .\loading.jl:488
 in evalfile(::String, ::Array{String,1}) at .\loading.jl:504 (repeats 2 times)
 in cd(::##2#4, ::String) at .\file.jl:48
 in (::##1#3)(::IOStream) at .\none:13
 in open(::##1#3, ::String, ::String) at .\iostream.jl:113
 in eval(::Module, ::Any) at .\boot.jl:234
 in process_options(::Base.JLOptions) at .\client.jl:239
 in _start() at .\client.jl:318
while loading C:\cygwin64\home\Diger\.julia\v0.5\Nemo\deps\build.jl, in expression starting on line 1
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0Warning: Failed to create the file
Warning: C:\cygwin64\home\Diger\.julia\v0.5\Nemo\local\lib\libwinpthread-1.dll:
Warning:  Device or resource busy
curl: (23) Failed writing body (0 != 1181)
================================================================================================================================[ ERROR: Nemo ]================================================================================================================================

LoadError: automatic download failed (error: 2147500036): http://nemocas.org/binaries/w64-libwinpthread-1.dll
while loading C:\cygwin64\home\Diger\.julia\v0.5\Nemo\deps\build.jl, in expression starting on line 36

===============================================================================================================================================================================================================================================================================

===============================================================================================================================[ BUILD ERRORS ]================================================================================================================================

WARNING: Nemo had build errors.

 - packages with build errors remain installed in C:\cygwin64\home\Diger\.julia\v0.5
 - build the package(s) and all dependencies with `Pkg.build("Nemo")`
 - build a single package by running its `deps/build.jl` script

===============================================================================================================================================================================================================================================================================

When I start a new session in Julia I start with the previous download stuff first and then eventually end up with the error above (after manually starting Pkg.build("Nemo") again) 
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Nemo AcbField error

Julia Users mailing list
Ah, you are on Windows. That explains why it doesn't go on any further.

I will have to ask Tommy why he thought this was a Pari problem. I don't see it from the error you reported.

Bill.

On 23 October 2016 at 21:28, digxx <[hidden email]> wrote:
No it does not go on...When I manually start Pkg.build("Nemo") in the same session I get:
julia> Pkg.build("Nemo")
INFO: Building Nemo
WARNING: `@windows` is deprecated, use `@static is_windows()` instead
 in depwarn(::String, ::Symbol) at .\deprecated.jl:64
 in @windows(::Any, ::Any) at .\deprecated.jl:472
 in include_from_node1(::String) at .\loading.jl:488
 in evalfile(::String, ::Array{String,1}) at .\loading.jl:504 (repeats 2 times)
 in cd(::##2#4, ::String) at .\file.jl:48
 in (::##1#3)(::IOStream) at .\none:13
 in open(::##1#3, ::String, ::String) at .\iostream.jl:113
 in eval(::Module, ::Any) at .\boot.jl:234
 in process_options(::Base.JLOptions) at .\client.jl:239
 in _start() at .\client.jl:318
while loading C:\cygwin64\home\Diger\.julia\v0.5\Nemo\deps\build.jl, in expression starting on line 1
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0Warning: Failed to create the file
Warning: C:\cygwin64\home\Diger\.julia\v0.5\Nemo\local\lib\libwinpthread-1.dll:
Warning:  Device or resource busy
curl: (23) Failed writing body (0 != 1181)
================================================================================================================================[ ERROR: Nemo ]================================================================================================================================

LoadError: automatic download failed (error: <a href="tel:2147500036" value="+12147500036" target="_blank">2147500036): http://nemocas.org/binaries/w64-libwinpthread-1.dll
while loading C:\cygwin64\home\Diger\.julia\v0.5\Nemo\deps\build.jl, in expression starting on line 36

===============================================================================================================================================================================================================================================================================

===============================================================================================================================[ BUILD ERRORS ]================================================================================================================================

WARNING: Nemo had build errors.

 - packages with build errors remain installed in C:\cygwin64\home\Diger\.julia\v0.5
 - build the package(s) and all dependencies with `Pkg.build("Nemo")`
 - build a single package by running its `deps/build.jl` script

===============================================================================================================================================================================================================================================================================

When I start a new session in Julia I start with the previous download stuff first and then eventually end up with the error above (after manually starting Pkg.build("Nemo") again) 

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Nemo AcbField error

digxx
What do u mean that explains why it doesn't go any further?
Is Nemo not finished yet for Windows?
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Nemo AcbField error

digxx
Maybe I should have pointed out that I'm on windows...
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Nemo AcbField error

Julia Users mailing list
No, on Windows it doesn't build from source, but downloads binaries. After the downloading is done, that's it. It should be ready to use.

If you still have the same problem, maybe we need to rebuild one of the binaries for you. I'll have to talk to Tommy and see what he knows about this problem.

Bill.

On 23 October 2016 at 21:48, digxx <[hidden email]> wrote:
Maybe I should have pointed out that I'm on windows...

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Nemo AcbField error

digxx
Well so far nothing has changed ;)

So:
while loading C:\cygwin64\home\Diger\.julia\v0.5\Nemo\deps\build.jl, in expression starting on line 1
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 85504  100 85504    0     0  72326      0  0:00:01  0:00:01 --:--:-- 72707
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  672k  100  672k    0     0   266k      0  0:00:02  0:00:02 --:--:--  267k
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  450k  100  450k    0     0   192k      0  0:00:02  0:00:02 --:--:--  192k
fatal: destination path 'antic' already exists and is not an empty directory.
Already up-to-date.
fatal: destination path 'flint2' already exists and is not an empty directory.
Already up-to-date.
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 13.8M  100 13.8M    0     0  1052k      0  0:00:13  0:00:13 --:--:-- 1345k
fatal: destination path 'arb' already exists and is not an empty directory.
Already up-to-date.
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 21.8M  100 21.8M    0     0   894k      0  0:00:24  0:00:24 --:--:--  926k
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 6066k  100 6066k    0     0   825k      0  0:00:07  0:00:07 --:--:-- 1198k

are binaries??
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Nemo AcbField error

digxx
or does it try to download the source here upon Pkg.build("Nemo") ?
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Nemo AcbField error

Julia Users mailing list
Well it downloads some source as well, but it isn't used.

On 23 October 2016 at 21:59, digxx <[hidden email]> wrote:
or does it try to download the source here upon Pkg.build("Nemo") ?

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Nemo AcbField error

Tommy Hofmann
Sorry, I meant arb and not pari. Something is off with the libraries. You can try the following:

1. Remove all files in .julia\v0.5\Nemo\local\lib and then do a Pkg.build("Nemo") again.

2. If 1. doesn't help, check if the following files are in Nemo\local\lib: "libwinpthread-1.dll", "libgmp-16.dll", "libmpfr-4.dll", "libflint.dll", "libflint-13.dll", "libarb.dll", "libpari.dll"
    (Note that there must be two libflint* files).

Looking at your path names, I wonder if you are running julia in cygwin?
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Nemo AcbField error

digxx
Hey,
Thx for ur reply. I tried both deleting all the files and run Pkg.build again...
It however did not work as are all the files present too :-(
Julia in cygwin is correct...
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Nemo AcbField error

Jeffrey Sarnoff
I tried this on windows, it worked:
delete the directory Nemo (found with Pkg.dir() subdir Nemo))
delete the corresponding directory METADATA/Nemo (Pkg.dir("METADATA") subdir Nemo)
and if they exist, .cache/Nemo, METADATA/.cache/Nemo
restart Julia, do Pkg.update()
> Pkg.clone("https://github.com/Nemocas/Nemo.jl")
when its done, quit and restart Julia
> Pkg.build("Nemo")
when its done, restart Julia
> using Nemo
# a bunch of warnings, then Welcome to Nemo ...
restart Julia
> using  Nemo 
Welcome to Nemo ... (without the warnings)


On Monday, October 24, 2016 at 1:24:30 PM UTC-4, digxx wrote:
Hey,
Thx for ur reply. I tried both deleting all the files and run Pkg.build again...
It however did not work as are all the files present too :-(
Julia in cygwin is correct...
12345
Loading...