Wrong requirement versions
numpy fixed 1.7.1 causes: RuntimeError: module compiled against API version 9 but this version of numpy is 7
Using django-chartit causes: 'chartit' is not a valid tag library: ImportError raised loading chartit.templatetags.chartit: cannot import name simplejson. This is a known issue of django-chartit, which has been updated for 1.5 year.
The requirement versions are running properly on test/development boxes. Are you running in a clean virtualenv with no site-packages enabled?
I have site-packages and it failed on my mac.
Thanks for the additional information, to confirm, your virtualenv is clean and not using the system-wide site packages? OSX tends to be a bit weirder with the way it handles packages, so ensuring that your local virtualenv is clean is the best option usually.
PR #58
Hi @Snipa22 , I'm not using vitualenv, so i guess there's a chance i'm using system-wide site packages. What's the best approach?
@daaaarcy You'll want to get your virtualenv package, if you've got pip available, do pip install virtualenv, then you can generate a new virtualenv.
A quick guide appears to be available at: https://hackercodex.com/guide/python-development-environment-on-mac-osx/ for usage of virtualenvs on OSX.
I'm unsure if your system will have all of the requirements for numpy/scipy/etc as they tend to require a number of system packages for C extensions, and I'm not sure how you'd aquire them for OSX. Unfortunately, I don't have an OSX based machine available to provide information on the best way to build the app on OSX at this time. You may want to consider developing/running in a docker container, as this will also allow you to cleanly run postgres/etc.
@Snipa22 I'll give it a go. Thanks. Also maybe it's good to mention virtualenv in readme? I'm not sure if all of us are aware of it.
Let us know where you land darcy. need to decide what to do with https://github.com/owocki/pytrader/pull/58
Still getting the same error about numpy using virtualenv:
RuntimeError: module compiled against API version 9 but this version of numpy is 7 Traceback (most recent call last): File "manage.py", line 10, in
execute_from_command_line(sys.argv) File "/Users/darcy/Virtualenvs/pytrader/lib/python2.7/site-packages/django/core/management/init.py", line 338, in execute_from_command_line utility.execute() File "/Users/darcy/Virtualenvs/pytrader/lib/python2.7/site-packages/django/core/management/init.py", line 312, in execute django.setup() File "/Users/darcy/Virtualenvs/pytrader/lib/python2.7/site-packages/django/init.py", line 18, in setup apps.populate(settings.INSTALLED_APPS) File "/Users/darcy/Virtualenvs/pytrader/lib/python2.7/site-packages/django/apps/registry.py", line 108, in populate app_config.import_models(all_models) File "/Users/darcy/Virtualenvs/pytrader/lib/python2.7/site-packages/django/apps/config.py", line 198, in import_models self.models_module = import_module(models_module_name) File "/usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/python2.7/importlib/init.py", line 37, in import_module import(name) File "/Users/darcy/Projects/pytrader/history/models.py", line 4, in from pybrain.datasets import SupervisedDataSet File "/Users/darcy/Virtualenvs/pytrader/lib/python2.7/site-packages/pybrain/init.py", line 1, in from structure.init import * File "/Users/darcy/Virtualenvs/pytrader/lib/python2.7/site-packages/pybrain/structure/init.py", line 2, in from modules.init import * File "/Users/darcy/Virtualenvs/pytrader/lib/python2.7/site-packages/pybrain/structure/modules/init.py", line 2, in from gate import GateLayer, DoubleGateLayer, MultiplicationLayer, SwitchLayer File "/Users/darcy/Virtualenvs/pytrader/lib/python2.7/site-packages/pybrain/structure/modules/gate.py", line 11, in from pybrain.tools.functions import sigmoid, sigmoidPrime File "/Users/darcy/Virtualenvs/pytrader/lib/python2.7/site-packages/pybrain/tools/functions.py", line 4, in from scipy.linalg import inv, det, svd File "/Users/darcy/Virtualenvs/pytrader/lib/python2.7/site-packages/scipy/linalg/init.py", line 157, in from .misc import * File "/Users/darcy/Virtualenvs/pytrader/lib/python2.7/site-packages/scipy/linalg/misc.py", line 5, in from . import blas File "/Users/darcy/Virtualenvs/pytrader/lib/python2.7/site-packages/scipy/linalg/blas.py", line 131, in from scipy.linalg import _fblas ImportError: numpy.core.multiarray failed to import
I also need to add "pytz" to the requirements file and use django_chartit2 in order to run the project. Maybe it's because of Mac.
Strangely enough, I am on a mac also, but seem to be fine with numpy==1.8.0rc1.
Is anyone else having issues on this?
Issue Status: 1. Open 2. Started 3. Submitted 4. Done
This issue now has a funding of 0.1 ETH (69.21 USD @ $692.1/ETH) attached to it.
- If you would like to work on this issue you can 'start work' on the Gitcoin Issue Details page.
- Questions? Checkout Gitcoin Help or the Gitcoin Slack
- $0 more funded OSS Work available on the Gitcoin Issue Explorer
Issue Status: 1. Open 2. Started 3. Submitted 4. Done
This issue now has a funding of 0.1 ETH (69.21 USD @ $692.1/ETH) attached to it.
- If you would like to work on this issue you can 'start work' on the Gitcoin Issue Details page.
- Questions? Checkout Gitcoin Help or the Gitcoin Slack
- $0 more funded OSS Work available on the Gitcoin Issue Explorer
Issue Status: 1. Open 2. Started 3. Submitted 4. Done
This issue now has a funding of 0.1 ETH (69.21 USD @ $692.1/ETH) attached to it.
- If you would like to work on this issue you can 'start work' on the Gitcoin Issue Details page.
- Questions? Checkout Gitcoin Help or the Gitcoin Slack
- $0 more funded OSS Work available on the Gitcoin Issue Explorer
Issue Status: 1. Open 2. Started 3. Submitted 4. Done
This issue now has a funding of 0.2 ETH (138.42 USD @ $692.1/ETH) attached to it.
- If you would like to work on this issue you can 'start work' on the Gitcoin Issue Details page.
- Questions? Checkout Gitcoin Help or the Gitcoin Slack
- $0 more funded OSS Work available on the Gitcoin Issue Explorer
Issue Status: 1. Open 2. Started 3. Submitted 4. Done
This issue now has a funding of 0.1 ETH (69.21 USD @ $692.1/ETH) attached to it.
- If you would like to work on this issue you can 'start work' on the Gitcoin Issue Details page.
- Questions? Checkout Gitcoin Help or the Gitcoin Slack
- $0 more funded OSS Work available on the Gitcoin Issue Explorer
Issue Status: 1. Open 2. Started 3. Submitted 4. Done
This issue now has a funding of 0.1 ETH (69.21 USD @ $692.1/ETH) attached to it.
- If you would like to work on this issue you can 'start work' on the Gitcoin Issue Details page.
- Questions? Checkout Gitcoin Help or the Gitcoin Slack
- $0 more funded OSS Work available on the Gitcoin Issue Explorer
Issue Status: 1. Open 2. Started 3. Submitted 4. Done
This issue now has a funding of 0.1 ETH (69.21 USD @ $692.1/ETH) attached to it.
- If you would like to work on this issue you can 'start work' on the Gitcoin Issue Details page.
- Questions? Checkout Gitcoin Help or the Gitcoin Slack
- $0 more funded OSS Work available on the Gitcoin Issue Explorer
Issue Status: 1. Open 2. Started 3. Submitted 4. Done
This issue now has a funding of 0.1 ETH (69.21 USD @ $692.1/ETH) attached to it.
- If you would like to work on this issue you can 'start work' on the Gitcoin Issue Details page.
- Questions? Checkout Gitcoin Help or the Gitcoin Slack
- $0 more funded OSS Work available on the Gitcoin Issue Explorer
Issue Status: 1. Open 2. Started 3. Submitted 4. Done
This issue now has a funding of 0.1 ETH (69.21 USD @ $692.1/ETH) attached to it.
- If you would like to work on this issue you can 'start work' on the Gitcoin Issue Details page.
- Questions? Checkout Gitcoin Help or the Gitcoin Slack
- $0 more funded OSS Work available on the Gitcoin Issue Explorer
Issue Status: 1. Open 2. Started 3. Submitted 4. Done
This issue now has a funding of 0.1 ETH (69.21 USD @ $692.1/ETH) attached to it.
- If you would like to work on this issue you can 'start work' on the Gitcoin Issue Details page.
- Questions? Checkout Gitcoin Help or the Gitcoin Slack
- $0 more funded OSS Work available on the Gitcoin Issue Explorer