FerranMarin/axie-scholar-utilities

[BUG]Installing bitarray (1.2.2) ValueError

dacelee opened this issue · 3 comments

• Installing bitarray (1.2.2)

ValueError

File \C:\Users\Administrator\AppData\Local\pypoetry\Cache\artifacts\83\d1\ad\5a1b5bf51208b83b7997ecbadd107b564bbcfb891
7e3dd3b7e2b0eed44\bitarray-1.2.2.tar.gz does not exist

at ~.poetry\lib\poetry_vendor\py3.8\poetry\core\packages\file_dependency.py:40 in init
36│ except FileNotFoundError:
37│ raise ValueError("Directory {} does not exist".format(self._path))
38│
39│ if not self._full_path.exists():
→ 40│ raise ValueError("File {} does not exist".format(self._path))
41│
42│ if self._full_path.is_dir():
43│ raise ValueError("{} is a directory, expected a file".format(self._path))
44│

Mind providing more information?

What caused this? Just poetry install? Which environment? What python version?

Thank you for your answer, I re-use docker, but the following problems appeared in transfer_axies;

`CRITICAL: Transfers file failed validation. Please review it. Error given: '4820443' is not of type 'number'. For attribute in: [0, 'Transfers', 0, 'AxieId']

transfers.json

`[
    {
        "AccountAddress": "ronin:86c73b7022B2F83425a22556858a58cFD3E95D32", 
        "Transfers": [
            {
                "AxieId": "4820443",
                "ReceiverAddress": "ronin:816c6bfa36f3fb56aa617cb3fb16c675a624e584"
            },
            {
                "AxieId": "4648936",
                "ReceiverAddress": "ronin:816c6bfa36f3fb56aa617cb3fb16c675a624e584"
            },
            {
                "AxieId": "4588415",
                "ReceiverAddress": "ronin:816c6bfa36f3fb56aa617cb3fb16c675a624e584"
            }
        ]
    }
]

The error is clear, the AxieID needs to be a number, not a text, so your file needs to look like:

[
    {
        "AccountAddress": "ronin:86c73b7022B2F83425a22556858a58cFD3E95D32", 
        "Transfers": [
            {
                "AxieId": 4820443,
                "ReceiverAddress": "ronin:816c6bfa36f3fb56aa617cb3fb16c675a624e584"
            },
            {
                "AxieId": 4648936,
                "ReceiverAddress": "ronin:816c6bfa36f3fb56aa617cb3fb16c675a624e584"
            },
            {
                "AxieId": 4588415,
                "ReceiverAddress": "ronin:816c6bfa36f3fb56aa617cb3fb16c675a624e584"
            }
        ]
    }
]