I'm trying to distribute this code through git+pip . I was able to properly create the setup.py file for deployment but after installing the package with:
https://github.com/EKami/kaggle-data-downloader
Running this import gives me an error:
>>> from kaggle_data_downloader import KaggleDataDownloader
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/Ekami/Programs/anaconda/envs/tensorflow/lib/python3.6/site-packages/kaggle_data_downloader/KaggleDataDownloader.py", line 3, in <module>
import utils
ModuleNotFoundError: No module named 'utils'
But with:
>>> import kaggle_data_downloader.utils
It works. It seems KaggleDataDownloader cannot find kaggle_data_downloader.utils. I think I missed something in the setup.py file. Any idea?
Thanks.
I recently tried to install Pillow, for Python 3.5. From the command line, from PIL import Image works, but that does not work for IDLE. When I installed Pillow, it said that it was installed to C:\Users\arkj7\AppData\Local\Programs\Python\Python35-32\Lib\site-packages
When I try to import Image from Pillow, it says,
Traceback (most recent call last):
File "<pyshell#1>", line 1, in <module>
from PIL import Image
File "C:\Users\arkj7\AppData\Local\Programs\Python\Python35-32\Lib\site-packages\PIL\Image.py", line 67, in <module>
from PIL import _imaging as core
ImportError: cannot import name '_imaging'
but when I run import PIL it seems to work. I am running Windows 10.
Edit: No other modules work, they give similar error messages.
2nd Edit: This just keeps getting weirder, when I try to import PyEnchant, it works from the command line, but not IDLE. It gives me the error message:
Traceback (most recent call last):
File "<pyshell#2>", line 1, in <module>
import enchant
File "C:\Users\arkj7\AppData\Local\Programs\Python\Python35-32\Lib\site-packages\enchant\__init__.py", line 92, in <module>
from enchant import _enchant as _e
File "C:\Users\arkj7\AppData\Local\Programs\Python\Python35-32\Lib\site-packages\enchant\_enchant.py", line 102, in <module>
raise WinError()
OSError: [WinError 193] <no description>
However, modules like translate, work just fine.
Edit 3:
All modules except PIL, PyEnchant, and OpenCV work. OpenCV works from the command line, where I am running Python 3.5.2, but not from IDLE, where I am also running Python 3.5.2. I got OpenCV from here, and I used opencv_python-3.1.0-cp35-cp35m-win32.whl. I installed it using pip install opencv_python-3.1.0-cp35-cp35m-win32.whl, and I get this error message from IDLE:
>>> import cv2
Traceback (most recent call last):
File "<pyshell#0>", line 1, in <module>
import cv2
ImportError: No module named 'cv2'
Edit 4:
I installed PyOpenGL like this, pip install PyOpenGL PyOpenGL_accelerate. From the command prompt, some things work, and others don't, this is what I get:
>>> import OpenGL
>>> from OpenGLContext import testingcontext
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named 'OpenGLContext'
>>> from OpenGL.GL import *
This is what I get from IDLE:
>>> import OpenGL
>>> from OpenGLContext import testingcontext
Traceback (most recent call last):
File "<pyshell#1>", line 1, in <module>
from OpenGLContext import testingcontext
ImportError: No module named 'OpenGLContext'
>>> import OpenGLContext
Traceback (most recent call last):
File "<pyshell#2>", line 1, in <module>
import OpenGLContext
ImportError: No module named 'OpenGLContext'
>>> from OpenGL.GL import *
OpenGL_accelerate seems to be installed, but unable to import error checking entry point!
Unable to load ArrayDatatype accelerator from OpenGL_accelerate
Unable to load converters accelerators (wrapper, arraydatatype) from OpenGL_accelerate
Unable to load arrayhelpers accelerator from OpenGL_accelerate
OpenGL_accelerate seems to be installed, but unable to import expected wrapper entry points!
Unable to load VBO accelerator from OpenGL_accelerate
I can`t use the pyfcm module because of bellow error message.
How do I fix this error??
>>> from pyfcm import FCMNotification
Traceback (most recent call last):
File "<pyshell#0>", line 1, in <module>
from pyfcm import FCMNotification
File "C:\Anaconda3\lib\site-packages\pyfcm\__init__.py", line 6, in <module>
from .fcm import FCMNotification
File "C:\Anaconda3\lib\site-packages\pyfcm\fcm.py", line 1, in <module>
from baseapi import BaseAPI
ImportError: No module named 'baseapi'
If you are running Linux, try running this command in the shell: pip install baseapi.
If you are using an IDE, look for a prompt asking if you want to install this package.
I am running Python 3.4
Did pip install json2html with no errors.
However, when I execute "import json2html" I got:
>>> import json2html
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Python34\lib\site-packages\json2html-0.3-py3.4.egg\json2html\__init__.py", line 6, in <module>
ImportError: No module named 'jsonconv'
>>>
please help suggest..
It seems this library is not python3-compatible.
Error was caused by this line in the __init__.py file:
from jsonconv import *
While, instead, it should be:
from .jsonconv import *
Try this fork instead: https://github.com/YAmikep/json2html
I want to import stackauth but I'm not sure how to install it
>>> import stackauth
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named stackauth
In this case you can use easy_install, as specified by the instructions
easy_install py-stackexchange