Comments (9)
Spoke to @mildbyte, he's going to unpin it on a branch and see if any problem arises.
from arctic.
Have fiddled around with CircleCI's setting. This build is done with mock==1.3.0
and it failes with a bunch of test. Will need to fix those tests before we can upgrade it.
from arctic.
P.S. This probably blocks #89
from arctic.
yeah I'm looking into it. Most the errors are things like wrong number of arguments, so I'm guessing some of the methods in mock just changed signature
from arctic.
did some research, this is the issue. The problem is that the method that is called (self.set_library_metadata) is wrapped with a decorator. Take off the decorator, and it works. This is the issue, filed with Mock:
from arctic.
really the issue is in the backport of funcsigs to Python2. I opened this issue:
from arctic.
here is an example that reproduces the issue:
import mock
from functools import wraps
def dec(f):
@wraps(f)
def f_2(*args, **kwargs):
pass
return f_2
class Example(object):
def __init__(self):
pass
@dec
def method_1(self, arg):
pass
def method_2(self, arg):
self.method_1(arg)
def test_example():
m = mock.create_autospec(Example)
Example.method_2(m, "hello")
m.method_1.assert_called_once_with("hello")
from arctic.
Someone answered the question I posted on stack overflow. They explain why the above will not work and propose a work around, that does work, but isn't really ideal since you'd still have to instantiate the object,
from arctic.
This has been resolved in the python 3 branch. I figured out a workaround thanks to an answer on the SO post.
from arctic.
Related Issues (20)
- Impossible to asignate datetime index
- Migrating existing tickstore to ArcticDB HOT 3
- Update tests to use MongoDB 4.4
- most recent version not pip installing on mac M1 HOT 3
- [Question] - how to design data (store_type/chunk_size) HOT 6
- MongoDB 4.2 EOL April 2023 - What's Next? HOT 8
- Dask integration for tickstore
- arctic.exceptions.QuotaExceededException: Mongo Quota Exceeded: xxx 10.366 / 10 GB used HOT 1
- Index Monotonic Sort Bug in class DateChunker
- best practice usage HOT 1
- Missing last chunk in CHUNK_STORE HOT 1
- argument of type 'NoneType' is not iterable (when updating) HOT 1
- When to upgrade to python3.10? HOT 1
- circleci build container new Unix version breaks mongo install HOT 1
- Test arctic with mongodb 4.4 HOT 1
- VersionStore delete old snapshots very slow with large numbers of snapshots HOT 1
- Versionstore: Arctic automatically assigns index a name - Perhaps needs some warning HOT 1
- Java interface (JDBC) support HOT 1
- using the numpy no more than 1.18.5. This will cause issue when work with other libraries, for example matplotlib. HOT 1
- "AttributeError: 'NoneType' object has no attribute 'append'" using 4 or more threads. Fewer threads works fine. HOT 2
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 arctic.