This is the error:
>>>File found: E:\Other\xristopoulos-laptop\PHOTO\quotes\????? t?t??.png
Traceback (most recent call last):
File "C:\Users\Zarkopafilis\Desktop\fileExtractor.py", line 39, in <module>
shutil.copy2(x , target)
File "C:\Python27\lib\shutil.py", line 130, in copy2
copyfile(src, dst)
File "C:\Python27\lib\shutil.py", line 82, in copyfile
with open(src, 'rb') as fsrc:
IOError: [Errno 22] invalid mode ('rb') or filename: 'E:\\Other\\xristopoulos-laptop\\PHOTO\\quotes\\????? t?t??.png'
I am using shutil.copy2(src , dest) to copy some files from one directory to another. How do I face these errors? The unsupported characters are greek
Related
pipreqs .\
the following error is comming. i searched on the google i didn't find any solution.
ERROR: Failed on file: .\static\bower_components\jvectormap\converter\converter.py
Traceback (most recent call last):
File "C:\Users\bsant\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Users\bsant\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 86, in run_code
exec(code, run_globals)
File "C:\Users\bsant\Pictures\lms_m16\venv\Scripts\pipreqs.exe_main.py", line 7, in
File "C:\Users\bsant\Pictures\lms_m16\venv\lib\site-packages\pipreqs\pipreqs.py", line 488, in main
init(args)
File "C:\Users\bsant\Pictures\lms_m16\venv\lib\site-packages\pipreqs\pipreqs.py", line 415, in init
candidates = get_all_imports(input_path,
File "C:\Users\bsant\Pictures\lms_m16\venv\lib\site-packages\pipreqs\pipreqs.py", line 131, in get_all_imports
raise exc
File "C:\Users\bsant\Pictures\lms_m16\venv\lib\site-packages\pipreqs\pipreqs.py", line 117, in get_all_imports
tree = ast.parse(contents)
File "C:\Users\bsant\AppData\Local\Programs\Python\Python310\lib\ast.py", line 50, in parse
return compile(source, filename, mode, flags,
File "", line 139
raise Exception, "Wrong geometry type: "+geometryType
^
SyntaxError: invalid syntax
import rdflib
g = rdflib.Graph()
g.load("chck.rdf")
for row in g.query(
'select ?s where { [] foaf:knows ?s .}'):
print(row.s)
Note:- chck.rdf was in the same directory
The error is:-
Traceback (most recent call last): File "C:/Python27/exmpl/four.py",
line 6, in
g.load("chck.rdf")
File "C:\Python27\lib\site-packages\rdflib\graph.py", line 1046, in
load
self.parse(source, publicID, format)
File "C:\Python27\lib\site-packages\rdflib\graph.py", line 1039, in
parse
parser.parse(source, self, **args)
File
"C:\Python27\lib\site-packages\rdflib\plugins\parsers\rdfxml.py", line
577, in parse
self._parser.parse(source)
File "C:\Python27\lib\xml\sax\expatreader.py", line 110, in parse
xmlreader.IncrementalParser.parse(self, source)
File "C:\Python27\lib\xml\sax\xmlreader.py", line 123, in parse
self.feed(buffer)
File "C:\Python27\lib\xml\sax\expatreader.py", line 217, in feed
self._err_handler.fatalError(exc)
File "C:\Python27\lib\xml\sax\handler.py", line 38, in fatalError
raise exception
SAXParseException: file:///C:/Python27/exmpl/chck.rdf:132:19: not
well-formed (invalid token)
I'm doing automation of a website and auto downloading a report through selenium and python and I get this error:
C:\Windows\system32>
C:\Python27\python.exeC:\Python27\Scripts\MH_Download3.py
Traceback (most recent call last):
File "C:\Python27\Scripts\MH_Download3.py", line 111, in <module>
driver = webdriver.Firefox(firefox_binary=binary)
File "C:\Python27\lib\site-packages\selenium\webdriver\firefox\webdriver.py", line 80, in __init__self.binary, timeout)
File`"C:\Python27\lib\sitepackages\selenium\webdriver\firefox\extension_connection.py", line 52, in __init__self.binary.launch_browser(self.profile, timeout=timeout)
File "C:\Python27\lib\sitepackages\selenium\webdriver\firefox\firefox_binary.py", line 67, in launch_browserself._start_from_profile_path(self.profile.path)
File "C:\Python27\lib\sitepackages\selenium\webdriver\firefox\firefox_binary.py", line 90, in _start_from_profile_path env=self._firefox_env)
File "C:\Python27\lib\subprocess.py", line 709, in __init__ errread, errwrite)
File "C:\Python27\lib\subprocess.py", line 957, in _execute_child startupinfo)
WindowsError: [Error 2] The system cannot find the file specified
I encounter, at all times, when i try to bind, scss and widgy, the same error.
With any django version, since 1.6.8 to 1.7.3,the last release, and django_pyscss any version, and finally django-widgy to 0.3.3 or other, always the same issue.
There my stack trace on PyDev :
Traceback (most recent call last):
File "C:\Program Files (x86)\EasyPHP-DevServer-14.1VC11\data\localweb\projects\workspace\MezzaTest2\manage.py", line 32, in <module>
execute_from_command_line(sys.argv)
File "C:\Users\olive\Environnements\lib\site-packages\django\core\management\__init__.py", line 385, in execute_from_command_line
utility.execute()
File "C:\Users\olive\Environnements\lib\site-packages\django\core\management\__init__.py", line 354, in execute
django.setup()
File "C:\Users\olive\Environnements\lib\site-packages\django\__init__.py", line 21, in setup
apps.populate(settings.INSTALLED_APPS)
File "C:\Users\olive\Environnements\lib\site-packages\django\apps\registry.py", line 108, in populate
app_config.import_models(all_models)
File "C:\Users\olive\Environnements\lib\site-packages\django\apps\config.py", line 202, in import_models
self.models_module = import_module(models_module_name)
File "C:\Python27\Lib\importlib\__init__.py", line 37, in import_module
__import__(name)
File "C:\Users\olive\Environnements\lib\site-packages\widgy\contrib\page_builder\models.py", line 16, in <module>
from widgy.contrib.page_builder.db.fields import MarkdownField, VideoField, ImageField
File "C:\Users\olive\Environnements\lib\site-packages\widgy\contrib\page_builder\db\fields.py", line 13, in <module>
from widgy.contrib.page_builder.forms import MarkdownField as MarkdownFormField, MarkdownWidget
File "C:\Users\olive\Environnements\lib\site-packages\widgy\contrib\page_builder\forms\__init__.py", line 42, in <module>
class CKEditorWidget(forms.Textarea):
File "C:\Users\olive\Environnements\lib\site-packages\widgy\contrib\page_builder\forms\__init__.py", line 80, in CKEditorWidget
'contentsCss': scss_compile('/widgy/page_builder/html.scss'),
File "C:\Users\olive\Environnements\lib\site-packages\widgy\contrib\page_builder\forms\__init__.py", line 22, in scss_compile
css_content = scss.compile(scss_file=scss_filename)
File "C:\Users\olive\Environnements\lib\site-packages\pyscss-1.3.0.a1-py2.7.egg\scss\legacy.py", line 163, in compile
is_sass=is_sass,
File "C:\Users\olive\Environnements\lib\site-packages\pyscss-1.3.0.a1-py2.7.egg\scss\source.py", line 100, in from_filename
with open(fn, 'rb') as f:
IOError: [Errno 2] No such file or directory: '/widgy/page_builder/html.scss'
It seems that you are running the 1.3.0a1 version of PyScss. Widgy depends on django-pyscss, which currently only supports the 1.2.1 version of PyScss currently. I know that you tried a lot of different versions, but did you try to install PyScss==1.2.1?
Here is the stacktrace:
Traceback (most recent call last):
File "facebook_scraper.py", line 185, in <module>
fb_scraper()
File "facebook_scraper.py", line 36, in fb_scraper
server.start()
File "build/bdist.linux-x86_64/egg/browsermobproxy/server.py", line 56, in start
File "/usr/lib/python2.7/subprocess.py", line 711, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1308, in _execute_child
raise child_exception
OSError: [Errno 13] Permission denied
I am following instructions from this page
Check that the user running the Python script has the permission to run the browsermob proxy batch file, that should be a .bat file found in path/to/browsermob-proxy
server = Server("path/to/browsermob-proxy")