Comments (7)
Sorry I haven't had a chance to steal the development mac for testing yet. I am scheduling some time during this weekends hackathon to take a look.
from eospy.
I just tried on mac with 2.7 and 3.7 and it worked. Can you upgrade from 3.6 -> 3.7 and attempt again?
from eospy.
Got and exception but it seems to be related to your test network:
$ wget https://raw.githubusercontent.com/eosnewyork/eospy/master/examples/push_transaction.py
$ python3 push_transaction.py
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/eospy/dynamic_url.py", line 41, in post_url
r.raise_for_status()
File "/usr/local/lib/python3.7/site-packages/requests/models.py", line 939, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http://api.pennstation.eosnewyork.io:7001/v1/chain/push_transaction
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "push_transaction.py", line 35, in <module>
resp = ce.push_transaction(trx, key, broadcast=True)
File "/usr/local/lib/python3.7/site-packages/eospy/cleos.py", line 169, in push_transaction
return self.post('chain.push_transaction', params=None, data=data)
File "/usr/local/lib/python3.7/site-packages/eospy/cleos.py", line 31, in post
return cmd.post_url(url, **kwargs)
File "/usr/local/lib/python3.7/site-packages/eospy/dynamic_url.py", line 43, in post_url
raise requests.exceptions.HTTPError('Error: {}'.format(r.json()))
requests.exceptions.HTTPError: Error: {'code': 500, 'message': 'Internal Service Error', 'error': {'code': 3050003, 'name': 'eosio_assert_message_exception', 'what': 'eosio_assert_message assertion failure', 'details': [{'message': 'assertion failure with message: to account does not exist', 'file': 'wasm_interface.cpp', 'line_number': 934, 'method': 'eosio_assert'}, {'message': 'pending console output: ', 'file': 'apply_context.cpp', 'line_number': 72, 'method': 'exec_one'}]}}
```
from eospy.
Yes that is because the testnet wasn't setup correctly. It looks like 3.7 works with the lib but 3.6.5 doesn't. I'll take a deeper look and see if I can fix it for 3.6
from eospy.
my python version is 3.6.5, does't work in mac os 10.13.4, but work in ubuntu 16.04.4 LTS.
# new key
new_key = ce.create_key()
print(new_key.to_public())
from eospy.
Python 3.6.5
libeospy==2.0.0
base58==0.2.5
Had the same issue. The problem is in base58.b58encode function. I returns a string which cannot be decode in methods like to_wif
, to_public
etc. Maybe you should pinn versions for all dependencies in setup.py
? Updating to base58==1.0.3
solved my issue
from eospy.
Good catch. I pinned to >= 1.0.3 in version 2.0.1
from eospy.
Related Issues (20)
- Do you have security problems using abi_json_to_bin in your code? HOT 4
- Internal Service Error, unsatisfied_authorization HOT 2
- Create multisig account HOT 6
- "ImportError: cannot import name ABC" HOT 1
- Set Contract HOT 2
- Deserialize a packed trx offline HOT 5
- Can you please publish [email protected] to pypi? HOT 1
- What are the potential risks using eospy EOSKey for mainnet? HOT 1
- long sign time and eosjs verify HOT 20
- what function is equal to eosjs-ecc's ecc.sign or ecc.signHash HOT 1
- create other eosin.token example HOT 1
- AttributeError in example/push_transaction HOT 6
- Can't sign transaction with key.sign(digest)
- 3.6.5 int/float issue HOT 1
- set_code and set_abi do not work HOT 1
- HTTPConnectionPool(host='api.pennstation.eosnewyork.io', port=7001): Max retries exceeded with url: /v1/chain/abi_json_to_bin (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x75c91050>: Failed to establish a new connection: [Errno 111] Connection refused' HOT 2
- Missing changelog HOT 2
- Get children account list HOT 1
- Getting InvalidKeyFile Error HOT 2
- ImportError: cannot import name 'InvalidKeyFile' from 'eospy.exceptions' HOT 1
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 eospy.