Comments (5)
Yes, I already had those dependencies installed manually.
I've followed your advice and commented out from .daemon import DaemonContext
line in marconi\tools\__init__.py
file.
That wasn't enough - the following packages (dependencies) needed to be added:
- sklearn
- scipy (I used http://www.lfd.uci.edu/~gohlke/pythonlibs/#scipy)
- numpy+mkl (I used http://www.lfd.uci.edu/~gohlke/pythonlibs/#numpy)
After pip installing the above, there was one more issue:
(marconibot) C:\Users\LEONIDS\Envs\marconibot\marconi>python ticker.py
Traceback (most recent call last):
File "ticker.py", line 3, in <module>
from tools import MongoClient, websocket
ImportError: cannot import name 'MongoClient'
(marconibot) C:\Users\LEONIDS\Envs\marconibot\marconi>python ticker.py
I ended up explicitly importing MongoClient
in marconi\tools\__init__.py
by adding from pymongo import MongoClient
line.
Here is the output:
(marconibot) C:\Users\LEONIDS\Envs\marconibot\marconi>python ticker.py
INFO:__main__:Thread started
DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): poloniex.com
None
DEBUG:urllib3.connectionpool:https://poloniex.com:443 "GET /public?command=returnTicker HTTP/1.1" 200 None
INFO:__main__:Populated markets database with ticker data
INFO:__main__:Subscribed to ticker
{'_id': 'USDT_BTC',
'baseVolume': '13969720.67200998',
'high24hr': '2605.44380335',
'highestBid': '2596.40000000',
'id': 121.0,
'isFrozen': '0',
'last': '2596.40793175',
'low24hr': '2546.38790528',
'lowestAsk': '2596.40793175',
'percentChange': '-0.00291554',
'quoteVolume': '5416.90700607'}
{'_id': 'USDT_BTC',
'baseVolume': '13969720.67200998',
'high24hr': '2605.44380335',
'highestBid': '2596.40000000',
'id': 121.0,
'isFrozen': '0',
'last': '2596.40793175',
'low24hr': '2546.38790528',
'lowestAsk': '2596.40793175',
'percentChange': '-0.00291554',
'quoteVolume': '5416.90700607'}
INFO:__main__:Websocket closed!
INFO:__main__:Thread joined
(marconibot) C:\Users\LEONIDS\Envs\marconibot\marconi>
(marconibot) C:\Users\LEONIDS\Envs\marconibot\marconi>mongo
> use poloniex
switched to db poloniex
> db.ticker.find().count()
90
>
Thank you!
from marconibot.
Ya, the package structure is fubar right now. Expect huge structure changes in the future. For now, most of the inner modules work fine if you work directly from the marconibot/marconi dir.
But yes, the setup.py and overall structure of this repo needs improvement/refining.
Keep in mind this isn't a 'working' bot (I plan on having it fully functional), but for now it is just a series of tools that would come in handy when creating a poloniex trade bot. I'll create a release once this repo becomes more 'mature'. But, for now, the easiest way to use this repo is to clone it and copy the marconi dir into your project.
from marconibot.
Hi,
Thank you for the prompt response.
I've cloned the repo (c:\Users\LEONIDS\Envs\marconibot\marconi) and installed the required packages dependencies manually:
(marconibot) C:\Users\LEONIDS\Envs\marconibot>pip install requests numpy bokeh cherrypy beautifulsoup4 pymongo pandas websocket-client
...
(marconibot) C:\Users\LEONIDS\Envs\marconibot>pip install git+https://[email protected]/s4w3d0ff/python-poloniex.git
...
However, there is still some issue with importing some other modules as shown below.
I'm not sure if there is an alternative way to try running this project:
(marconibot) C:\Users\LEONIDS\Envs\marconibot\marconi>python ticker.py
Traceback (most recent call last):
File "ticker.py", line 3, in <module>
from tools import MongoClient, websocket
File "C:\Users\LEONIDS\Envs\marconibot\marconi\tools\__init__.py", line 35, in <module>
from .daemon import DaemonContext
File "C:\Users\LEONIDS\Envs\marconibot\marconi\tools\daemon\__init__.py", line 42, in <module>
from .daemon import DaemonContext
File "C:\Users\LEONIDS\Envs\marconibot\marconi\tools\daemon\daemon.py", line 26, in <module>
import pwd
ModuleNotFoundError: No module named 'pwd'
(marconibot) C:\Users\LEONIDS\Envs\marconibot\marconi>
from marconibot.
Seems like the daemonizing module i was planning to use has issues with windows.
No packages depend on the module yet so you can comment out that line (from .daemon import DaemonContext
) and it shouldn't be an issue.
Make sure you have the dependencies installed, current dependencies are:
pip3 install numpy scikit-learn bokeh cherrypy beautifulsoup4 pymongo pandas websocket-client
pip3 install git+https://github.com/s4w3d0ff/python-poloniex.git
Edit: derp, just saw that you installed the dependencies manually, you will probably need scikit-learn as well.
from marconibot.
The module and packages should be easier to install now, I still find bugs when installing on some systems but they seem easy enough to work through.
It is usually a SciPy issue with pip.
from marconibot.
Related Issues (5)
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 marconibot.