I get the following error when starting Graphite-web using DJango.
0.9.15 works ok, but I am looking to use the new "mapSeries" function available in 0.10.x
Seems to be a missing import -
Exception occurred processing WSGI script '/opt/graphite/conf/graphite.wsgi'.
Traceback (most recent call last):
File "/opt/graphite/conf/graphite.wsgi", line 46, in <module>
import graphite.metrics.search # noqa
File "/opt/graphite/webapp/graphite/metrics/search.py", line 6, in <module>
from graphite.storage import is_pattern, match_entries
ImportError: cannot import name match_entries
I'm not a python programer, but maybe the package is missing in the setup.py?
https://github.com/graphite-project/graphite-web/blob/master/setup.py
I solved the issue by updating /opt/graphite/conf/graphite.wsgi to the latest example version.
The 0.9.x version is not compatible with 0.10.x
Related
Using anaconda, I had installed python 2.7 and tensorflow 1.0.0 to run the package called DeepNovo.
Then I got following error when I tried to run this python script:
Traceback (most recent call last):
File "deepnovo_main.py", line 15, in module import deepnovo_model
File "/Data2/HJE/DeepNovo/deepnovo_model.py", line 43, in <module>
from tensorflow.python.ops import rnn_cell_impl
ImportError: cannot import name rnn_cell_impl
Anyone any ideas?
You want to include a package. That package already required other package. package name is rnn_cell_impl. Make sure path is correct. You can read python modules packages
Guys I'm facing a problem on using this module which i install from pip currently my OS is Windows python36 64bit version is install. When i'm using and try to import this module
from drawtree import draw_level_order
draw_level_order('{3,9,20,#,#,15,7}')
Why python giving strange errors like this
Traceback (most recent call last):
File "C:/Users/Root/PycharmProjects/untitled/src/Test.py", line 1, in <module>
from drawtree import draw_level_order
File "C:\Python36-64\lib\site-packages\drawtree\__init__.py", line 7, in <module>
from drawtree import draw_bst, draw_random_bst, draw_level_order
ImportError: cannot import name 'draw_bst'
The version of drawtree on PyPI is not currently compatible with Python 3. There's a Python 3-compatible version on Github, if you really want to use drawtree on Python 3.
I'm having issues running ortools on Linux. I downloaded it from google's site (https://developers.google.com/optimization/) and installed it using "make install," but when I go to use it in python I get the following:
Traceback (most recent call last):
File "regular.py", line 42, in <module>
from ortools.constraint_solver import pywrapcp
File "/home/m3/summer/ortools_examples/examples/python/ortools.py", line 2, in <module>
ImportError: No module named linear_solver
It looks like despite installing ortools, its still not in my python path correctly, so when I call it in the file, it doesn't find anything and returns an error, right? Any advice on how to solve this?
I wanted to installed logilab-common 0.61.0 on to my computer I am a windows user and my python version i 27. Whenever I import the module it throws me the error
Traceback (most recent call last):
File "<pyshell#0>", line 1, in <module>
import logilab
File "logilab\__init__.py", line 28, in <module>
from logilab.common.__pkginfo__ import version as __version__
ImportError: No module named common.__pkginfo__
However I checked this file exists. Also when I try to call Pylint (the reason I installed logilab) from command line it throws import error
Loaded Module logilab not not found in sys.modules
I also tried to reinstall logilab and logilab astng. I do not If its a compatibility issue perhaps?
You probably have two distinct installation of the logilab package, one for logilab-common and the other for logilab-astng. Take a look at:
import logilab
print logilab.__path__
You should fix things (adjust PYTHONPATH?) so that you get the directory containing the common subdirectory there.
Also notice that for recent version of pylint (>= 1.0), logilab-astng has been replaced by astroid.
So these are my website informations:
framework : Django
hosting : alwaysdata
python : 2.7
virtualenv is used
The problem :
I have the non explicit 500 error :Internal Server Error
I have not any error log
But :
I found a trail to solve this issue. Indeed when i run manually the django.fcgi, i got this traceback:
Traceback (most recent call last):
File "public/django.fcgi", line 14, in
from django.core.servers.fastcgi import runfastcgi
File "/home/usr/.virtualenvs/thevirtualenv/lib/python2.7/site-packages/django/core/servers/fastcgi.py", line 17, in
from django.utils import importlib
File "/home/usr/.virtualenvs/thevirtualenv/lib/python2.7/site-packages/django/utils/importlib.py", line 4, in
from django.utils import six
File "/home/usr/.virtualenvs/thevirtualenv/lib/python2.7/site-packages/django/utils/six.py", line 23, in
import operator
ImportError: No module named operator
Manipulation(s) which could occur this issue :
I had this issue for 3 week ago, i let it rest too long, so now i can't remember what i have done to bring about this.. But i think it was a dirty virtualenv creation or edition, something like that..
Thanks to bear with my english.
Does anyone have an Idea about my case?
Attempts to solve this issue:
I just tried to recreate my virtualenv and got this error message :
Traceback (most recent call last):
File "/home/usr/python/python27/bin/virtualenv", line 5, in
from pkg_resources import load_entry_point
zipimport.ZipImportError: can't decompress data; zlib not available
Since the operator module is part of the standard library, it looks like you have a corrupt Python installation in your virtualenv. The best thing to do would be to simply delete and recreate your virtualenv.