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

Some issues 1.Non-tuple sequence and 2.NonType object has no attribute get_values #13

Open
Freiburg-AI-Research opened this issue Feb 27, 2021 · 2 comments

Comments

@Freiburg-AI-Research
Copy link

Freiburg-AI-Research commented Feb 27, 2021

Z:\Downloads\crypto-arbitrage-framework-master\crypto\path_optimizer.py:241: FutureWarning: Using a non-tuple sequence for multidimensional indexing is deprecated; use arr[tuple(seq)] instead of arr[seq]. In the future this will be interpreted as an array index, arr[np.array(seq)], which will result either in an error or a different result.
self.commission_matrix[np.meshgrid(indexes, indexes, indexing='ij', sparse=True)] = self.trading_fee[
Z:\Downloads\crypto-arbitrage-framework-master\crypto\path_optimizer.py:284: RuntimeWarning: divide by zero encountered in log
final_transit_matrix = np.log(self.transit_price_matrix * (1 - self.commission_matrix) * (
profit rate: 0.23583462992170445, arbitrage path: [('kucoin_BTC', 'kucoin_XRP'), ('kucoin_XRP', 'binance_XRP'), ('binance_XRP', 'binance_USDT'), ('binance_USDT', 'binance_AION'), ('binance_AION', 'kucoin_AION'), ('kucoin_AION', 'kucoin_BTC')]
Traceback (most recent call last):
File "Z:/Downloads/crypto-arbitrage-framework-master/crypto/main.py", line 36, in
amt_optimizer.get_solution()
File "Z:\Downloads\crypto-arbitrage-framework-master\crypto\amount_optimizer.py", line 53, in get_solution
self._get_solution()
File "Z:\Downloads\crypto-arbitrage-framework-master\crypto\amount_optimizer.py", line 159, in _get_solution
xs = np.array(ms.get_values(self.int_var)).reshape(self.path_n, self.orderbook_n)
AttributeError: 'NoneType' object has no attribute 'get_values'

Process finished with exit code 1


I am getting the above errors when running the code.

  1. Can someone help my getting this running? This tuple FutureWarning at the beginning seem to not affect the result. How can i avoid this error in the code?
  2. why do get 'NoneType' object has no attribute 'get_values'?

Would appreciate any help to get this running. Thank you

@Freiburg-AI-Research Freiburg-AI-Research changed the title Some issues Some issues 1.Non-tuple sequence and 2.NonType object has no attribute get_values Feb 27, 2021
@charan-vendra
Copy link

Me and others facing same issue, really need help.

@hesller
Copy link

hesller commented Apr 21, 2021

I am getting this issue as well

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

3 participants