I'm trying to install CentOS 7 on virtual box but I faced this issue
after I Select the language it shows an error as the following
anaconda 21.48.22.93-1 exception report raceback (most recent call first): File H/usr/lib64/python2.7/site-packages/pyanaconda/packaging/yumpayload.py", line 1193, ir
raise NoSuchGroup(groupid, required=required) File H/usr/lib64/python2.7/site-packages/pyanaconda/packaging/yumpayload.py", line 1306, ir self._selectYumGroup(°core")
this message is not the full message I used the OCR to extract the text from image because I cant copy the text from VBox you can view the next image to see
Related
everytime i build my app using pyinstaller, i had already put an icon in my python version except that when i run the .exe version i get this message :
Traceback (most recent call last):
File "main.py", line 174, in
File "tkinter_init_.py", line 2136, in wm_iconbitmap
_tkinter.TclError: bitmap "C:\Users\rayan\PycharmProjects\pythonProject\dist\main\dna.ico" not defined
i tried to import the icon using --icon=dna.ico but still nothing
any help please ?
I'm currently trying to install seafile 7.1.4 on a Raspberry Pi 4 following the official guide (https://download.seafile.com/published/seafile-manual/deploy/using_mysql.md). The setup went smoothly, but when I try to start the seahub (./seahub start) for the first time I get the following error:
Traceback (most recent call last):
File "check_init_admin.py", line 351, in <module>
rpc = RPC()
File "check_init_admin.py", line 284, in __init__
import ccnet
ModuleNotFoundError: No module named 'ccnet'
I've been on google for the past two hours, but can't find a solution to this problem. What am I doing wrong?
I ran into the same issue. There's a bug in the 7.1.4 package. Seafile uses some local site packages. They (apparently) used to be under ${INSTALLPATH}/seafile/lib/python3.6/site-packages, now the are under ${INSTALLPATH}/seafile/lib/python3.7/site-packages
To fix:
open seahub.sh in the editor of your choice.
find the line that says:
export PYTHONPATH=${INSTALLPATH}/seafile/lib/python3.6/site-packages:${INSTALLPATH}/seafile/lib64/python3.6/site-packages:${INSTALLPATH}/seahub:${INSTALLPATH}/seahub/thirdpart:$PYTHONPATH
change it to read:
export PYTHONPATH=${INSTALLPATH}/seafile/lib/python3.7/site-packages:${INSTALLPATH}/seafile/lib64/python3.7/site-packages:${INSTALLPATH}/seahub:${INSTALLPATH}/seahub/thirdpart:$PYTHONPATH
I am trying to download the entire course of videos from udemy.
After following the instructions and getting the necessary packages installed, I get the error below :
Traceback (most recent call last):
File "/usr/local/bin/udemy-dl", line 7, in <module>
main()
File "/usr/local/lib/python2.7/dist-packages/udemy_dl/udemy_dl.py", line 837, in main
udemy_dl(username, password, link, lecture_start, lecture_end, save_links, safe_file_names, just_list, output_dest)
File "/usr/local/lib/python2.7/dist-packages/udemy_dl/udemy_dl.py", line 658, in udemy_dl
login(username, password)
File "/usr/local/lib/python2.7/dist-packages/udemy_dl/udemy_dl.py", line 109, in login
csrf_token = get_csrf_token()
File "/usr/local/lib/python2.7/dist-packages/udemy_dl/udemy_dl.py", line 102, in get_csrf_token
return match.group(1)
AttributeError: 'NoneType' object has no attribute 'group'
I am using linux 18.04 and I have installed python 2.7 already. I can be successfully authenticated to udemy from the command line but I am not able to get the videos. Does anyone know how can I get solve this regex error?
Instead of struggling with this python module, you can use this package
https://github.com/maabiddevra/udemy-dl/
No need to deal with python and no need to install just get the executable files from library bin folder and you are ready to go.
I was trying to make an automatic login program for our school website, which requires recognizing text from a captcha code. So I installed pytesseract from pip, and ran the program in PyCharm: (the image is in the directory /Users/macintosh/Documents/PythonOutputs/2.jpg)
import pytesseract
from PIL import Image
image = Image.open("/Users/macintosh/Documents/PythonOutputs/2.jpg")
text = pytesseract.image_to_string(image)
print(text)
But this error occured:
Traceback (most recent call last): File
"/Users/macintosh/Library/Preferences/PyCharmCE2018.2/scratches/scratch_3.py",
line 5, in
text = pytesseract.image_to_string(image)
File
"/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pytesseract/pytesseract.py",
line 294, in image_to_string
return run_and_get_output(*args)
File
"/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pytesseract/pytesseract.py",
line 202, in run_and_get_output
run_tesseract(**kwargs)
File
"/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pytesseract/pytesseract.py",
line 178, in run_tesseract
raise TesseractError(status_code, get_errors(error_string))
pytesseract.pytesseract.TesseractError: (2, 'Usage: python
pytesseract.py [-l lang] input_file')
What's the problem?
Well, although your error message is not really crystal clear I bet (judging from your actions) you haven't installed Tesseract itself.
In pytessaract documentation it states that:
Python-tesseract is a wrapper for Google’s Tesseract-OCR Engine.
so you should install the actual program (Tesseract that is) to do the job also.
Does anyone have a working implementation of PIL with Centos 7 and Python 3.4?
I tried to install the tarball from here, but when running "make" or "make test" got a lot of errors.
If anyone has a working implementation, could you please post the commands and configuration needed i.e. yum packages to get it to work?
I also found this blog post but it didn't help.
Here is one error that I am seeing when trying to convert a jpeg's size:
Traceback (most recent call last):
File "<console>", line 2, in <module>
File "/var/www/deploy/myproject/myproject-django/venv/lib/python3.4/site-packages/PIL/Image.py", line 1557, in resize
self.load()
File "/var/www/deploy/myproject/myproject-django/venv/lib/python3.4/site-packages/PIL/ImageFile.py", line 203, in load
d = Image._getdecoder(self.mode, d, a, self.decoderconfig)
File "/var/www/deploy/myproject/myproject-django/venv/lib/python3.4/site-packages/PIL/Image.py", line 420, in _getdecoder
raise IOError("decoder %s not available" % decoder_name)
OSError: decoder jpeg not available
Make sure you install the dependencies first, and then reinstall Pillow. Looks like you're missing libjpeg. See here for details.
http://pillow.readthedocs.org/en/3.0.x/installation.html