I tried to launch first commands of eppy package but I received strange errors:
from eppy import modeleditor
Traceback (most recent call last):
File "<pyshell#0>", line 1, in <module>
from eppy import modeleditor
File "C:\Users\...\AppData\Local\Programs\Python\Python310\lib\site-packages\eppy\modeleditor.py", line 26, in <module>
from eppy.idfreader import idfreader1
File "C:\Users\...\AppData\Local\Programs\Python\Python310\lib\site-packages\eppy\idfreader.py", line 24, in <module>
from eppy.idf_msequence import Idf_MSequence
File "C:\Users\...\AppData\Local\Programs\Python\Python310\lib\site-packages\eppy\idf_msequence.py", line 27, in <module>
class Idf_MSequence(collections.MutableSequence):
AttributeError: module 'collections' has no attribute 'MutableSequence'
I noticed that maybe there are some missing files but I'm not sure. I compared my files with GitHub folder:
Screeshot:
The folder resources is missing...
I don't know if this is the problem.
I installed eppy package simply with the command: pip install eppy
Can you help me?
Thank you very much :-)
Sorry I found the issue.
The problem appears only with Python 3.10, with Python 3.9 disappears.
I don't know why...
Regarding the folder "resources" you have to download it from GitHub, because the installation with pip doesn't download it.
Related
I recently tried to setup https://github.com/NVIDIA/FastPhotoStyle/ locally (issues with Docker that I've been waiting for stability prevented that). After installation, my DNF has started throwing errors due to a missing librepo module.
I'm using Fedora 27.
I've gathered that it has changed how Python loads it's modules (possibly due to Conda, I'm not 100% sure), but I'm struggling to get it working again.
I've tried to install the following packages:
http://fedora.is.co.za/linux/releases/27/Everything/x86_64/os/Packages/p/python3-librepo-1.8.0-1.fc27.x86_64.rpm
http://fedora.is.co.za/linux/releases/27/Everything/x86_64/os/Packages/p/python2-librepo-1.8.0-1.fc27.x86_64.rpm
but to no avail.
I've tried to locate the librepo packages in the pip or conda repositories, again to no avail.
Any command with DNF outputs the following:
Traceback (most recent call last):
File "/usr/bin/dnf", line 57, in <module>
from dnf.cli import main
File "/usr/lib/python3.6/site-packages/dnf/__init__.py", line 31, in <module>
import dnf.base
File "/usr/lib/python3.6/site-packages/dnf/base.py", line 26, in <module>
from dnf.comps import CompsQuery
File "/usr/lib/python3.6/site-packages/dnf/comps.py", line 29, in <module>
import dnf.util
File "/usr/lib/python3.6/site-packages/dnf/util.py", line 32, in <module>
import librepo
ModuleNotFoundError: No module named 'librepo'
I'd appreciate any help or insight as I've been googling a fair bit, but have yet to come to a solution
Im trying to upload pictures from my RPi3 to Azure blob storage. Im using raspbian and python moduls as described below.
setup a virtual environment 'azure' using virtualwrapper.
Installed azure-storage like here: https://github.com/Azure/azure-storage-python
My problem is that what ever I do I keep getting the following error
>>> from azure.storage import BlobService
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/pi/.virtualenvs/azure/lib/python2.7/site-packages/azure_storage-0.33.0-py2.7.egg/azure/storage/__init__.py", line 21, in <module>
from .models import (
File "/home/pi/.virtualenvs/azure/lib/python2.7/site-packages/azure_storage-0.33.0-py2.7.egg/azure/storage/models.py", line 27, in <module>
from cryptography.hazmat.primitives.keywrap import(
ImportError: No module named cryptography.hazmat.primitives.keywrap
I've tried pip install cryptography and https://pypi.python.org/pypi/azure-storage, but that didn't change anything. I keep getting the same error ImportError: No module named cryptography.hazmat.primitives.keywrap. I even tried just to import azure.storage but that throws the same error.
If anyone could shed some light on how to get azure-storage-blob to work on Raspbian I would be very grateful.
Thank you in advance.
You can try to stick to azure-storage 0.32.0 to avoid using cryptography if you don't need the new features of 0.33.0. There is some difficulties to get cryptography working on some system (https://github.com/Azure/azure-storage-python/issues/219)
I have tried all the import methods and upgrading the libraries but still I'm unable to get over this error. I have downloaded and installed all the nltk and corpus data programmatically and it is working in the python shell but i'm getting error.
Traceback (most recent call last):
File "spark.py", line 7, in <module>
from textblob_aptagger import PerceptronTagger
File "/usr/local/lib/python2.7/dist-packages/textblob_aptagger/__init__.py", line 8, in <module>
from textblob_aptagger.taggers import PerceptronTagger
File "/usr/local/lib/python2.7/dist-packages/textblob_aptagger/taggers.py", line 10, in <module>
from textblob.packages import nltk
ImportError: No module named packages
Here's a pastebin to my code and imports..
Same error has been posted on github here. Use this instead to install textblob:
$ pip install -U git+https://github.com/sloria/textblob-aptagger.git#dev
Also, you should change from text.blob import TextBlob as tbto from textblob...
Works for me..
My issue is possibly similar to link
but thought I'd ask jic. I'm on osx and trying to use jedi-vim. I installed jedi using pip and then jedi-vim by cloning into the dir that my vim config uses for loading packages. this one for reference. When I start vim with a python program I get the "Please install Jedi if..." message. I cloned vim 74 and configured with +python and +conceal. After still getting the error I looked into the code and found it was an import error.
As an aside, this isn't the best help message. Better might be "Unable to import jedi. Have you installed Jedi?"
I tried import jedi from within vim, as :python import jedi
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/usr/local/lib/python2.7/site-packages/jedi-0.9.0- py2.7.egg/jedi/__init__.py", line 41, in <module>
from jedi.api import Script, Interpreter, NotFoundError, set_debug_function
File "/usr/local/lib/python2.7/site-packages/jedi-0.9.0 py2.7.egg/jedi/api/__init__.py", line 16, in <module>
from jedi.parser import Parser, load_grammar
File "/usr/local/lib/python2.7/site-packages/jedi-0.9.0-py2.7.egg/jedi/parser/__init__.py", line 21, in <module>
from jedi.parser import tree as pt
ImportError: cannot import name tree
If this is a build issue, is there a good reference for building vim on mac?
hope somebody helps me to install wxPython.
I have ubuntu 11.10 and there is no build package for it.
I used this page ( http://wxpython.org/BUILD.html ) as guidance to install
after installing, I run
>python
>>>import wx
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "wx/__init__.py", line 45, in <module>
from wx._core import *
File "wx/_core.py", line 4, in <module>
import _core_
ImportError: libwx_gtk2u_adv-2.9.so.3: cannot open shared object file: No such file or directory
What should do to fix it?
thank you!
Follow the instructions for installing on Ubuntu or Debian.
EDIT: Actually, you don't even need to do that, since it's in the main repos:
sudo aptitude install python-wxgtk2.8