Coder Social home page Coder Social logo

Loading Error about timezonefinder HOT 11 CLOSED

jannikmi avatar jannikmi commented on May 19, 2024
Loading Error

from timezonefinder.

Comments (11)

jannikmi avatar jannikmi commented on May 19, 2024

hey jrifai,
at the first glance it looks like the error is related to Numba and its use.
I am not really sure what it is yet, but since you are the first one reporting that error, i guess it has something to do with dependencies...
Sorry for asking this, but have you installed the LLVM compiler?
http://numba.pydata.org/numba-doc/0.26.0/developer/contributing.html#buildenv
I will look further into it when you have.
Greetings

from timezonefinder.

jrifai avatar jrifai commented on May 19, 2024

Thanks for your answer.
I installed Numba with conda. Is not enough ?
I tried to install LLVM compiler, but no success for : from timezonefinder import TimezoneFinder

from timezonefinder.

jannikmi avatar jannikmi commented on May 19, 2024

I don't know what the problem exaclty is, but i am pretty sure it is a problem with your Numba installation.
Please try uninstalling Numba completely (reverse your conda installation) and then check if timezonefinder works (without numba).
Then install numpy.
Then install llvmlite manually: http://llvmlite.pydata.org/en/latest/install/index.html#building-manually
and reinstall Numba (without conda).
That worked for me.
Hope that helped, but if not please consider looking for similar errors reported by Numba users.

from timezonefinder.

jannikmi avatar jannikmi commented on May 19, 2024

Is your problem fixed?

from timezonefinder.

jrifai avatar jrifai commented on May 19, 2024

Hi,
Finally I used an other way to achieve my goal.
Thanks anyway for your avaibility !

from timezonefinder.

timothyb0912 avatar timothyb0912 commented on May 19, 2024

Hi, I wanted to second the fact that I am experiencing this issue as well. I am using a Mac OS X El Capitan version 10.11.4

Like MrMinimal64, I installed Numba using conda install Numba before pip installing timezonefinder.
I was unable to import timezonefinder with our without Numba
As for the LLVM compiler, it was already installed.

My terminal output from running "brew info llvm" is:

brew info llvm
llvm: stable 3.6.2 (bottled), HEAD [keg-only]
Next-gen compiler infrastructure
http://llvm.org/
Not installed
From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/llvm.rb
==> Dependencies
Build: xz ✘, cmake ✘
==> Options
--universal
    Build a universal binary
--with-clang
    Build the Clang compiler and support libraries
--with-clang-extra-tools
    Build extra tools for Clang
--with-compiler-rt
    Build Clang runtime support libraries for code sanitizers, builtins, and profiling
--with-libcxx
    Build the libc++ standard library
--with-lld
    Build LLD linker
--with-lldb
    Build LLDB debugger
--with-python
    Build Python bindings against Homebrew Python
--with-rtti
    Build with C++ RTTI
--with-utils
    Install utility binaries
--HEAD
    Install HEAD version
==> Caveats
LLVM executables are installed in /usr/local/opt/llvm/bin.
Extra tools are installed in /usr/local/opt/llvm/share/llvm.

This formula is keg-only, which means it was not symlinked into /usr/local.

OS X already provides this software and installing another version in
parallel can cause all kinds of trouble.

If there is anything that you think I'm doing incorrectly, pointers would be greatly appreciated!

from timezonefinder.

jannikmi avatar jannikmi commented on May 19, 2024

First of all, thanks for reporting.
Since I don't know how @jrifai solved the issue after all and I do not know too much about Numba or llvm, I can basically just give you the same advice:

Consider if it is really necessary for you to use the package with Numba. If that's true:

Please try uninstalling Numba completely (reverse your conda installation) and then check if timezonefinder works (without numba).
(install numpy)
Then install llvmlite manually: http://llvmlite.pydata.org/en/latest/install/index.html#building-manually
and reinstall Numba (I did it without conda).

On https://github.com/numba/numba it says the dependency is llvmlite so maybe your llvm version is not sufficient.

Please let me know if and how you solved the issue. Thanks

from timezonefinder.

timothyb0912 avatar timothyb0912 commented on May 19, 2024

@MrMinimal64: No problem.
I tried conda uninstall numba again, and timezonefinder magically worked. I'm not sure why it worked this time but not the first time I imported timezonefinder without Numba.

Thanks for pointing me in the right direction!

from timezonefinder.

jannikmi avatar jannikmi commented on May 19, 2024

Ok, great. But could you please check if you are using Numba now:

from timezonefinder import TimezoneFinder
print(TimezoneFinder.using_numba())

from timezonefinder.

timothyb0912 avatar timothyb0912 commented on May 19, 2024

Sure thing: I used the two commands you posted and got False.

from timezonefinder.

jannikmi avatar jannikmi commented on May 19, 2024

So then that means, your timezonefinder works because you are not using it with numba. But you don't have to, it's just slower.

from timezonefinder.

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.