Comments (11)
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.
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.
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.
Is your problem fixed?
from timezonefinder.
Hi,
Finally I used an other way to achieve my goal.
Thanks anyway for your avaibility !
from timezonefinder.
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.
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.
@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.
Ok, great. But could you please check if you are using Numba now:
from timezonefinder import TimezoneFinder
print(TimezoneFinder.using_numba())
from timezonefinder.
Sure thing: I used the two commands you posted and got False
.
from timezonefinder.
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)
- Does the database also contains the country? HOT 1
- Decrease in time performance from version 6.0.2 to version 6.1.9 and bug with numpy 1.24.2 HOT 3
- Clarify resource usage and mention alternatives HOT 2
- Lock pytz or tzdata version in requirements? HOT 4
- Improve tests HOT 5
- parameterised functions for accessing binary file data
- improve class attribute documentation
- improve initialisation time HOT 5
- Data conversion: parallel shortcut computation
- CI/CD: `set-output` command is deprecated HOT 1
- CI/CD: use kebab-case for inputs
- CI/CD: Node.js 12 actions are deprecated HOT 1
- use poetry dependency group specification HOT 2
- RuntimeError: cannot cache function 'inside_polygon' HOT 2
- Bump h3 version HOT 5
- Python 3.12 compatibility HOT 5
- `not enough values to unpack (expected 4, got 0)` in outside_the_boundaries_of HOT 6
- Release 2023d HOT 1
- Cannot install timezonefinder HOT 9
- Building from source HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from timezonefinder.