When i do this:
import OpenGLContext
its importing, there is no problem. But when i write
from OpenGLContext import testingcontext
its giving an error:
Traceback (most recent call last):
File "<pyshell#0>", line 1, in <module>
from OpenGLContext import testingcontext
File "C:\Python34\lib\site-packages\OpenGLContext\testingcontext.py", line 10, in <module>
from OpenGLContext import plugins, context, contextdefinition
File "C:\Python34\lib\site-packages\OpenGLContext\context.py", line 33, in <module>
from OpenGLContext import texturecache,plugins
File "C:\Python34\lib\site-packages\OpenGLContext\texturecache.py", line 3, in <module>
from OpenGLContext import atlas
File "C:\Python34\lib\site-packages\OpenGLContext\atlas.py", line 4, in <module>
from OpenGLContext.arrays import zeros, array, dot, ArrayType
File "C:\Python34\lib\site-packages\OpenGLContext\arrays.py", line 2, in <module>
from vrml.arrays import *
ImportError: No module named 'vrml'
Whats wrong?
The vrml phython module is missing. So the first step would be installing that.
Related
I have been trying to use photoshop-python-api but I keep getting this error.
Traceback (most recent call last):
File "/Users/yash.sinha/PycharmProjects/PhotoshopPythonAPI/api.py", line 2, in <module>
import photoshop.api as ps
File "/Users/yash.sinha/PycharmProjects/PhotoshopPythonAPI/venv/lib/python3.8/site-packages/photoshop/__init__.py", line 1, in <module>
from photoshop.session import Session
File "/Users/yash.sinha/PycharmProjects/PhotoshopPythonAPI/venv/lib/python3.8/site-packages/photoshop/session.py", line 31, in <module>
from photoshop.api import (
File "/Users/yash.sinha/PycharmProjects/PhotoshopPythonAPI/venv/lib/python3.8/site-packages/photoshop/api/__init__.py", line 4, in <module>
from .action_descriptor import ActionDescriptor
File "/Users/yash.sinha/PycharmProjects/PhotoshopPythonAPI/venv/lib/python3.8/site-packages/photoshop/api/action_descriptor.py", line 12, in <module>
from ._core import Photoshop
File "/Users/yash.sinha/PycharmProjects/PhotoshopPythonAPI/venv/lib/python3.8/site-packages/photoshop/api/_core.py", line 6, in <module>
import winreg
ModuleNotFoundError: No module named 'winreg'
I did my research on winreg and I found out that it is a Windows Register. Am I getting this error because I am using a Mac? I have python 3.8.2 on my system.
Help.
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Users\user\AppData\Local\Programs\Python\Python37\lib\site-packages\ggtools\gg\__init__.py", line 116, in <module>
from .gsm_utils import print_gsm_date_coverage,gsm_download,read_gsm,gsm_average
File "C:\Users\user\AppData\Local\Programs\Python\Python37\lib\site-packages\ggtools\gg\gsm_utils.py", line 8, in <module>
from .utils import print_error_grace
File "C:\Users\user\AppData\Local\Programs\Python\Python37\lib\site-packages\ggtools\gg\utils.py", line 2, in <module>
from sphericalpolygon import create_polygon
File "C:\Users\user\AppData\Local\Programs\Python\Python37\lib\site-packages\sphericalpolygon\__init__.py", line 13, in <module>
from .create_polygon import create_polygon
File "C:\Users\user\AppData\Local\Programs\Python\Python37\lib\site-packages\sphericalpolygon\create_polygon.py", line 2, in <module>
from .polygonclasses.sphericalpolygon import Sphericalpolygon
File "C:\Users\user\AppData\Local\Programs\Python\Python37\lib\site-packages\sphericalpolygon\polygonclasses\sphericalpolygon.py", line 2, in <module>
from ..inside_polygon import inside_polygon
File "C:\Users\user\AppData\Local\Programs\Python\Python37\lib\site-packages\sphericalpolygon\inside_polygon.py", line 2, in <module>
from scipy.spatial.transform import Rotation
File "C:\Users\user\AppData\Local\Programs\Python\Python37\lib\site-packages\scipy\spatial\__init__.py", line 99, in <module>
from .qhull import *
ImportError: DLL load failed: The specified module could not be found.
In my case the issue was that the create_polygon function was replaced with 'from_array' and 'from_file' in version 1.2.1 of sphericalpolygon. Downgrading to version 1.2.0 solved the issue: pip install sphericalpolygon==1.2.0
When trying to run the following script:
import matplotlib as plt
plt.plot([1,2,3,4])
plt.ylabel('some numbers')
plt.show()
I exeperience the following error:
C:\Users\raja\PycharmProjects\Project_test\venv\Scripts\python.exe C:/Users/raja/.PyCharmCE2018.2/config/scratches/testing.py
Traceback (most recent call last):
File "C:/Users/raja/.PyCharmCE2018.2/config/scratches/testing.py", line 1, in <module>
import matplotlib as plt
File "C:\Users\raja\PycharmProjects\Project_test\venv\lib\site-packages\matplotlib\__init__.py", line 136, in <module>
import urllib.request
File "C:\Users\raja\AppData\Local\Programs\Python\Python37\lib\urllib\request.py", line 88, in <module>
import http.client
File "C:\Users\raja\AppData\Local\Programs\Python\Python37\lib\http\client.py", line 71, in <module>
import email.parser
File "C:\Users\raja\AppData\Local\Programs\Python\Python37\lib\email\parser.py", line 12, in <module>
from email.feedparser import FeedParser, BytesFeedParser
File "C:\Users\raja\AppData\Local\Programs\Python\Python37\lib\email\feedparser.py", line 27, in <module>
from email._policybase import compat32
File "C:\Users\raja\AppData\Local\Programs\Python\Python37\lib\email\_policybase.py", line 9, in <module>
from email.utils import _has_surrogates
File "C:\Users\raja\AppData\Local\Programs\Python\Python37\lib\email\utils.py", line 33, in <module>
from email._parseaddr import quote
File "C:\Users\raja\AppData\Local\Programs\Python\Python37\lib\email\_parseaddr.py", line 16, in <module>
import time, calendar
File "C:\Users\raja\.PyCharmCE2018.2\config\scratches\calendar.py", line 7, in <module>
import tkcalendar
ModuleNotFoundError: No module named 'tkcalendar'
Why? Does anybody know how to solve this issue?
I have fixed it. there was a different python program I named it as Calendar.py :(. I have deleted that file from "config/scratches/" and it has fixed the issue.
Also I have deleted the two versions of Tkcalendar installed
Getting import Error while importing sklearn , the only Error code what it says is libquadmath.so.0 which i'm unale to see on the pkg path but same module works fine in 3.6.1.
>>> import sklearn
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/python3/lib/python3.5/site-packages/sklearn/__init__.py", line 57, in <module>
from .base import clone
File "/python3/lib/python3.5/site-packages/sklearn/base.py", line 11, in <module>
from .utils.fixes import signature
File "/python3/lib/python3.5/site-packages/sklearn/utils/__init__.py", line 11, in <module>
from .validation import (as_float_array,
File "/python3/lib/python3.5/site-packages/sklearn/utils/validation.py", line 16, in <module>
from ..utils.fixes import signature
File "/python3/lib/python3.5/site-packages/sklearn/utils/fixes.py", line 324, in <module>
from scipy.sparse.linalg import lsqr as sparse_lsqr
File "/python3/lib/python3.5/site-packages/scipy-0.18.0rc2-py3.5-linux-x86_64.egg/scipy/sparse/linalg/__init__.py", line 112, in <module>
from .isolve import *
File "/python3/lib/python3.5/site-packages/scipy-0.18.0rc2-py3.5-linux-x86_64.egg/scipy/sparse/linalg/isolve/__init__.py", line 6, in <module>
from .iterative import *
File "/python3/lib/python3.5/site-packages/scipy-0.18.0rc2-py3.5-linux-x86_64.egg/scipy/sparse/linalg/isolve/iterative.py", line 7, in <module>
from . import _iterative
ImportError: libquadmath.so.0: cannot open shared object file: No such file or directory
When I run the line from skimage import io I get the following:
Traceback (most recent call last):
File "C:\Users\Dilshad\Desktop\project_7-8-2015\8_bands\Program_camera.py", line 16, in <module>
from Functions_8bands import *
File "C:\Users\Dilshad\Desktop\project_7-8-2015\8_bands\Functions_8bands.py", line 5, in <module>
from skimage import io
File "C:\Users\Dilshad\AppData\Local\Programs\Python\Python35\lib\site-packages\skimage\io\__init__.py", line 11, in <module>
from ._io import *
File "C:\Users\Dilshad\AppData\Local\Programs\Python\Python35\lib\site-packages\skimage\io\_io.py", line 8, in <module>
from ..color import rgb2grey
File "C:\Users\Dilshad\AppData\Local\Programs\Python\Python35\lib\site-packages\skimage\color\__init__.py", line 1, in <module>
from .colorconv import (convert_colorspace,
File "C:\Users\Dilshad\AppData\Local\Programs\Python\Python35\lib\site-packages\skimage\color\colorconv.py", line 58, in <module>
from scipy import linalg
File "C:\Users\Dilshad\AppData\Local\Programs\Python\Python35\lib\site-packages\scipy\linalg\__init__.py", line 172, in <module>
from .misc import *
File "C:\Users\Dilshad\AppData\Local\Programs\Python\Python35\lib\site-packages\scipy\linalg\misc.py", line 5, in <module>
from .blas import get_blas_funcs
File "C:\Users\Dilshad\AppData\Local\Programs\Python\Python35\lib\site-packages\scipy\linalg\blas.py", line 155, in <module>
from scipy.linalg import _fblas
ImportError: DLL load failed: The specified module could not be found.
I've searched through the site-package file and I see that io exists so I'm not really sure whats's missing.
Not sure why it worked but installing numpy +mkl instead of numpy vanilla from the unofficial binary site on UCI got around this for me.