Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4906

Python • Re: Installation of pyexcel

$
0
0
Thanks for your response. First of all short description of my project. It involves many system libraries as wel as third party libraries (more then 10000 lines of code).
Testing everything showed me few things. I can import system libraries and also third party libraries as well except PyQt5 (which was installed directly), serial and RPI.GPIO (which both are part of OS) so far. Maybe later something else will also pop up...
So, I put together small test script, which directly shows an issue.

test.py

Code:

#import RPi.GPIO as GPIOfrom subprocess import callimport sysimport osfrom datetime import datetime, timedelta #import serialimport arrayimport structfrom time import sleepfrom ctypes import *#from PyQt5 import QtCore, QtGui, QtWidgets#from PyQt5.QtWidgets import QMainWindow, QApplication#from PyQt5.QtCore import QTimer#from PyQt5.QtGui import QPixmapimport timeimport mathimport psutilimport structimport binasciiimport enumfrom typing import Any, Dict, List, Optional, Type, Union#import pyqtgraph as pgimport numpy#from pyqtgraph import AxisItemfrom datetime import datetime, timedeltafrom time import mktimeimport datetime as dtimport pyexcel as peimport xlwtimport xlrdfrom xlrd import open_workbookfrom xlutils.copy import copy
You ca run it like this (everything commnted out gives an error)

Code:

(env) vlado@raspberry:~/project $ python test.py

Statistics: Posted by California — Sun Jan 28, 2024 8:45 am



Viewing all articles
Browse latest Browse all 4906

Trending Articles