pyqtgraph compile to executable file fails - python
I want to create an executable file from pyqtgraph,
finally I tried this tutorial
http://www.pyqtgraph.org/Bundling%20applications%20with%20PyQtGraph_R16.pdf
After the first run of the compiled code in the example the tutorial says that there should be an error message like
Traceback (most recent call last):
File "simpleApp.pyw", line 6, in <module>
File "pyqtgraph\__init__.pyc", line 107, in <module>
File "pyqtgraph\__init__.pyc", line 89, in importAll
WindowsError: [Error 3] The system cannot find the path specified:
'D:\\xxxxxx\\SandBox\\src\\dist\\library.zip\\pyqtgraph\\graphicsItems/*.*'
But I got that
File "pyqtgraph_test.pyw", line 8, in <module>
File "pyqtgraph\__init__.pyc", line 177, in <module>
File "pyqtgraph\__init__.pyc", line 167, in importAll
File "pyqtgraph\__init__.pyc", line 159, in importModules
Traceback (most recent call last):
File "pyqtgraph\__init__.pyc", line 155, in importModules
File "pyqtgraph\graphicsItems\PlotDataItem.pyc", line 4, in <module>
File "pyqtgraph\graphicsItems\PlotCurveItem.pyc", line 4, in <module>
File "scipy\stats\__init__.pyc", line 320, in <module>
File "scipy\stats\stats.pyc", line 246, in <module>
File "scipy\stats\distributions.pyc", line 16, in <module>
File "scipy\optimize\__init__.pyc", line 148, in <module>
File "scipy\optimize\_root.pyc", line 20, in <module>
File "scipy\optimize\nonlin.pyc", line 122, in <module>
File "scipy\sparse\__init__.pyc", line 193, in <module>
File "scipy\sparse\csgraph\__init__.pyc", line 148, in <module>
File "scipy\sparse\csgraph\_shortest_path.pyc", line 12, in <module>
File "scipy\sparse\csgraph\_shortest_path.pyc", line 10, in __load
File "_shortest_path.pyx", line 18, in init scipy.sparse.csgraph._shortest_path
(scipy\sparse \csgraph\_shortest_path.c:14224)
ImportError: No module named _validation
File "pyqtgraph_test.pyw", line 8, in <module>
File "pyqtgraph\__init__.pyc", line 177, in <module>
File "pyqtgraph\__init__.pyc", line 167, in importAll
File "pyqtgraph\__init__.pyc", line 159, in importModules
Traceback (most recent call last):
File "pyqtgraph\__init__.pyc", line 155, in importModules
File "pyqtgraph\graphicsItems\PlotItem\__init__.pyc", line 1, in <module>
File "pyqtgraph\graphicsItems\PlotItem\PlotItem.pyc", line 32, in <module>
File "pyqtgraph\graphicsItems\PlotDataItem.pyc", line 4, in <module>
File "pyqtgraph\graphicsItems\PlotCurveItem.pyc", line 4, in <module>
File "scipy\stats\__init__.pyc", line 320, in <module>
File "scipy\stats\stats.pyc", line 245, in <module>
ImportError: cannot import name futil
File "pyqtgraph_test.pyw", line 8, in <module>
File "pyqtgraph\__init__.pyc", line 177, in <module>
File "pyqtgraph\__init__.pyc", line 167, in importAll
File "pyqtgraph\__init__.pyc", line 159, in importModules
Traceback (most recent call last):
File "pyqtgraph\__init__.pyc", line 155, in importModules
File "pyqtgraph\graphicsItems\HistogramLUTItem.pyc", line 10, in <module>
File "pyqtgraph\graphicsItems\GradientEditorItem.pyc", line 8, in <module>
File "pyqtgraph\colormap.pyc", line 2, in <module>
File "scipy\interpolate\__init__.pyc", line 160, in <module>
File "scipy\interpolate\ndgriddata.pyc", line 10, in <module>
File "scipy\interpolate\interpnd.pyc", line 12, in <module>
File "scipy\interpolate\interpnd.pyc", line 10, in __load
File "interpnd.pyx", line 1, in init scipy.interpolate.interpnd (scipy\interpolate\interpnd.c:22803)
File "scipy\spatial\__init__.pyc", line 87, in <module>
File "scipy\spatial\kdtree.pyc", line 8, in <module>
File "scipy\sparse\__init__.pyc", line 193, in <module>
File "scipy\sparse\csgraph\__init__.pyc", line 148, in <module>
File "scipy\sparse\csgraph\_shortest_path.pyc", line 12, in <module>
File "scipy\sparse\csgraph\_shortest_path.pyc", line 10, in __load
File "_shortest_path.pyx", line 18, in init scipy.sparse.csgraph._shortest_path (scipy\sparse
\csgraph\_shortest_path.c:14224)
ImportError: No module named _validation
File "pyqtgraph_test.pyw", line 8, in <module>
File "pyqtgraph\__init__.pyc", line 177, in <module>
File "pyqtgraph\__init__.pyc", line 167, in importAll
File "pyqtgraph\__init__.pyc", line 159, in importModules
Traceback (most recent call last):
File "pyqtgraph\__init__.pyc", line 155, in importModules
File "pyqtgraph\graphicsItems\GraphicsLayout.pyc", line 6, in <module>
File "pyqtgraph\graphicsItems\PlotItem\__init__.pyc", line 1, in <module>
File "pyqtgraph\graphicsItems\PlotItem\PlotItem.pyc", line 32, in <module>
File "pyqtgraph\graphicsItems\PlotDataItem.pyc", line 4, in <module>
File "pyqtgraph\graphicsItems\PlotCurveItem.pyc", line 4, in <module>
File "scipy\stats\__init__.pyc", line 320, in <module>
File "scipy\stats\stats.pyc", line 245, in <module>
ImportError: cannot import name futil
File "pyqtgraph_test.pyw", line 8, in <module>
File "pyqtgraph\__init__.pyc", line 177, in <module>
File "pyqtgraph\__init__.pyc", line 167, in importAll
File "pyqtgraph\__init__.pyc", line 159, in importModules
Traceback (most recent call last):
File "pyqtgraph\__init__.pyc", line 155, in importModules
File "pyqtgraph\graphicsItems\PlotCurveItem.pyc", line 4, in <module>
File "scipy\stats\__init__.pyc", line 320, in <module>
File "scipy\stats\stats.pyc", line 245, in <module>
ImportError: cannot import name futil
File "pyqtgraph_test.pyw", line 8, in <module>
File "pyqtgraph\__init__.pyc", line 177, in <module>
File "pyqtgraph\__init__.pyc", line 167, in importAll
File "pyqtgraph\__init__.pyc", line 159, in importModules
Traceback (most recent call last):
File "pyqtgraph\__init__.pyc", line 155, in importModules
File "pyqtgraph\graphicsItems\GradientEditorItem.pyc", line 8, in <module>
File "pyqtgraph\colormap.pyc", line 2, in <module>
File "scipy\interpolate\__init__.pyc", line 160, in <module>
File "scipy\interpolate\ndgriddata.pyc", line 10, in <module>
File "scipy\interpolate\interpnd.pyc", line 12, in <module>
File "scipy\interpolate\interpnd.pyc", line 10, in __load
File "interpnd.pyx", line 1, in init scipy.interpolate.interpnd (scipy\interpolate\interpnd.c:22803)
File "scipy\spatial\__init__.pyc", line 87, in <module>
File "scipy\spatial\kdtree.pyc", line 8, in <module>
File "scipy\sparse\__init__.pyc", line 193, in <module>
File "scipy\sparse\csgraph\__init__.pyc", line 148, in <module>
File "scipy\sparse\csgraph\_shortest_path.pyc", line 12, in <module>
File "scipy\sparse\csgraph\_shortest_path.pyc", line 10, in __load
File "_shortest_path.pyx", line 18, in init scipy.sparse.csgraph._shortest_path (scipy\sparse
\csgraph\_shortest_path.c:14224)
ImportError: No module named _validation
File "pyqtgraph_test.pyw", line 8, in <module>
File "pyqtgraph\__init__.pyc", line 177, in <module>
File "pyqtgraph\__init__.pyc", line 167, in importAll
File "pyqtgraph\__init__.pyc", line 159, in importModules
Traceback (most recent call last):
File "pyqtgraph\__init__.pyc", line 155, in importModules
File "pyqtgraph\graphicsItems\ScatterPlotItem.pyc", line 7, in <module>
File "scipy\stats\__init__.pyc", line 320, in <module>
File "scipy\stats\stats.pyc", line 245, in <module>
ImportError: cannot import name futil
File "pyqtgraph_test.pyw", line 8, in <module>
File "pyqtgraph\__init__.pyc", line 178, in <module>
File "pyqtgraph\__init__.pyc", line 167, in importAll
File "pyqtgraph\__init__.pyc", line 159, in importModules
Traceback (most recent call last):
File "pyqtgraph\__init__.pyc", line 155, in importModules
File "pyqtgraph\widgets\PlotWidget.pyc", line 10, in <module>
File "pyqtgraph\graphicsItems\PlotItem\__init__.pyc", line 1, in <module>
File "pyqtgraph\graphicsItems\PlotItem\PlotItem.pyc", line 32, in <module>
File "pyqtgraph\graphicsItems\PlotDataItem.pyc", line 4, in <module>
File "pyqtgraph\graphicsItems\PlotCurveItem.pyc", line 4, in <module>
File "scipy\stats\__init__.pyc", line 320, in <module>
File "scipy\stats\stats.pyc", line 245, in <module>
ImportError: cannot import name futil
File "pyqtgraph_test.pyw", line 8, in <module>
File "pyqtgraph\__init__.pyc", line 178, in <module>
File "pyqtgraph\__init__.pyc", line 167, in importAll
File "pyqtgraph\__init__.pyc", line 159, in importModules
Traceback (most recent call last):
File "pyqtgraph\__init__.pyc", line 155, in importModules
File "pyqtgraph\widgets\GradientWidget.pyc", line 4, in <module>
File "pyqtgraph\graphicsItems\GradientEditorItem.pyc", line 8, in <module>
File "pyqtgraph\colormap.pyc", line 2, in <module>
File "scipy\interpolate\__init__.pyc", line 160, in <module>
File "scipy\interpolate\ndgriddata.pyc", line 10, in <module>
File "scipy\interpolate\interpnd.pyc", line 12, in <module>
File "scipy\interpolate\interpnd.pyc", line 10, in __load
File "interpnd.pyx", line 1, in init scipy.interpolate.interpnd (scipy\interpolate\interpnd.c:22803)
File "scipy\spatial\__init__.pyc", line 87, in <module>
File "scipy\spatial\kdtree.pyc", line 8, in <module>
File "scipy\sparse\__init__.pyc", line 193, in <module>
File "scipy\sparse\csgraph\__init__.pyc", line 148, in <module>
File "scipy\sparse\csgraph\_shortest_path.pyc", line 12, in <module>
File "scipy\sparse\csgraph\_shortest_path.pyc", line 10, in __load
File "_shortest_path.pyx", line 18, in init scipy.sparse.csgraph._shortest_path (scipy\sparse
\csgraph\_shortest_path.c:14224)
ImportError: No module named _validation
File "pyqtgraph_test.pyw", line 8, in <module>
File "pyqtgraph\__init__.pyc", line 178, in <module>
File "pyqtgraph\__init__.pyc", line 167, in importAll
File "pyqtgraph\__init__.pyc", line 159, in importModules
Traceback (most recent call last):
File "pyqtgraph\__init__.pyc", line 155, in importModules
File "pyqtgraph\widgets\GraphicsLayoutWidget.pyc", line 2, in <module>
File "pyqtgraph\graphicsItems\GraphicsLayout.pyc", line 6, in <module>
File "pyqtgraph\graphicsItems\PlotItem\__init__.pyc", line 1, in <module>
File "pyqtgraph\graphicsItems\PlotItem\PlotItem.pyc", line 32, in <module>
File "pyqtgraph\graphicsItems\PlotDataItem.pyc", line 4, in <module>
File "pyqtgraph\graphicsItems\PlotCurveItem.pyc", line 4, in <module>
File "scipy\stats\__init__.pyc", line 320, in <module>
File "scipy\stats\stats.pyc", line 245, in <module>
ImportError: cannot import name futil
File "pyqtgraph_test.pyw", line 8, in <module>
File "pyqtgraph\__init__.pyc", line 178, in <module>
File "pyqtgraph\__init__.pyc", line 167, in importAll
File "pyqtgraph\__init__.pyc", line 159, in importModules
Traceback (most recent call last):
File "pyqtgraph\__init__.pyc", line 155, in importModules
File "pyqtgraph\widgets\HistogramLUTWidget.pyc", line 8, in <module>
File "pyqtgraph\graphicsItems\HistogramLUTItem.pyc", line 10, in <module>
File "pyqtgraph\graphicsItems\GradientEditorItem.pyc", line 8, in <module>
File "pyqtgraph\colormap.pyc", line 2, in <module>
File "scipy\interpolate\__init__.pyc", line 160, in <module>
File "scipy\interpolate\ndgriddata.pyc", line 10, in <module>
File "scipy\interpolate\interpnd.pyc", line 12, in <module>
File "scipy\interpolate\interpnd.pyc", line 10, in __load
File "interpnd.pyx", line 1, in init scipy.interpolate.interpnd (scipy\interpolate\interpnd.c:22803)
File "scipy\spatial\__init__.pyc", line 87, in <module>
File "scipy\spatial\kdtree.pyc", line 8, in <module>
File "scipy\sparse\__init__.pyc", line 193, in <module>
File "scipy\sparse\csgraph\__init__.pyc", line 148, in <module>
File "scipy\sparse\csgraph\_shortest_path.pyc", line 12, in <module>
File "scipy\sparse\csgraph\_shortest_path.pyc", line 10, in __load
File "_shortest_path.pyx", line 18, in init scipy.sparse.csgraph._shortest_path (scipy\sparse
\csgraph\_shortest_path.c:14224)
ImportError: No module named _validation
Traceback (most recent call last):
File "pyqtgraph_test.pyw", line 8, in <module>
File "pyqtgraph\__init__.pyc", line 180, in <module>
File "pyqtgraph\imageview\__init__.pyc", line 6, in <module>
File "pyqtgraph\imageview\ImageView.pyc", line 20, in <module>
File "pyqtgraph\imageview\ImageViewTemplate_pyqt.pyc", line 159, in <module>
File "pyqtgraph\widgets\PlotWidget.pyc", line 10, in <module>
File "pyqtgraph\graphicsItems\PlotItem\__init__.pyc", line 1, in <module>
File "pyqtgraph\graphicsItems\PlotItem\PlotItem.pyc", line 32, in <module>
File "pyqtgraph\graphicsItems\PlotDataItem.pyc", line 4, in <module>
File "pyqtgraph\graphicsItems\PlotCurveItem.pyc", line 4, in <module>
File "scipy\stats\__init__.pyc", line 320, in <module>
File "scipy\stats\stats.pyc", line 245, in <module>
ImportError: cannot import name futil
What am i doing wrong ?
Every version of scipy seems to have a different set of bugs that make py2exe fail. For the latest version (0.12.0), I have found that I need these two lines somewhere in my program so that py2exe will include them in the build:
from scipy.stats import futil
from scipy.sparse.csgraph import _validation
For some reason it does not seem to work to simply put these in the py2exe 'includes' option in the setup script.
Related
TypeError: expected string or bytes-like object while using a hugging face model
I am trying to us DiffusionPipeline from hugging face to generate Image from text but the following error is being generated: TypeError: expected string or bytes-like object The traceback: File "c:\Users\BHAVYA SHAH\Desktop\Artificial Intelligence\app.py", line 9, in <module> from diffusers import DiffusionPipeline File "C:\Users\BHAVYA SHAH\anaconda3\lib\site-packages\diffusers\__init__.py", line 26, in <module> from .pipelines import DDIMPipeline, DDPMPipeline, KarrasVePipeline, LDMPipeline, PNDMPipeline, ScoreSdeVePipeline File "C:\Users\BHAVYA SHAH\anaconda3\lib\site-packages\diffusers\pipelines\__init__.py", line 11, in <module> from .latent_diffusion import LDMTextToImagePipeline File "C:\Users\BHAVYA SHAH\anaconda3\lib\site-packages\diffusers\pipelines\latent_diffusion\__init__.py", line 6, in <module> from .pipeline_latent_diffusion import LDMBertModel, LDMTextToImagePipeline File "C:\Users\BHAVYA SHAH\anaconda3\lib\site-packages\diffusers\pipelines\latent_diffusion\pipeline_latent_diffusion.py", line 9, in <module> from transformers.activations import ACT2FN File "C:\Users\BHAVYA SHAH\anaconda3\lib\site-packages\transformers\__init__.py", line 30, in <module> from . import dependency_versions_check File "C:\Users\BHAVYA SHAH\anaconda3\lib\site-packages\transformers\dependency_versions_check.py", line 17, in <module> from .utils.versions import require_version, require_version_core File "C:\Users\BHAVYA SHAH\anaconda3\lib\site-packages\transformers\utils\__init__.py", line 34, in <module> from .generic import ( File "C:\Users\BHAVYA SHAH\anaconda3\lib\site-packages\transformers\utils\generic.py", line 29, in <module> from .import_utils import is_flax_available, is_tf_available, is_torch_available, is_torch_fx_proxy File "C:\Users\BHAVYA SHAH\anaconda3\lib\site-packages\transformers\utils\import_utils.py", line 376, in <module> torch_version = version.parse(importlib_metadata.version("torch")) File "C:\Users\BHAVYA SHAH\anaconda3\lib\site-packages\packaging\version.py", line 49, in parse return Version(version) File "C:\Users\BHAVYA SHAH\anaconda3\lib\site-packages\packaging\version.py", line 264, in __init__ match = self._regex.search(version) TypeError: expected string or bytes-like object Help to solve this error would be much appreciated.
ijson.common.JSONError: Additional data
I am trying to split the the large geojsonl file, but I am getting this error. geojsplit --geometry-count 1000000 D:/Software/Pakistan.geojsonl Traceback (most recent call last): File "C:\Users\humay\anaconda3\lib\runpy.py", line 197, in _run_module_as_main return _run_code(code, main_globals, None, File "C:\Users\humay\anaconda3\lib\runpy.py", line 87, in _run_code exec(code, run_globals) File "C:\Users\humay\anaconda3\Scripts\geojsplit.exe\__main__.py", line 7, in <module> File "C:\Users\humay\anaconda3\lib\site-packages\geojsplit\cli.py", line 184, in main input_geojson(args) File "C:\Users\humay\anaconda3\lib\site-packages\geojsplit\cli.py", line 42, in input_geojson for count, features in enumerate(gj.stream(batch=args.geometry_count)): File "C:\Users\humay\anaconda3\lib\site-packages\geojsplit\geojsplit.py", line 79, in stream data.append(next(features)) File "C:\Users\humay\anaconda3\lib\site-packages\ijson\common.py", line 140, in items current, event, value = next(prefixed_events) File "C:\Users\humay\anaconda3\lib\site-packages\ijson\common.py", line 65, in parse for event, value in basic_events: File "C:\Users\humay\anaconda3\lib\site-packages\ijson\backends\python.py", line 171, in basic_parse raise common.JSONError('Additional data') ijson.common.JSONError: Additional data
Error using set MLFLOW_TRACKING_URI='http://0.0.0.0:5000' for serve models
Hi i need to run a command like this mlflow server --backend-store-uri postgresql://mlflow_user:mlflow#localhost:5433/mlflow --default-artifact-root file:D:/artifact_root --host 0.0.0.0 --port 5000 for start my serve and i have not problem with this but when i try to run a example in the route of project from github python mlflow/examples/sklearn_elasticnet_diabetes/linux/train_diabetes.py 0.1 0.9 i get this error _model_registry_store_registry.register_entrypoints() Elasticnet model (alpha=0.100000, l1_ratio=0.900000): RMSE: 71.98302888908191 MAE: 60.5647520017933 R2: 0.21655161434654602 <function get_tracking_uri at 0x0000017F3AE885E8> url 'http://0.0.0.0:8001' url2 'http|//0.0.0.0|8001' Traceback (most recent call last): File "train_diabetes.py", line 90, in <module> mlflow.log_param("alpha", alpha) File "C:\Users\kevin.sanchez\Miniconda3\envs\env_mlflow\lib\site-packages\mlflow\tracking\fluent.py", line 210, in log_param run_id = _get_or_start_run().info.run_id File "C:\Users\kevin.sanchez\Miniconda3\envs\env_mlflow\lib\site-packages\mlflow\tracking\fluent.py", line 508, in _get_or_start_run return start_run() File "C:\Users\kevin.sanchez\Miniconda3\envs\env_mlflow\lib\site-packages\mlflow\tracking\fluent.py", line 148, in start_run active_run_obj = MlflowClient().create_run( File "C:\Users\kevin.sanchez\Miniconda3\envs\env_mlflow\lib\site-packages\mlflow\tracking\client.py", line 44, in __init__ self._tracking_client = TrackingServiceClient(final_tracking_uri) File "C:\Users\kevin.sanchez\Miniconda3\envs\env_mlflow\lib\site-packages\mlflow\tracking\_tracking_service\client.py", line 32, in __init__ self.store = utils._get_store(self.tracking_uri) File "C:\Users\kevin.sanchez\Miniconda3\envs\env_mlflow\lib\site-packages\mlflow\tracking\_tracking_service\utils.py", line 126, in _get_store return _tracking_store_registry.get_store(store_uri, artifact_uri) File "C:\Users\kevin.sanchez\Miniconda3\envs\env_mlflow\lib\site-packages\mlflow\tracking\_tracking_service\registry.py", line 37, in get_store return builder(store_uri=store_uri, artifact_uri=artifact_uri) File "C:\Users\kevin.sanchez\Miniconda3\envs\env_mlflow\lib\site-packages\mlflow\tracking\_tracking_service\utils.py", line 81, in _get_file_store return FileStore(store_uri, store_uri) File "C:\Users\kevin.sanchez\Miniconda3\envs\env_mlflow\lib\site-packages\mlflow\store\tracking\file_store.py", line 100, in __init__ self.root_directory = local_file_uri_to_path(root_directory or _default_root_dir()) File "C:\Users\kevin.sanchez\Miniconda3\envs\env_mlflow\lib\site-packages\mlflow\utils\file_utils.py", line 387, in local_file_uri_to_path return urllib.request.url2pathname(path) File "C:\Users\kevin.sanchez\Miniconda3\envs\env_mlflow\lib\nturl2path.py", line 35, in url2pathname raise OSError(error) OSError: Bad URL: 'http|//0.0.0.0|8001' before running the python code i run this command to set the env tracking uri for the execution set MLFLOW_TRACKING_URI='http://0.0.0.0:5000' i donĀ“t know why mlflow replace the : for | i need help. Before this option worked but now it is failing
This looks strange because if you set MLFLOW_TRACKING_URI to http://0.0.0.0:5000, RestStore should be used, but your stacktrace says FileStore is used. Can you run the code below and see what it prints out? from urllib.parse import urlparse urlparse('http://0.0.0.0:5000')
this error $ python train_diabetes.py 0.1 0.9 C:\Users\kevin.sanchez\Miniconda3\envs\env_mlflow\lib\site-packages\mlflow\tracking\_model_registry\utils.py:106: UserWarning: Failure attempting to register store for scheme "file-plugin": No module named 'mlflow_test_plugin.sqlalchemy_store' _model_registry_store_registry.register_entrypoints() Elasticnet model (alpha=0.100000, l1_ratio=0.900000): RMSE: 71.98302888908191 MAE: 60.5647520017933 R2: 0.21655161434654602 Traceback (most recent call last): File "train_diabetes.py", line 88, in <module> mlflow.log_param("alpha", alpha) File "C:\Users\kevin.sanchez\Miniconda3\envs\env_mlflow\lib\site-packages\mlflow\tracking\fluent.py", line 218, in log_param run_id = _get_or_start_run().info.run_id File "C:\Users\kevin.sanchez\Miniconda3\envs\env_mlflow\lib\site-packages\mlflow\tracking\fluent.py", line 573, in _get_or_start_run return start_run() File "C:\Users\kevin.sanchez\Miniconda3\envs\env_mlflow\lib\site-packages\mlflow\tracking\fluent.py", line 159, in start_run active_run_obj = MlflowClient().create_run(experiment_id=exp_id_for_run, tags=tags) File "C:\Users\kevin.sanchez\Miniconda3\envs\env_mlflow\lib\site-packages\mlflow\tracking\client.py", line 54, in __init__ self._tracking_client = TrackingServiceClient(final_tracking_uri) File "C:\Users\kevin.sanchez\Miniconda3\envs\env_mlflow\lib\site-packages\mlflow\tracking\_tracking_service\client.py", line 39, in __init__ self.store = utils._get_store(self.tracking_uri) File "C:\Users\kevin.sanchez\Miniconda3\envs\env_mlflow\lib\site-packages\mlflow\tracking\_tracking_service\utils.py", line 127, in _get_store return _tracking_store_registry.get_store(store_uri, artifact_uri) File "C:\Users\kevin.sanchez\Miniconda3\envs\env_mlflow\lib\site-packages\mlflow\tracking\_tracking_service\registry.py", line 38, in get_store return builder(store_uri=store_uri, artifact_uri=artifact_uri) File "C:\Users\kevin.sanchez\Miniconda3\envs\env_mlflow\lib\site-packages\mlflow\tracking\_tracking_service\utils.py", line 81, in _get_file_store return FileStore(store_uri, store_uri) File "C:\Users\kevin.sanchez\Miniconda3\envs\env_mlflow\lib\site-packages\mlflow\store\tracking\file_store.py", line 132, in __init__ self.root_directory = local_file_uri_to_path(root_directory or _default_root_dir()) File "C:\Users\kevin.sanchez\Miniconda3\envs\env_mlflow\lib\site-packages\mlflow\utils\file_utils.py", line 390, in local_file_uri_to_path return urllib.request.url2pathname(path) File "C:\Users\kevin.sanchez\Miniconda3\envs\env_mlflow\lib\nturl2path.py", line 33, in url2pathname raise OSError(error) OSError: Bad URL: 'http|//0.0.0.0|5000' Error in atexit._run_exitfuncs: Traceback (most recent call last): File "C:\Users\kevin.sanchez\Miniconda3\envs\env_mlflow\lib\site-packages\mlflow\tensorflow.py", line 577, in _flush_queue client = mlflow.tracking.MlflowClient() File "C:\Users\kevin.sanchez\Miniconda3\envs\env_mlflow\lib\site-packages\mlflow\tracking\client.py", line 54, in __init__ self._tracking_client = TrackingServiceClient(final_tracking_uri) File "C:\Users\kevin.sanchez\Miniconda3\envs\env_mlflow\lib\site-packages\mlflow\tracking\_tracking_service\client.py", line 39, in __init__ self.store = utils._get_store(self.tracking_uri) File "C:\Users\kevin.sanchez\Miniconda3\envs\env_mlflow\lib\site-packages\mlflow\tracking\_tracking_service\utils.py", line 127, in _get_store return _tracking_store_registry.get_store(store_uri, artifact_uri) File "C:\Users\kevin.sanchez\Miniconda3\envs\env_mlflow\lib\site-packages\mlflow\tracking\_tracking_service\registry.py", line 38, in get_store return builder(store_uri=store_uri, artifact_uri=artifact_uri) File "C:\Users\kevin.sanchez\Miniconda3\envs\env_mlflow\lib\site-packages\mlflow\tracking\_tracking_service\utils.py", line 81, in _get_file_store return FileStore(store_uri, store_uri) File "C:\Users\kevin.sanchez\Miniconda3\envs\env_mlflow\lib\site-packages\mlflow\store\tracking\file_store.py", line 132, in __init__ self.root_directory = local_file_uri_to_path(root_directory or _default_root_dir()) File "C:\Users\kevin.sanchez\Miniconda3\envs\env_mlflow\lib\site-packages\mlflow\utils\file_utils.py", line 390, in local_file_uri_to_path return urllib.request.url2pathname(path) File "C:\Users\kevin.sanchez\Miniconda3\envs\env_mlflow\lib\nturl2path.py", line 33, in url2pathname raise OSError(error) OSError: Bad URL: 'http|//0.0.0.0|5000'
Scapy won't start
My Scapy v2.3.3 won't start. Fresh reinstalled Python 2.7, WinPcap10 and pyreadline. Sometimes it starts after at second try in the same console. c:\Python27\Scripts>scapy c:\Python27\Scripts>python c:\Python27\Scripts\scapy INFO: Can't import matplotlib. Won't be able to plot. INFO: Can't import PyX. Won't be able to use psdump() or pdfdump(). Traceback (most recent call last): File "c:\Python27\Scripts\scapy", line 26, in <module> interact() File "C:\Python27\lib\site-packages\scapy\main.py", line 300, in interact scapy_builtins = __import__("all",globals(),locals(),".").__dict__ File "C:\Python27\lib\site-packages\scapy\all.py", line 16, in <module> from scapy.arch import * File "C:\Python27\lib\site-packages\scapy\arch\__init__.py", line 83, in <module> from scapy.arch.windows import * File "C:\Python27\lib\site-packages\scapy\arch\windows\__init__.py", line 318, in <module> IFACES.load_from_powershell() File "C:\Python27\lib\site-packages\scapy\arch\windows\__init__.py", line 270, in load_from_powershell for i in get_windows_if_list(): File "C:\Python27\lib\site-packages\scapy\arch\windows\__init__.py", line 206, in get_windows_if_list for line in query) File "C:\Python27\lib\site-packages\scapy\arch\windows\__init__.py", line 205, in <genexpr> (dict(zip(['name', 'win_index', 'description', 'guid', 'mac'], line)) File "C:\Python27\lib\site-packages\scapy\arch\windows\__init__.py", line 53, in _exec_query_ps l.append(line.split(':', 1)[1].strip()) IndexError: list index out of range
This bug was implemented in 6840d30 (v2.3.3) and fixed in a454ef4, it could be fixed by changing l.append(line.split(':', 1)[1].strip()) to sl = line.split(':', 1) if len(sl) == 1: l[-1] += sl[0].strip() continue else: l.append(sl[1].strip())
Error while using mloginfo m-tools
I want to analyze log file of mongodb. I am referred to use m-tools. But I'm getting following error. I've typed in terminal mlonginfo /..logfilelocation../ --queries Error: QUERIES [============================== ] 74.1 % Traceback (most recent call last): File "/usr/local/bin/mloginfo", line 9, in <module> load_entry_point('mtools==1.1.8', 'console_scripts', 'mloginfo')() File "/usr/local/lib/python2.7/dist-packages/mtools/mloginfo/mloginfo.py", line 82, in main tool.run() File "/usr/local/lib/python2.7/dist-packages/mtools/mloginfo/mloginfo.py", line 77, in run section.run() File "/usr/local/lib/python2.7/dist-packages/mtools/mloginfo/sections/query_section.py", line 51, in run for i, le in enumerate(logfile): File "/usr/local/lib/python2.7/dist-packages/mtools/util/logfile.py", line 208, in __iter__ le = self.next() File "/usr/local/lib/python2.7/dist-packages/mtools/util/logfile.py", line 190, in next ret = le.set_datetime_hint(self._datetime_format, self._datetime_nextpos, self.year_rollover) File "/usr/local/lib/python2.7/dist-packages/mtools/util/logevent.py", line 246, in set_datetime_hint if not self.split_tokens[self._datetime_nextpos-1][0].isdigit(): IndexError: list index out of range Thanks in advance.