Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong requirement versions #57

Open
daaaarcy opened this issue Apr 5, 2016 · 22 comments
Open

Wrong requirement versions #57

daaaarcy opened this issue Apr 5, 2016 · 22 comments
Labels

Comments

@daaaarcy
Copy link

daaaarcy commented Apr 5, 2016

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.

@Snipa22
Copy link
Collaborator

Snipa22 commented Apr 5, 2016

The requirement versions are running properly on test/development boxes. Are you running in a clean virtualenv with no site-packages enabled?

@daaaarcy
Copy link
Author

daaaarcy commented Apr 5, 2016

I have site-packages and it failed on my mac.

@daaaarcy daaaarcy closed this as completed Apr 5, 2016
@daaaarcy daaaarcy reopened this Apr 5, 2016
@Snipa22
Copy link
Collaborator

Snipa22 commented Apr 5, 2016

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.

@daaaarcy
Copy link
Author

daaaarcy commented Apr 5, 2016

PR #58

@daaaarcy
Copy link
Author

daaaarcy commented Apr 5, 2016

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?

@Snipa22
Copy link
Collaborator

Snipa22 commented Apr 5, 2016

@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.

@daaaarcy
Copy link
Author

daaaarcy commented Apr 5, 2016

@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.

@owocki
Copy link
Owner

owocki commented Apr 6, 2016

Let us know where you land darcy. need to decide what to do with #58

@owocki owocki added the bug label Apr 6, 2016
@daaaarcy
Copy link
Author

daaaarcy commented Apr 7, 2016

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

@daaaarcy
Copy link
Author

daaaarcy commented Apr 7, 2016

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.

@owocki
Copy link
Owner

owocki commented Apr 11, 2016

Strangely enough, I am on a mac also, but seem to be fine with numpy==1.8.0rc1.

@owocki
Copy link
Owner

owocki commented Apr 11, 2016

Is anyone else having issues on this?

Repository owner deleted a comment from gitcoinbot Apr 23, 2018
Repository owner deleted a comment from gitcoinbot Apr 23, 2018
Repository owner deleted a comment from gitcoinbot Apr 23, 2018
Repository owner deleted a comment from gitcoinbot Apr 23, 2018
Repository owner deleted a comment from gitcoinbot Apr 23, 2018
Repository owner deleted a comment from gitcoinbot Apr 30, 2018
@darkdarkdragon
Copy link

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.

@darkdarkdragon
Copy link

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.

@darkdarkdragon
Copy link

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.

@darkdarkdragon
Copy link

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.

@darkdarkdragon
Copy link

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.

@darkdarkdragon
Copy link

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.

@darkdarkdragon
Copy link

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.

@darkdarkdragon
Copy link

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.

@darkdarkdragon
Copy link

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.

@darkdarkdragon
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants