I have to deploy kaleo-web plugin from eclipse,it is showing invalid location, I have placed kaleo-web plugin in webs folder as it is after downloading, alternatively I have tried with deploying it from cmd prompt.As kaleo-web contains service.xml, so I have done ant build-service,it is showing build failed, can any one help regarding this?
D:\Migration-work-for_Liferay62\one-click62\plugins\webs\kaleo-web>ant build-ser
vice
Buildfile: D:\Migration-work-for_Liferay62\one-click62\plugins\webs\kaleo-web\bu
ild.xml
build-service:
[mkdir] Created dir: D:\Migration-work-for_Liferay62\one-click62\plugins\web
s\kaleo-web\docroot\WEB-INF\classes
[copy] Copying 24 files to D:\Migration-work-for_Liferay62\one-click62\plug
ins\webs\kaleo-web\docroot\WEB-INF\classes
[copy] Copied 45 empty directories to 35 empty directories under D:\Migrati
on-work-for_Liferay62\one-click62\plugins\webs\kaleo-web\docroot\WEB-INF\classes
[jar] Building MANIFEST-only jar: D:\Migration-work-for_Liferay62\one-clic
k62\plugins\webs\kaleo-web\build-service-classpath.jar
[delete] Deleting: D:\Migration-work-for_Liferay62\one-click62\plugins\webs\k
aleo-web\build-service-classpath.jar.manifest
[delete] Deleting: D:\Migration-work-for_Liferay62\one-click62\plugins\webs\k
aleo-web\build-service-classpath.jar
[echo] Loading jar:file:/D:/Migration-work-for_Liferay62/one-click62/bundle
s/tomcat-7.0.42/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/system.properties
[echo] Loading jar:file:/D:/Migration-work-for_Liferay62/one-click62/bundle
s/tomcat-7.0.42/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/portal.properties
[echo] Loading file:/D:/Migration-work-for_Liferay62/one-click62/bundles/to
mcat-7.0.42/webapps/ROOT/WEB-INF/classes/portal-ext.properties
[echo] Loading jar:file:/D:/Migration-work-for_Liferay62/one-click62/bundle
s/tomcat-7.0.42/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/com/liferay/portal/too
ls/dependencies/portal-tools.properties
[echo] Building KaleoAction
[echo] Building KaleoCondition
[echo] Building KaleoDefinition
[echo] Building KaleoInstance
[echo] Building KaleoInstanceToken
[echo] Building KaleoLog
[echo] Building KaleoNode
[echo] Building KaleoNotification
[echo] Building KaleoNotificationRecipient
[echo] Building KaleoTask
[echo] Building KaleoTaskAssignment
[echo] Building KaleoTaskAssignmentInstance
[echo] Building KaleoTaskInstanceToken
[echo] Building KaleoTimer
[echo] Building KaleoTimerInstanceToken
[echo] Building KaleoTransition
[javac] Compiling 1 source file to D:\Migration-work-for_Liferay62\one-click
62\plugins\webs\kaleo-web\docroot\WEB-INF\service-classes
[javac] ----------
[javac] 1. ERROR in D:\Migration-work-for_Liferay62\one-click62\plugins\webs
\kaleo-web\docroot\WEB-INF\service\com\liferay\portal\workflow\kaleo\definition\
DurationScale.java (at line 17)
[javac] import com.liferay.compat.portal.kernel.scheduler.CronText;
[javac] ^^^^^^^^^^^^^^^^^^
[javac] The import com.liferay.compat cannot be resolved
[javac] ----------
[javac] 2. ERROR in D:\Migration-work-for_Liferay62\one-click62\plugins\webs
\kaleo-web\docroot\WEB-INF\service\com\liferay\portal\workflow\kaleo\definition\
DurationScale.java (at line 25)
[javac] DAY("day", CronText.DAILY_FREQUENCY),
[javac] ^^^^^^^^
[javac] CronText cannot be resolved to a variable
[javac] ----------
[javac] 3. ERROR in D:\Migration-work-for_Liferay62\one-click62\plugins\webs
\kaleo-web\docroot\WEB-INF\service\com\liferay\portal\workflow\kaleo\definition\
DurationScale.java (at line 26)
[javac] HOUR("hour", CronText.HOURLY_FREQUENCY),
[javac] ^^^^^^^^
[javac] CronText cannot be resolved to a variable
[javac] ----------
[javac] 4. ERROR in D:\Migration-work-for_Liferay62\one-click62\plugins\webs
\kaleo-web\docroot\WEB-INF\service\com\liferay\portal\workflow\kaleo\definition\
DurationScale.java (at line 27)
[javac] MINUTE("minute", CronText.MINUTELY_FREQUENCY),
[javac] ^^^^^^^^
[javac] CronText cannot be resolved to a variable
[javac] ----------
[javac] 5. ERROR in D:\Migration-work-for_Liferay62\one-click62\plugins\webs
\kaleo-web\docroot\WEB-INF\service\com\liferay\portal\workflow\kaleo\definition\
DurationScale.java (at line 28)
[javac] MONTH("month", CronText.MONTHLY_FREQUENCY),
[javac] ^^^^^^^^
[javac] CronText cannot be resolved to a variable
[javac] ----------
[javac] 6. ERROR in D:\Migration-work-for_Liferay62\one-click62\plugins\webs
\kaleo-web\docroot\WEB-INF\service\com\liferay\portal\workflow\kaleo\definition\
DurationScale.java (at line 29)
[javac] SECOND("second", CronText.SECONDLY_FREQUENCY),
[javac] ^^^^^^^^
[javac] CronText cannot be resolved to a variable
[javac] ----------
[javac] 7. ERROR in D:\Migration-work-for_Liferay62\one-click62\plugins\webs
\kaleo-web\docroot\WEB-INF\service\com\liferay\portal\workflow\kaleo\definition\
DurationScale.java (at line 30)
[javac] WEEK("week", CronText.WEEKLY_FREQUENCY),
[javac] ^^^^^^^^
[javac] CronText cannot be resolved to a variable
[javac] ----------
[javac] 8. ERROR in D:\Migration-work-for_Liferay62\one-click62\plugins\webs
\kaleo-web\docroot\WEB-INF\service\com\liferay\portal\workflow\kaleo\definition\
DurationScale.java (at line 31)
[javac] YEAR("year", CronText.YEARLY_FREQUENCY);
[javac] ^^^^^^^^
[javac] CronText cannot be resolved to a variable
[javac] ----------
[javac] 8 problems (8 errors)
BUILD FAILED
D:\Migration-work-for_Liferay62\one-click62\plugins\build-common-plugin.xml:262:
The following error occurred while executing this line:
D:\Migration-work-for_Liferay62\one-click62\plugins\build-common.xml:634: Compil
e failed; see the compiler error output for details.
Total time: 42 seconds
I have changed the package in the class
D:\Migration-work-for_Liferay62\one-click62\plugins\webs
\kaleo-web\docroot\WEB-INF\service\com\liferay\portal\workflow\kaleo\definition\
DurationScale.java
From com.liferay.compat.portal.kernel.scheduler.CronText to com.liferay.portal.kernel.scheduler.CronText and then performed ant build-service and the ant deploy, then kaleo-web successfully deployed.
Reference: https://www.liferay.com/community/forums/-/message_boards/message/58130766
Related
I'm running into these errors building Apache POI with JDK 11. Suggestions to overcome this greatly appreciated.
*[exec] [javac] Ignoring source, target and bootclasspath as release has been set
[exec] [javac] git/poi-5.2.2/poi-ooxml/src/main/java/org/apache/poi/xslf/draw/SVGUserAgent.java:66: error: cannot access ViewCSS
[exec] [javac] String viewBoxStr = el.getAttributeNS(null, SVGConstants.SVG_VIEW_BOX_ATTRIBUTE);
[exec] [javac] ^
[exec] [javac] class file for org.w3c.dom.css.ViewCSS not found
[exec] [javac] poi-5.2.2/poi-ooxml/src/main/java/org/apache/poi/xslf/draw/SVGUserAgent.java:81: error: cannot access DocumentCSS
[exec] [javac] String a = el.getAttributeNS(null, attr);
[exec] [javac] ^
[exec] [javac] class file for org.w3c.dom.css.DocumentCSS not found
[exec] [javac] Note: Some input files use or override a deprecated API.
[exec] [javac] Note: Recompile with -Xlint:deprecation for details.
[exec] [javac] 2 errors*
I wrote a program in python, and was trying to compile it into a .exe file using pyinstaller. It gets converted successfully, and I can run the exe file on my device. However, but during compilation, I get many 'lib not found' warnings.
They are as follows:
165185 WARNING: lib not found: _pywrap_tensorflow_internal.pyd dependency of c:\users\chinu\appdata\local\programs\python\python38\lib\site-packages\tensorflow\python\lib\io\_pywrap_file_io.pyd
165210 WARNING: lib not found: _pywrap_tensorflow_internal.pyd dependency of c:\users\chinu\appdata\local\programs\python\python38\lib\site-packages\tensorflow\python\framework\_op_def_util.pyd
165293 WARNING: lib not found: _pywrap_tensorflow_internal.pyd dependency of c:\users\chinu\appdata\local\programs\python\python38\lib\site-packages\tensorflow\python\framework\_pywrap_python_api_dispatcher.pyd
165329 WARNING: lib not found: _pywrap_tensorflow_internal.pyd dependency of c:\users\chinu\appdata\local\programs\python\python38\lib\site-packages\tensorflow\python\client\_pywrap_device_lib.pyd
165363 WARNING: lib not found: _pywrap_tensorflow_internal.pyd dependency of c:\users\chinu\appdata\local\programs\python\python38\lib\site-packages\tensorflow\python\client\_pywrap_tf_session.pyd
165389 WARNING: lib not found: _pywrap_tensorflow_internal.pyd dependency of c:\users\chinu\appdata\local\programs\python\python38\lib\site-packages\tensorflow\python\client\_pywrap_debug_events_writer.pyd
165603 WARNING: lib not found: _pywrap_tensorflow_internal.pyd dependency of c:\users\chinu\appdata\local\programs\python\python38\lib\site-packages\tensorflow\python\saved_model\experimental\pywrap_libexport.pyd
165627 WARNING: lib not found: _pywrap_tensorflow_internal.pyd dependency of c:\users\chinu\appdata\local\programs\python\python38\lib\site-packages\tensorflow\python\framework\_errors_test_helper.pyd
165674 WARNING: lib not found: _pywrap_tensorflow_internal.pyd dependency of c:\users\chinu\appdata\local\programs\python\python38\lib\site-packages\tensorflow\python\profiler\internal\_pywrap_profiler.pyd
165699 WARNING: lib not found: _pywrap_tensorflow_internal.pyd dependency of c:\users\chinu\appdata\local\programs\python\python38\lib\site-packages\tensorflow\python\grappler\_pywrap_tf_item.pyd
165727 WARNING: lib not found: _pywrap_tensorflow_internal.pyd dependency of c:\users\chinu\appdata\local\programs\python\python38\lib\site-packages\tensorflow\python\util\_pywrap_checkpoint_reader.pyd
165772 WARNING: lib not found: _pywrap_tensorflow_internal.pyd dependency of c:\users\chinu\appdata\local\programs\python\python38\lib\site-packages\tensorflow\python\util\_pywrap_nest.pyd
165832 WARNING: lib not found: _pywrap_tensorflow_internal.pyd dependency of c:\users\chinu\appdata\local\programs\python\python38\lib\site-packages\tensorflow\python\util\_pywrap_tfprof.pyd
165856 WARNING: lib not found: _pywrap_tensorflow_internal.pyd dependency of c:\users\chinu\appdata\local\programs\python\python38\lib\site-packages\tensorflow\python\util\_pywrap_utils.pyd
165881 WARNING: lib not found: _pywrap_tensorflow_internal.pyd dependency of c:\users\chinu\appdata\local\programs\python\python38\lib\site-packages\tensorflow\python\util\_pywrap_kernel_registry.pyd
165992 WARNING: lib not found: _pywrap_tensorflow_internal.pyd dependency of c:\users\chinu\appdata\local\programs\python\python38\lib\site-packages\tensorflow\python\util\_pywrap_stat_summarizer.pyd
166012 WARNING: lib not found: _pywrap_tensorflow_internal.pyd dependency of c:\users\chinu\appdata\local\programs\python\python38\lib\site-packages\tensorflow\python\lib\io\_pywrap_record_io.pyd
166038 WARNING: lib not found: _pywrap_tensorflow_internal.pyd dependency of c:\users\chinu\appdata\local\programs\python\python38\lib\site-packages\tensorflow\python\client\_pywrap_events_writer.pyd
166066 WARNING: lib not found: _pywrap_tensorflow_internal.pyd dependency of c:\users\chinu\appdata\local\programs\python\python38\lib\site-packages\tensorflow\python\framework\_dtypes.pyd
166085 WARNING: lib not found: _pywrap_tensorflow_internal.pyd dependency of c:\users\chinu\appdata\local\programs\python\python38\lib\site-packages\tensorflow\python\grappler\_pywrap_tf_cluster.pyd
166113 WARNING: lib not found: _pywrap_tensorflow_internal.pyd dependency of c:\users\chinu\appdata\local\programs\python\python38\lib\site-packages\tensorflow\python\grappler\_pywrap_tf_optimizer.pyd
166156 WARNING: lib not found: _pywrap_tensorflow_internal.pyd dependency of c:\users\chinu\appdata\local\programs\python\python38\lib\site-packages\tensorflow\python\framework\_pywrap_python_api_info.pyd
166183 WARNING: lib not found: _pywrap_tensorflow_internal.pyd dependency of c:\users\chinu\appdata\local\programs\python\python38\lib\site-packages\tensorflow\python\framework\_op_def_registry.pyd
166211 WARNING: lib not found: _pywrap_tensorflow_internal.pyd dependency of c:\users\chinu\appdata\local\programs\python\python38\lib\site-packages\tensorflow\python\framework\_pywrap_python_op_gen.pyd
166256 WARNING: lib not found: _pywrap_tensorflow_internal.pyd dependency of c:\users\chinu\appdata\local\programs\python\python38\lib\site-packages\tensorflow\python\profiler\internal\_pywrap_traceme.pyd
166278 WARNING: lib not found: _pywrap_tensorflow_internal.pyd dependency of c:\users\chinu\appdata\local\programs\python\python38\lib\site-packages\tensorflow\python\util\_pywrap_tensor_float_32_execution.pyd
166293 WARNING: lib not found: _pywrap_tensorflow_internal.pyd dependency of c:\users\chinu\appdata\local\programs\python\python38\lib\site-packages\tensorflow\python\data\experimental\service\_pywrap_server_lib.pyd
166319 WARNING: lib not found: _pywrap_tensorflow_internal.pyd dependency of c:\users\chinu\appdata\local\programs\python\python38\lib\site-packages\tensorflow\python\util\_pywrap_transform_graph.pyd
166448 WARNING: lib not found: _pywrap_tensorflow_internal.pyd dependency of c:\users\chinu\appdata\local\programs\python\python38\lib\site-packages\tensorflow\python\framework\_pywrap_python_api_parameter_converter.pyd
166470 WARNING: lib not found: torch_python.dll dependency of c:\users\chinu\appdata\local\programs\python\python38\lib\site-packages\torch\_C.cp38-win_amd64.pyd
166546 WARNING: lib not found: _pywrap_tensorflow_internal.pyd dependency of c:\users\chinu\appdata\local\programs\python\python38\lib\site-packages\tensorflow\python\lib\core\_pywrap_py_func.pyd
166557 WARNING: lib not found: _pywrap_tensorflow_internal.pyd dependency of c:\users\chinu\appdata\local\programs\python\python38\lib\site-packages\tensorflow\python\lib\core\_pywrap_bfloat16.pyd
166568 WARNING: lib not found: _pywrap_tensorflow_internal.pyd dependency of c:\users\chinu\appdata\local\programs\python\python38\lib\site-packages\tensorflow\python\platform\_pywrap_stacktrace_handler.pyd
All of them are related to tensorflow, except one which is torch_python.dll. The folder named tensorflow in site-packages exists, but the files are not there. Apart from this it shows warning for hidden imports for tensorflow again.
Following are the hidden import warnings:
130756 WARNING: Hidden import "tensorflow._api.v2.compat.v2.compat.v1.keras.initializers" not found!
130898 WARNING: Hidden import "tensorflow._api.v2.compat.v2.compat.v1.keras.layers.experimental.preprocessing" not found!
131048 WARNING: Hidden import "tensorflow._api.v2.compat.v1.compat.v2.keras.layers" not found!
131050 WARNING: Hidden import "tensorflow._api.v2.compat.v2.compat.v1.v1" not found!
131057 WARNING: Hidden import "tensorflow._api.v2.compat.v2.keras.backend" not found!
131057 WARNING: Hidden import "tensorflow._api.v2.compat.v1.compat.v2.keras.datasets.reuters" not found!
131144 WARNING: Hidden import "tensorflow._api.v2.compat.v2.compat.v2.keras.regularizers" not found!
131145 WARNING: Hidden import "tensorflow._api.v2.compat.v1.compat.v2.estimator.experimental" not found!
131146 WARNING: Hidden import "tensorflow._api.v2.compat.v2.keras.premade" not found!
131147 WARNING: Hidden import "tensorflow._api.v2.compat.v2.estimator" not found!
131407 WARNING: Hidden import "tensorflow._api.v2.compat.v2.compat.v2.keras.preprocessing.image" not found!
131456 WARNING: Hidden import "tensorflow._api.v2.compat.v1.compat.v1.keras.datasets" not found!
131456 WARNING: Hidden import "tensorflow._api.v2.compat.v2.compat.v2.keras.__internal__.backend" not found!
131458 WARNING: Hidden import "tensorflow._api.v2.compat.v1.compat.v2.keras.__internal__" not found!
131458 WARNING: Hidden import "tensorflow._api.v2.compat.v2.compat.v1.keras.losses" not found!
131464 WARNING: Hidden import "tensorflow._api.v2.compat.v2.compat.v2.keras.applications.inception_v3" not found!
131465 WARNING: Hidden import "tensorflow._api.v2.compat.v1.keras.callbacks" not found!
131468 WARNING: Hidden import "tensorflow._api.v2.compat.v2.keras.datasets.cifar100" not found!
131621 WARNING: Hidden import "tensorflow._api.v2.compat.v1.compat.v2.keras.applications.nasnet" not found!
131622 WARNING: Hidden import "tensorflow._api.v2.compat.v1.compat.v2.keras.activations" not found!
131631 WARNING: Hidden import "tensorflow._api.v2.compat.v1.keras.estimator" not found!
131631 WARNING: Hidden import "tensorflow._api.v2.compat.v1.compat.v2.keras.optimizers" not found!
131633 WARNING: Hidden import "tensorflow._api.v2.compat.v2.compat.v2.v2" not found!
131635 WARNING: Hidden import "tensorflow._api.v2.compat.v1.compat.v1.keras.applications.mobilenet_v2" not found!
131644 WARNING: Hidden import "tensorflow._api.v2.compat.v2.compat.v1.keras.datasets.reuters" not found!
131646 WARNING: Hidden import "tensorflow._api.v2.compat.v1.keras.optimizers" not found!
131647 WARNING: Hidden import "tensorflow._api.v2.compat.v2.compat.v1.keras.__internal__.legacy" not found!
131829 WARNING: Hidden import "tensorflow._api.v2.compat.v2.keras.callbacks.experimental" not found!
131830 WARNING: Hidden import "tensorflow._api.v2.compat.v1.compat.v1.keras.applications" not found!
131832 WARNING: Hidden import "tensorflow._api.v2.compat.v1.keras.applications.xception" not found!
131833 WARNING: Hidden import "tensorflow._api.v2.compat.v1.keras.utils" not found!
131905 WARNING: Hidden import "tensorflow._api.v2.compat.v1.compat.v1.keras.datasets.cifar100" not found!
131906 WARNING: Hidden import "tensorflow._api.v2.compat.v2.compat.v2.keras.experimental" not found!
131912 WARNING: Hidden import "tensorflow._api.v2.compat.v1.compat.v2.keras.layers.experimental.preprocessing" not found!
131962 WARNING: Hidden import "tensorflow._api.v2.compat.v1.compat.v2.keras.applications.inception_resnet_v2" not found!
132010 WARNING: Hidden import "tensorflow._api.v2.compat.v2.compat.v1.keras.optimizers.schedules" not found!
132101 WARNING: Hidden import "tensorflow._api.v2.compat.v2.compat.v1.keras.premade" not found!
132105 WARNING: Hidden import "tensorflow._api.v2.compat.v2.compat.v1.keras.__internal__.legacy.layers.experimental" not found!
132106 WARNING: Hidden import "tensorflow._api.v2.compat.v1.compat.v2.keras.applications.xception" not found!
132117 WARNING: Hidden import "tensorflow._api.v2.compat.v1.keras.__internal__.legacy.layers.experimental" not found!
132118 WARNING: Hidden import "tensorflow._api.v2.compat.v1.keras.__internal__" not found!
132126 WARNING: Hidden import "tensorflow._api.v2.compat.v1.keras.applications.vgg19" not found!
132214 WARNING: Hidden import "tensorflow._api.v2.compat.v1.keras.mixed_precision" not found!
132215 WARNING: Hidden import "tensorflow._api.v2.compat.v1.compat.v2.keras.applications.inception_v3" not found!
132227 WARNING: Hidden import "tensorflow._api.v2.compat.v2.compat.v2.keras.applications.vgg19" not found!
132280 WARNING: Hidden import "tensorflow._api.v2.compat.v1.compat.v1.keras.premade" not found!
132281 WARNING: Hidden import "tensorflow._api.v2.compat.v2.compat.v1.keras.applications.mobilenet_v2" not found!
132291 WARNING: Hidden import "tensorflow._api.v2.compat.v1.compat.v1.keras.preprocessing.image" not found!
132291 WARNING: Hidden import "tensorflow._api.v2.compat.v1.keras.applications.inception_resnet_v2" not found!
132292 WARNING: Hidden import "tensorflow._api.v2.compat.v1.keras.applications.imagenet_utils" not found!
132295 WARNING: Hidden import "tensorflow._api.v2.compat.v2.compat.v2.keras.datasets.imdb" not found!
132395 WARNING: Hidden import "tensorflow._api.v2.compat.v1.keras.datasets" not found!
132396 WARNING: Hidden import "tensorflow._api.v2.compat.v2.keras.__internal__.utils" not found!
132398 WARNING: Hidden import "tensorflow._api.v2.compat.v2.compat.v1.keras.utils" not found!
132404 WARNING: Hidden import "tensorflow._api.v2.compat.v2.keras.datasets.boston_housing" not found!
132405 WARNING: Hidden import "tensorflow._api.v2.compat.v2.compat.v2.keras.layers.experimental.preprocessing" not found!
132406 WARNING: Hidden import "tensorflow._api.v2.compat.v1.compat.v2.keras.premade" not found!
132408 WARNING: Hidden import "tensorflow._api.v2.compat.v2.compat.v1.estimator.tpu.experimental" not found!
132583 WARNING: Hidden import "tensorflow._api.v2.compat.v2.keras.callbacks" not found!
132584 WARNING: Hidden import "tensorflow._api.v2.compat.v2.keras.layers" not found!
132592 WARNING: Hidden import "tensorflow._api.v2.compat.v2.compat.v2.keras.mixed_precision" not found!
132637 WARNING: Hidden import "tensorflow._api.v2.compat.v2.compat.v1.keras.applications.resnet" not found!
132643 WARNING: Hidden import "tensorflow._api.v2.compat.v1.compat.v2.keras.datasets.cifar100" not found!
132643 WARNING: Hidden import "tensorflow._api.v2.compat.v1.keras.datasets.imdb" not found!
132646 WARNING: Hidden import "tensorflow._api.v2.compat.v2.compat.v1.keras.datasets.imdb" not found!
132647 WARNING: Hidden import "tensorflow._api.v2.compat.v1.compat.v1.estimator.tpu" not found!
132648 WARNING: Hidden import "tensorflow._api.v2.compat.v1.compat.v2.keras.wrappers" not found!
132649 WARNING: Hidden import "tensorflow._api.v2.compat.v2.compat.v2.keras.estimator" not found!
132650 WARNING: Hidden import "tensorflow._api.v2.compat.v2.v2" not found!
132661 WARNING: Hidden import "tensorflow._api.v2.compat.v1.compat.v2.keras.losses" not found!
132672 WARNING: Hidden import "tensorflow._api.v2.compat.v2.compat.v2.keras.applications.imagenet_utils" not found!
132672 WARNING: Hidden import "tensorflow._api.v2.compat.v2.compat.v2.keras.wrappers.scikit_learn" not found!
132674 WARNING: Hidden import "tensorflow._api.v2.compat.v2.keras.applications.imagenet_utils" not found!
132683 WARNING: Hidden import "tensorflow._api.v2.compat.v1.compat.v1.keras.preprocessing.text" not found!
132684 WARNING: Hidden import "tensorflow._api.v2.compat.v2.keras.losses" not found!
132777 WARNING: Hidden import "tensorflow._api.v2.compat.v1.keras.regularizers" not found!
132778 WARNING: Hidden import "tensorflow._api.v2.compat.v1.compat.v2.keras.applications.vgg19" not found!
132780 WARNING: Hidden import "tensorflow._api.v2.compat.v1.compat.v2.keras.applications.resnet_v2" not found!
Is there any way I can download them and paste them into the folder or if it can auto-download in any way? Will this create an issue when running the program on another device?
Yes, Add these two arguments in your pyinstaller command:
--add-data="c:\users\chinu\appdata\local\programs\python\python38\lib\site-packages\tensorflow;."
--add-data="c:\users\chinu\appdata\local\programs\python\python38\lib\site-packages\torch\_C.cp38-win_amd64.pyd;."
I can run the exe file on my device
It means that you can run it on other devices without any issues
Is there anyway I can download them and paste them in the folder or if it can auto download in any way?
pip install tensorflow must work.
Update: Try building tensorflow manually. You can find full guides here. This will work for sure.
I'm having some issues getting installing pdftotext in Python 3.6 (Anaconda 5.1.0) on CentOS.
Some quick notes first:
I'm using CentOS 6.7 on VirtualBox
I know it can work because my IT group has it installed on our server. NOTE: I found that our server did have the C++ wrapper installed and I'm trying to figure out how the got it.
I'm trying to get an existing application to work, so I'm not looking for an alternative to pdftotext the library at this time.
I followed the instructions from the github repo and already tried this step:
Fedora, Red Hat, and friends:
sudo yum install gcc-c++ pkgconfig poppler-cpp-devel python-devel redhat-rpm-config
But the problem seems to be around poppler-cpp-devel. I don't see that package within yum search poppler:
============================= N/S Matched: poppler =============================
poppler-devel.i686 : Libraries and headers for poppler
poppler-devel.x86_64 : Libraries and headers for poppler
poppler-glib.i686 : Glib wrapper for poppler
poppler-glib.x86_64 : Glib wrapper for poppler
poppler-qt.i686 : Qt3 wrapper for poppler
poppler-qt.x86_64 : Qt3 wrapper for poppler
poppler-qt4.i686 : Qt4 wrapper for poppler
poppler-qt4.x86_64 : Qt4 wrapper for poppler
poppler.i686 : PDF rendering library
poppler.x86_64 : PDF rendering library
poppler-data.noarch : Encoding files
poppler-glib-devel.i686 : Development files for glib wrapper
poppler-glib-devel.x86_64 : Development files for glib wrapper
poppler-qt-devel.i686 : Development files for Qt3 wrapper
poppler-qt-devel.x86_64 : Development files for Qt3 wrapper
poppler-qt4-devel.i686 : Development files for Qt4 wrapper
poppler-qt4-devel.x86_64 : Development files for Qt4 wrapper
poppler-utils.x86_64 : Command line utilities for converting PDF files
My IT group gave me the instructions of what they had attempted and I tried installing poppler-devel and poppler-glib. But every time I try pip install pdftotext I'm getting the following output:
[root#localhost stack]# pip install pdftotext
Collecting pdftotext
Using cached https://files.pythonhosted.org/packages/21/35/60094dbadd9de2035873390b1cac25e01da605844eba6a07a53a82fa4adc/pdftotext-2.1.1.tar.gz
Building wheels for collected packages: pdftotext
Building wheel for pdftotext (setup.py) ... error
Complete output from command /root/anaconda3/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-1mu2f1n2/pdftotext/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/pip-wheel-khm9zova --python-tag cp36:
/root/anaconda3/lib/python3.6/distutils/dist.py:261: UserWarning: Unknown distribution option: 'long_description_content_type'
warnings.warn(msg)
running bdist_wheel
running build
running build_ext
building 'pdftotext' extension
creating build
creating build/temp.linux-x86_64-3.6
gcc -pthread -B /root/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DPOPPLER_CPP_AT_LEAST_0_30_0=0 -I/root/anaconda3/include/python3.6m -c pdftotext.cpp -o build/temp.linux-x86_64-3.6/pdftotext.o -Wall
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++
pdftotext.cpp:3:42: error: poppler/cpp/poppler-document.h: No such file or directory
pdftotext.cpp:4:40: error: poppler/cpp/poppler-global.h: No such file or directory
pdftotext.cpp:5:38: error: poppler/cpp/poppler-page.h: No such file or directory
pdftotext.cpp:20: error: ‘poppler’ has not been declared
pdftotext.cpp:20: error: ISO C++ forbids declaration of ‘document’ with no type
pdftotext.cpp:20: error: expected ‘;’ before ‘*’ token
pdftotext.cpp: In function ‘void PDF_clear(PDF*)’:
pdftotext.cpp:26: error: ‘struct PDF’ has no member named ‘doc’
pdftotext.cpp:27: error: ‘struct PDF’ has no member named ‘doc’
pdftotext.cpp: In function ‘int PDF_create_doc(PDF*)’:
pdftotext.cpp:66: error: ‘struct PDF’ has no member named ‘doc’
pdftotext.cpp:66: error: ‘poppler’ has not been declared
pdftotext.cpp:67: error: ‘struct PDF’ has no member named ‘doc’
pdftotext.cpp: In function ‘int PDF_unlock(PDF*, char*)’:
pdftotext.cpp:75: error: ‘struct PDF’ has no member named ‘doc’
pdftotext.cpp: In function ‘int PDF_init(PDF*, PyObject*, PyObject*)’:
pdftotext.cpp:105: error: ‘struct PDF’ has no member named ‘doc’
pdftotext.cpp: In function ‘PyObject* PDF_read_page(PDF*, int)’:
pdftotext.cpp:119: error: ‘poppler’ has not been declared
pdftotext.cpp:119: error: expected initializer before ‘*’ token
pdftotext.cpp:120: error: ‘poppler’ has not been declared
pdftotext.cpp:120: error: expected ‘;’ before ‘layout_mode’
pdftotext.cpp:123: error: ‘page’ was not declared in this scope
pdftotext.cpp:123: error: ‘struct PDF’ has no member named ‘doc’
pdftotext.cpp:129: error: ‘poppler’ has not been declared
pdftotext.cpp:129: error: expected initializer before ‘rect’
pdftotext.cpp:130: error: ‘rect’ was not declared in this scope
pdftotext.cpp:133: error: ‘layout_mode’ was not declared in this scope
pdftotext.cpp:133: error: ‘poppler’ has not been declared
pdftotext.cpp:135: error: ‘poppler’ has not been declared
pdftotext.cpp:137: error: ‘poppler’ has not been declared
pdftotext.cpp:138: error: type ‘<type error>’ argument given to ‘delete’, expected pointer
error: command 'gcc' failed with exit status 1
----------------------------------------
Failed building wheel for pdftotext
Running setup.py clean for pdftotext
Failed to build pdftotext
Installing collected packages: pdftotext
Running setup.py install for pdftotext ... error
Complete output from command /root/anaconda3/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-1mu2f1n2/pdftotext/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-ghuhvuhl/install-record.txt --single-version-externally-managed --compile:
/root/anaconda3/lib/python3.6/distutils/dist.py:261: UserWarning: Unknown distribution option: 'long_description_content_type'
warnings.warn(msg)
running install
running build
running build_ext
building 'pdftotext' extension
creating build
creating build/temp.linux-x86_64-3.6
gcc -pthread -B /root/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DPOPPLER_CPP_AT_LEAST_0_30_0=0 -I/root/anaconda3/include/python3.6m -c pdftotext.cpp -o build/temp.linux-x86_64-3.6/pdftotext.o -Wall
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++
pdftotext.cpp:3:42: error: poppler/cpp/poppler-document.h: No such file or directory
pdftotext.cpp:4:40: error: poppler/cpp/poppler-global.h: No such file or directory
pdftotext.cpp:5:38: error: poppler/cpp/poppler-page.h: No such file or directory
pdftotext.cpp:20: error: ‘poppler’ has not been declared
pdftotext.cpp:20: error: ISO C++ forbids declaration of ‘document’ with no type
pdftotext.cpp:20: error: expected ‘;’ before ‘*’ token
pdftotext.cpp: In function ‘void PDF_clear(PDF*)’:
pdftotext.cpp:26: error: ‘struct PDF’ has no member named ‘doc’
pdftotext.cpp:27: error: ‘struct PDF’ has no member named ‘doc’
pdftotext.cpp: In function ‘int PDF_create_doc(PDF*)’:
pdftotext.cpp:66: error: ‘struct PDF’ has no member named ‘doc’
pdftotext.cpp:66: error: ‘poppler’ has not been declared
pdftotext.cpp:67: error: ‘struct PDF’ has no member named ‘doc’
pdftotext.cpp: In function ‘int PDF_unlock(PDF*, char*)’:
pdftotext.cpp:75: error: ‘struct PDF’ has no member named ‘doc’
pdftotext.cpp: In function ‘int PDF_init(PDF*, PyObject*, PyObject*)’:
pdftotext.cpp:105: error: ‘struct PDF’ has no member named ‘doc’
pdftotext.cpp: In function ‘PyObject* PDF_read_page(PDF*, int)’:
pdftotext.cpp:119: error: ‘poppler’ has not been declared
pdftotext.cpp:119: error: expected initializer before ‘*’ token
pdftotext.cpp:120: error: ‘poppler’ has not been declared
pdftotext.cpp:120: error: expected ‘;’ before ‘layout_mode’
pdftotext.cpp:123: error: ‘page’ was not declared in this scope
pdftotext.cpp:123: error: ‘struct PDF’ has no member named ‘doc’
pdftotext.cpp:129: error: ‘poppler’ has not been declared
pdftotext.cpp:129: error: expected initializer before ‘rect’
pdftotext.cpp:130: error: ‘rect’ was not declared in this scope
pdftotext.cpp:133: error: ‘layout_mode’ was not declared in this scope
pdftotext.cpp:133: error: ‘poppler’ has not been declared
pdftotext.cpp:135: error: ‘poppler’ has not been declared
pdftotext.cpp:137: error: ‘poppler’ has not been declared
pdftotext.cpp:138: error: type ‘<type error>’ argument given to ‘delete’, expected pointer
error: command 'gcc' failed with exit status 1
----------------------------------------
Command "/root/anaconda3/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-1mu2f1n2/pdftotext/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-ghuhvuhl/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-install-1mu2f1n2/pdftotext/
I'm assuming the problem here is that it's looking for the C++ compiled files and I could only get the glib?
What I can look into?
pdftotext should be in poppler-utils, so try yum install poppler-utils
EDIT: Hmm. There's a package called pypoppler available for CentOS 6 in the EPEL repository, which describes itself as "Python bindings for the Poppler PDF rendering library." I see no indication that it includes poppler/cpp/{anything}, but you can give it a try. (You may need to install pycairo first.)
Failing that, you might try installing an earlier version of pdftotext (e.g. pip install pdftotext==1.0.0) to find one compatible with CentOS 6. The earliest version came out in June of 2017, though, so that may not help.
I don't suppose you're interested in upgrading to CentOS 7?
There actually is a proper CentOS 7 package. It is not enough to install the poppler-devel package as it does not include the CPP header files that is required and you simply need to install the poppler-cpp and poppler-cpp-devel packages:
yum install poppler-cpp poppler-cpp-devel
After this you can pip/pip3 install the pdftotext package without custom compiling and setting environment path variables.
I found the solution to this. By following the instructions for installing libpoppler-cpp from this link, I was able to successfully install the pdftotext.
Following the instructions from this repo:
On CentOS
On CentOS the libpoppler-cpp library is not included with the system so we need to build from source. Note that recent versions of poppler require C++11 which is not available on CentOS, so we build a slightly older version of libpoppler.
# Build dependencies
yum install wget xz libjpeg-devel openjpeg2-devel
# Download and extract
wget https://poppler.freedesktop.org/poppler-0.47.0.tar.xz
tar -Jxvf poppler-0.47.0.tar.xz
cd poppler-0.47.0
# Build and install
./configure
make
sudo make install
By default libraries get installed in /usr/local/lib and /usr/local/include. On CentOS this is not a default search path so we need to set PKG_CONFIG_PATH and LD_LIBRARY_PATH to point R to the right directory:
export LD_LIBRARY_PATH="/usr/local/lib"
export PKG_CONFIG_PATH="/usr/local/lib/pkgconfig"
I am new to Haskell and am having an issue running the following code:
module Main (
main
) where
main = putStrLn "Hello, world!"
SublimeHaskell tries to compile and run the above using
runhaskell hello.hs
which returns the error
hello.o: getModificationTime: invalid argument (The system cannot find the file specified.)
I have also tried to run it using
ghc --make hello.hs
with the same error. When I try to manually compile the code before running using the command line
ghc -c hello.hs
I get a different error:
CreateDirectory ".": invalid argument (Cannot create a file when that file already exists.)
On the other hand, I can run the program via the REPL without issue:
ghci
GHCi, version 8.0.1: http://www.haskel.org/ghc/ :? for help
Prelude> putStrLn "Hello, world!"
Hello, world!
If it's relevant, I am using Windows 7, and I installed GHC using the Haskell Platform installer.
***edit running the above commands with the -v flag gives the following results:
ghc -v hello.hs
Glasgow Haskell Compiler, Version 8.0.1, stage 2 booted by GHC version 7.10.2
Using binary package database: C:\Program Files\Haskell Platform\8.0.1\lib\package.conf.d\package.cache
loading package database C:\Program Files\Haskell Platform\8.0.1\lib\package.conf.d
wired-in package ghc-prim mapped to ghc-prim-0.5.0.0
wired-in package integer-gmp mapped to integer-gmp-1.0.0.1
wired-in package base mapped to base-4.9.0.0
wired-in package rts mapped to rts
wired-in package template-haskell mapped to template-haskell-2.11.0.0
wired-in package ghc mapped to ghc-8.0.1
wired-in package dph-seq not found.
wired-in package dph-par not found.
Hsc static flags:
loading package database C:\Program Files\Haskell Platform\8.0.1\lib\package.conf.d
wired-in package ghc-prim mapped to ghc-prim-0.5.0.0
wired-in package integer-gmp mapped to integer-gmp-1.0.0.1
wired-in package base mapped to base-4.9.0.0
wired-in package rts mapped to rts-1.0
wired-in package template-haskell mapped to template-haskell-2.11.0.0
wired-in package ghc mapped to ghc-8.0.1
wired-in package dph-seq not found.
wired-in package dph-par not found.
*** Chasing dependencies:
Chasing modules from: *hello.hs
*** Deleting temp files:
Deleting:
*** Deleting temp dirs:
Deleting:
hello.o: getModificationTime: invalid argument (The system cannot find the file specified.)
ghc -c -v hello.hs
Glasgow Haskell Compiler, Version 8.0.1, stage 2 booted by GHC version 7.10.2
Using binary package database: C:\Program Files\Haskell Platform\8.0.1\lib\package.conf.d\package.cache
loading package database C:\Program Files\Haskell Platform\8.0.1\lib\package.conf.d
wired-in package ghc-prim mapped to ghc-prim-0.5.0.0
wired-in package integer-gmp mapped to integer-gmp-1.0.0.1
wired-in package base mapped to base-4.9.0.0
wired-in package rts mapped to rts
wired-in package template-haskell mapped to template-haskell-2.11.0.0
wired-in package ghc mapped to ghc-8.0.1
wired-in package dph-seq not found.
wired-in package dph-par not found.
Hsc static flags:
*** Checking old interface for Main:
*** Parser [Main]:
!!! Parser [Main]: finished in 0.00 milliseconds, allocated 0.067 megabytes
*** Renamer/typechecker [Main]:
!!! Renamer/typechecker [Main]: finished in 46.80 milliseconds, allocated 15.720 megabytes
*** Desugar [Main]:
Result size of Desugar (after optimization)
= {terms: 13, types: 6, coercions: 0}
!!! Desugar [Main]: finished in 0.00 milliseconds, allocated 0.204 megabytes
*** Simplifier [Main]:
Result size of Simplifier iteration=1
= {terms: 17, types: 8, coercions: 0}
Result size of Simplifier = {terms: 17, types: 8, coercions: 0}
!!! Simplifier [Main]: finished in 0.00 milliseconds, allocated 0.171 megabytes
*** CoreTidy [Main]:
Result size of Tidy Core = {terms: 17, types: 8, coercions: 0}
!!! CoreTidy [Main]: finished in 0.00 milliseconds, allocated 2.558 megabytes
*** Deleting temp files:
Deleting:
*** Deleting temp dirs:
Deleting:
CreateDirectory ".": invalid argument (Cannot create a file when that file already exists.)
After looking around, it seems that the two packages that are listed as not found (dph-seq and dph-par) have been deprecated.
GHC requires that the file be named the same as the module in order to compile it.
However, any module can be loaded into GHCi regardless of file name. This is why repl worked but compiling did not.
In your case, therefore, you should rename the file Main.hs
I'm really newbie with Haskell and I have serious problems with Data.HashMap. What I'm doing wrong?
Here is what I have tried:
> ghci -v
GHCi, version 6.12.1: http://www.haskell.org/ghc/ :? for help
Glasgow Haskell Compiler, Version 6.12.1, for Haskell 98, stage 2 booted by GHC version 6.12.1
Using binary package database: /usr/lib/ghc-6.12.1/package.conf.d/package.cache
Using binary package database: /home/joni/.ghc/x86_64-linux-6.12.1/package.conf.d/package.cache
package utf8-string-0.3.4-15837bafc9579c596819d4381db0f19b is shadowed by package utf8-string-0.3.4-75a948ddecbeae79ab3ec3d9f9bcdb65
package vimirc-0.0.0.1-d41d8cd98f00b204e9800998ecf8427e is unusable due to missing or recursive dependencies:
utf8-string-0.3.4-15837bafc9579c596819d4381db0f19b
hiding package base-3.0.3.2 to avoid conflict with later version base-4.2.0.0
hiding package bytestring-0.9.1.5 to avoid conflict with later version bytestring-0.9.1.10
wired-in package ghc-prim mapped to ghc-prim-0.2.0.0-9d35c97e886f807a1e6d024aaa91dcec
wired-in package integer-gmp mapped to integer-gmp-0.2.0.0-9a51ffb34a83618a1a3d4e472b9977a0
wired-in package base mapped to base-4.2.0.0-2cc27b7e43511c4ca001642a7f77a8f6
wired-in package rts mapped to builtin_rts
wired-in package haskell98 mapped to haskell98-1.0.1.1-0fdaf3b26bc38c43ce8371edf538dbf6
wired-in package template-haskell mapped to template-haskell-2.4.0.0-bbc7c61990d2fe9d20be2deb924f833c
wired-in package dph-seq mapped to dph-seq-0.4.0-52cfd6db5fc09a2abf793cd6a856a392
wired-in package dph-par mapped to dph-par-0.4.0-b4f339fed900d7bc4b3db61526caf863
Hsc static flags: -static
Loading package ghc-prim ... linking ... done.
Loading package integer-gmp ... linking ... done.
Loading package base ... linking ... done.
Prelude> t <- Data.HashTable.new (==) Data.HashTable.hashString
*** Parser:
*** Desugar:
*** Simplify:
*** CorePrep:
*** ByteCodeGen:
Prelude> Data.HashTable.insert t "Joni" 1
*** Parser:
<interactive>:1:31:
No instance for (Num GHC.Prim.Any)
arising from the literal `1' at <interactive>:1:31
Possible fix: add an instance declaration for (Num GHC.Prim.Any)
In the third argument of `Data.HashTable.insert', namely `1'
In the expression: Data.HashTable.insert t "Joni" 1
In the definition of `it': it = Data.HashTable.insert t "Joni" 1
Prelude> Data.HashTable.insert t "Joni" "1"
*** Parser:
<interactive>:1:31:
Couldn't match expected type `GHC.Prim.Any'
against inferred type `[Char]'
In the third argument of `Data.HashTable.insert', namely `"1"'
In the expression: Data.HashTable.insert t "Joni" "1"
In the definition of `it': it = Data.HashTable.insert t "Joni" "1"
You have to tell it which type you want to store in the hashtable. This works:
t <- Data.HashTable.new (==) Data.HashTable.hashString :: IO (Data.HashTable.HashTable String Integer)
Data.HashTable.insert t "Joni" 1