whenever I try to read excel using
'part=pd.read_excel(path,sheet_name = mto_sheet)'
i get this exception: '<class 'Exception'> 'ReadOnlyWorksheet' object has no attribute 'defined_names''
this is if I use Visual Studio Code and python 3.11
however I don't have this problem when using anaconda...please let me know thanks
any reason for that?
The error seems to be caused by the latest version of openpyxl.
You can fix it by downgrading to a lower version
pip install --force-reinstall -v "openpyxl==3.1.0"
Related
I use Y Finance to download data
It was working fine, but is now producing this error message.
Can anyone shine some light on this?
enter image description here
AttributeError: 'Index' object has no attribute 'tz_localize'
I am not sure what the above error means, but all I have done to change things is to update Juypter via Conda and also used the command
"jupyter notebook --NotebookApp.iopub_data_rate_limit=1.0e10 "
as I was having issues installing fbprophets
Can anybody help?
Thanks
this appears to be an issue with the new version of pandas according to the YFinance github issue here. The way to currently get around this is by installing an older version of pandas like so pip install pandas==1.3.5
as title says, I type
qiskit.__qiskit_version__
and get the error AttributeError: module 'qiskit' has no attribute 'qiskit_version'.
I have Anaconda installed as well as pip installed qiskit and qiskit[visualization]. The jupyter notebook only works within my python file and not sure what else to do?
The issue was python was installed in 2 different locations. Had to delete both then reinstall!
My pandas version was 0.23.4 but as I needed to use the explode function, I upgraded using
!pip3 install --upgrade pandas==0.25.0
Output shows: Successfully installed pandas-0.25.0
But when I used the explode function, it throws an attribute error: 'DataFrame' object has no attribute 'explode'.
I checked my pandas version using pd.version and the output shows 0.23.4, not the newly updated version.
Please point me out where I did wrong and help me accordingly. Thanks!
I have been able to install pycrypto as follows, followed the given answer.
But when I debug the project, then getting the following issue which seems to be related Crypto.
ModuleNotFoundError: No module named 'winrandom'
aut\token.py line 3 is
from jose.jwt import get_unverified_claims
UPDATE:1
Then, I have run pip install winrandom and get the following error.
TypeError: '>=' not supported between instances of 'NoneType' and
'str'
UPDATE:2
When I rung the proposed command pip install --proxy http://XXXX:80 git+https://github.com/dlitz/pycrypto.git with proxy(required) in the working environment, then I get a connection refused error as follows.
It seems this is a common issue with pycrypto. This is a bug, but the project doesn't seem to be updated in the last couple years.
Digging over the issue, (https://github.com/andrewcooke/simple-crypt/issues/17)
It seems the poblem is solved by doing an edit to the import statement in crypto\Random\OSRNG\nt.py:
import winrandom
to
from . import winrandom
As Vinny mentioned, this issue is known and solved in Pycrypto, but PyPi still delivers an old release of Pycrytpto. You can instead install the latest release directly from the GitHub repository by using:
pip install git+https://github.com/dlitz/pycrypto.git
I installed BitTornado without root access by downloading the zip and running command 'pip install -e path/to/bittornado/'. The installation was successful but when I tried using it for downloading the file, the following error occurred --
AttributeError: 'module' object has no attribute 'MutableSet'.
The following screenshot has the details.
I'm new to Python. If someone know what's happening, please help. Thanks in advance.
BitTornado only supports python3 (and not python2.x). The specific error is due to a change in python3 which makes imports absolute by default (unless the relative import syntax is used) -- as such it is importing the BitTorando.Types.collections module for import collections.
I'd suggest making a python3 virtualenv and installing BitTornado there. (Or if you want a system-wide installation, use pip3 install ...)