Comments (5)
I think the problem you are having is due to the fact that in Ubuntu 16.04, python3 is actualy 3.5 and 3.6.
I created a docker to reproduce this problem. I'm have no experience with Vagrant, but i believe this should be similar enough.
The new dockerfile is Dockerfile_xenial created in 5241d05
To test it , run:
docker build -f Dockerfile_xenial -t pymarket:xenial .
docker run -it pymarket:xenial
Once in the console, you can open open python using:
python3
I used one of the examples in the the documentation and it works fine:
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import networkx as nx
import pymarket as pm
r = np.random.RandomState(1234)
mar = pm.Market()
mar.accept_bid(1, 6.7, 0, True, 0)
mar.accept_bid(1, 6.6, 1, True, 0)
mar.accept_bid(1, 6.5, 2, True, 0)
mar.accept_bid(1, 6.4, 3, True, 0)
mar.accept_bid(1, 6.3, 4, True, 0)
mar.accept_bid(1, 6, 5, True, 0)
mar.accept_bid(1, 1, 6, False, 0)
mar.accept_bid(1, 2, 7, False, 0)
mar.accept_bid(2, 3, 8, False, 0)
mar.accept_bid(2, 4, 9, False, 0)
mar.accept_bid(1, 6.1, 10, False, 0)
bids = mar.bm.get_df()
transactions, extras = mar.run('p2p', r=r)
stats = mar.statistics()
from pymarket.
Steps to reproduce (using a Digital Ocean VM):
push dev/xenial
vagrant up
vagrant provision
Please update the, several, installation sections on various pages to reflect the linux distributions, and releases you have actually verified your installation instructions on.
I've given you a possible pattern for Ubuntu releases. It's up to you how many of these you verify your instructions.
Your instructions should take some one from a clean base to a working pymarket.
Later this will help you with debugging issues by being able to replicate the environment needed to reproduce the bug.
I don't propose to do further development along these lines and leave remaining implementation and documentation to you.
The review process is not for the reviewer's to develop your instructions - but I've got you to the point where you should be able to proceed.
from pymarket.
This should not be closed:
- The output indicates it is a pip issue.
- The Travis config suggests Ubuntu 16.04 (Xenial) is supported.
from pymarket.
The docker i uploaded is running with an old version of pip (8) and it works flawlessly:
Python 3.6.8 (default, Oct 9 2019, 14:04:01)
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>
KeyboardInterrupt
>>>
root@bdf6686310c3:/# python3 -m pip --version
pip 8.1.1 from /usr/lib/python3/dist-packages (python 3.6)
If you want me too add a line that says that a recent pip is recommended, I'll do it. But it is a python's version problem.
from pymarket.
I just want instructions that anyone can follow and get up and running.
You need to add update pip instructions (see your .travis.yml file) if you want to say Ubuntu Xenial works out if the box.
It shouldn't be necessary to have docker or vagrant to get this running.
from pymarket.
Related Issues (12)
- Clarify statement of need and target audience HOT 3
- Error when generating uniform bidders HOT 2
- Blocking: Tested working install instructions. HOT 28
- List algorithms and their authors in JOSS paper. HOT 1
- Error when two bids submitted that cannot be settled HOT 1
- JOSS paper statement of need: Algorithms implemented HOT 1
- JOSS paper: Synchronize version numbers HOT 3
- Incomplete install instructions HOT 3
- Requirements specification incorrect: Matplotlib HOT 3
- Platforms (OS) tested and know to run on. HOT 7
- Repository description/website/topics. 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 pymarket.