I'm trying to make SPI GUI.
I'm trying to use sample code in Adafruit(ft232h) but i can't run the project
Error:
Traceback (most recent call last):
File "C:/Users/Kailey/untitled/test1.py", line 1, in <module>
import Adafruit_GPIO.FT232H as FT232H
File "C:\Users\Kailey\test1\lib\site-packages\Adafruit_GPIO\FT232H.py", line 30, in <module>
import ftdi1 as ftdi
ImportError: No module named ftdi1
How can i solve this problem?
Related
I have installed TensorBoard. Before launching, I have also written the code in my neural network training file.
sess = tf.Session()
writer = tf.summary.FileWriter("demo")
writer.add_graph(sess.graph)
When i try to launch TensorBoard from terminal, using this command tensorboard --logdir=logs/
I get this error.
Traceback (most recent call last):
File "/usr/local/bin/tensorboard", line 7, in <module>
from tensorboard.main import run_main
File "/usr/local/lib/python3.4/dist-packages/tensorboard/main.py", line 40, in <module>
from tensorboard import default
File "/usr/local/lib/python3.4/dist-packages/tensorboard/default.py", line 37, in <module>
from tensorboard.plugins.audio import audio_plugin
File "/usr/local/lib/python3.4/dist-packages/tensorboard/plugins/audio/audio_plugin.py", line 30, in <module>
from tensorboard.plugins.audio import metadata
File "/usr/local/lib/python3.4/dist-packages/tensorboard/plugins/audio/metadata.py", line 22, in <module>
from tensorboard.plugins.audio import plugin_data_pb2
File "/usr/local/lib/python3.4/dist-packages/tensorboard/plugins/audio/plugin_data_pb2.py", line 22, in <module>
serialized_pb=_b('\n+tensorboard/plugins/audio/plugin_data.proto\x12\x0btensorboard\"}\n\x0f\x41udioPluginData\x12\x0f\n\x07version\x18\x01 \x01(\x05\x12\x37\n\x08\x65ncoding\x18\x02 \x01(\x0e\x32%.tensorboard.AudioPluginData.Encoding\" \n\x08\x45ncoding\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x07\n\x03WAV\x10\x0b\x62\x06proto3')
TypeError: __new__() got an unexpected keyword argument 'serialized_options'
Is there a problem in my audio plugin or in the installation? I am using Ubuntu 14.04. I am a beginner, pardon if i have overlooked anything basic.
This happened to me on windows. I removed protobuf and libprotobuf and then reinstalled tensorboard, and it worked!
Not sure why, but while trying to find a solution like you it seemed like protobuf caused such issues in other libraries so I tried
from sklearn import datasets
digits = datasets.load_digits()
print(digits)
This is the error I get when using sklearn. However, I have the module installed and updated. Is there an easy way to reinstall the module via terminal? Is there another mistake I didn't notice (ex: importing the wrong module)?
Traceback (most recent call last):
File "/Users/patrickmaynard/scikitLearn/driver/driver.py", line 11, in <module>
from sklearn import datasets
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/sklearn/__init__.py", line 57, in <module>
from .base import clone
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/sklearn/base.py", line 10, in <module>
from scipy import sparse
ImportError: No module named scipy
Credit goes to Evert
Even if the sklearn module is fully installed, it will not work unless the scipy module is also installed.
My problem is similar to this post:
"No module named email.utils" in smtplib with gui2exe
but it comes along with a GUI
I did not used any email.py in all of my module
The program processes all information and broadcast it through email in a schedule..
But it also needs a GUI to prompt information to a certain user that is are the information being broadcast
Traceback (most recent call last):
File "main.py", line 10, in <module>
File "mainwindow.pyc", line 17, in <module>
File "mysendMail.pyc", line 2, in <module>
File "smtplib.pyc", line 46, in <module>
ImportError: No module named email.utils
I have finally solve this problem.
I just added the smtplib and email python modules upon creation of the executable application
see picture
Out of nowhere I was trying to run a script I'd run hundreds of times that included the module beatbox. When I ran it I got this error:
import beatbox
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
zipimport.ZipImportError: can't decompress data; zlib not available
I tried restarting, no luck. Then tried importing some basic libraries
import datetime
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named datetime
Then things started getting weirder
from bs4 import beautifulsoup
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/bs4/__init__.py", line 30, in <module>
from .builder import builder_registry, ParserRejectedMarkup
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/bs4/builder/__init__.py", line 1, in <module>
from collections import defaultdict
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/collections.py", line 8, in <module>
from _collections import deque, defaultdict
ImportError: No module named _collections
I have no clue what's going on, haven't done anything significant lately.
Any ideas?
Wow, scary stuff.
The solution to this was from wim above.
I downloaded the latest version of python and installed it. Everything is working normally now. I have no clue what happened but we're all good
I installed ATpy-0.9.7 on my pc successfully and I also have the Python version of "2.7.5".
But when I import atpy I get the following error message:
>>> import atpy
ERROR: ImportError: No module named _sqlite3 [unknown]
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "atpy/__init__.py", line 1, in <module>
from .basetable import Table, TableSet, VectorException
File "atpy/basetable.py", line 15, in <module>
from . import registry
File "atpy/registry.py", line 186, in <module>
from . import sqltable
File "atpy/sqltable.py", line 10, in <module>
from . import sqlhelper as sql
File "atpy/sqlhelper.py", line 11, in <module>
import sqlite3
File "/export/aibn84_2/zahra/lib/Python-2.7.5/lib/python2.7/sqlite3/__init__.py", line 24, in <module>
from dbapi2 import *
File "/export/aibn84_2/zahra/lib/Python-2.7.5/lib/python2.7/sqlite3/dbapi2.py", line 27, in <module>
from _sqlite3 import *
ImportError: No module named _sqlite3
I also installed db_sqlite3.egg-info. I don't know why this error message occurs!
I installed again th python2.7.5 with the following command :
./configure --prefix=$PYTHONPATH
but I also get this error after executing make:
Python build finished, but the necessary bits to build these modules were not found:
_bsddb _sqlite3 bsddb185
dbm dl gdbm
imageop sunaudiodev
To find the necessary bits, look in setup.py in detect_modules() for the module's name.
How could I run configure in order to install required C libraries?
If you are using a self built version of Python you need to ensure that both the base and the development sqllite3 packages are installed on your system before building Python.
If they are not and, as you said, you do not have superuser privileges, you can download and build sqlite locally, and get your Python build to use that version. This blog post describes how.
According to this question
How can I install sqlite3 to Python?
...you shouldn't have to install anything to get sqlite3 for python. Before I could import atpy I did have to install astropy (which was quite involved). After I did that, everything worked.