Bin/sh Error Importing Function Definition For
Contents |
Support Search GitHub This repository Watch 164 Star 1,478 Fork 738 drush-ops/drush Code Issues 347 Pull requests 91 Projects 0 Wiki Pulse Graphs New issue BASH 4.3.42 Errors - error importing fucntion definition for BASH_FUNC_module error importing function definition for bash_func_module' Fedora 23 (F23) #2065 Open taz77 opened this Issue Mar 13, 2016 · 20 comments
Error Importing Function Definition For Bash_func
Projects None yet Labels type-bug Milestone No milestone Assignees greg-1-anderson 7 participants taz77 commented Mar 13, 2016 I have been trying to
Error Importing Function Definition For Module'
resolve this but I haven't been able to on my own. Hoping someone else here has some insight. Running the latest Drush (via Composer global install) I get errors in bash on Fedora 23 which is
Bash Error Importing Function Definition
using Bash version 4.3.42. This error: sh: scl: line 1: syntax error: unexpected end of file sh: error importing function definition for `BASH_FUNC_scl' and: sh: module: line 1: syntax error: unexpected end of file sh: error importing function definition for `BASH_FUNC_module' Repeats itself eight times per drush call. Drush still runs without a problem. Just blasts your terminal with loads of text. I have axed the .drush/ folder and re-run drush init. That does /bin/sh: module: line 1: syntax error: unexpected end of file not change the problem. Googling the error gets a lot of hits for many other issues. Ideas? Drush member weitzman commented Mar 17, 2016 No idea. Try Drupal Answers. weitzman closed this Mar 17, 2016 taz77 commented Mar 20, 2016 The problem is with Drush and the latest version of Bash shell. That is why I posted this here. taz77 commented Mar 20, 2016 https://stackoverflow.com/questions/10496758/unexpected-end-of-file-and-error-importing-function-definition-error-running mtift commented Apr 25, 2016 I have also experienced this problem on Fedora. It's not clear to me where to put the unset module command. taz77 commented Apr 26, 2016 Agreed. It's a compatibility issue that will grow once the newer versions of bash are more mainstream. They just don't realize it here yet. The maintainers are quick to close rather than diagnose. weitzman reopened this May 5, 2016 greg-1-anderson was assigned by weitzman May 5, 2016 Drush member greg-1-anderson commented May 5, 2016 Not sure this is caused by new versions of bash; this apparently was a problem for some folks in 2011. See: http://gridengine.org/pipermail/users/2011-November/002019.html I suspect that this problem is Fedora-specific. It would be helpful if a Fedora user could provide more diagnostic information on some of the suggested workarounds. mtift commented May 5, 2016 Hey, Greg! I run Debian on most of my machines, and I've never encountered this problem
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn /bin/bash: error importing function definition for `bash_func_module' more about Stack Overflow the company Business Learn more about hiring developers or posting sh: error importing function definition for `bash_func_module' + sap ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack `bash_func_module() () { eval `/usr/bin/modulecmd bash $*`' Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up 'Unexpected end of file' and 'error importing function definition' error running https://github.com/drush-ops/drush/issues/2065 shellscript using qsub up vote 8 down vote favorite 1 I have the following shellscript: #!/bin/sh cd /sw/local/bin/ export LD_LIBRARY_PATH=/sw/local/lib:/usr/local/Trolltech/Qt-4.7.2/lib:$LD_LIBRARY_PATH ./FeatureFinderRaw -in /homes/JG-C1-18.mzML -out /homes/test_remove_after_use.featureXML -threads 20 It works fine when I run it from my own command line, but when I try to do: qsub -q ningal.q -cwd -V -o /homes/queue.out -e /queue.err featureFind_C1-18_20t.sh I get the following error: /bin/sh: module: line 1: syntax error: unexpected end http://stackoverflow.com/questions/10496758/unexpected-end-of-file-and-error-importing-function-definition-error-running of file /bin/sh: error importing function definition for `module' ./FeatureFinderRaw: error while loading shared libraries: libOpenMS.so: cannot open shared object file: No such file or directory /bin/sh: module: line 1: syntax error: unexpected end of file /bin/sh: error importing function definition for `module' ./FeatureFinderRaw: error while loading shared libraries: libQtWebKit.so.4: cannot open shared object file: No such file or directory /bin/sh: module: line 1: syntax error: unexpected end of file /bin/sh: error importing function definition for `module' ./FeatureFinderRaw: error while loading shared libraries: libQtWebKit.so.4: cannot open shared object file: No such file or directory /bin/bash: module: line 1: syntax error: unexpected end of file /bin/bash: error importing function definition for `module' ./FeatureFinderRaw: error while loading shared libraries: libQtWebKit.so.4: cannot open shared object file: No such file or directory /bin/sh: module: line 1: syntax error: unexpected end of file /bin/sh: error importing function definition for `module' ./FeatureFinderRaw: error while loading shared libraries: libQtWebKit.so.4: cannot open shared object file: No such file or directory /bin/sh: module: line 1: syntax error: unexpected end of file /bin/sh: error importing function definition for `module' I don't understand why I get this error when using qsub, but not when running the script directly on the same cluster machine. How c
[x] Format For Printing -XML -Clone This Bug -Last https://bugzilla.redhat.com/show_bug.cgi?id=1172381 Comment First Last Prev Next This bug is not https://sourceforge.net/p/modules/mailman/message/23716482/ in your last search results. Bug1172381 - bash: error importing function definition for `BASH_FUNC_module' Summary: bash: error importing function definition for `BASH_FUNC_module' Status: CLOSED EOL Aliases: None Product: Fedora Classification: Fedora Component: konsole (Show other bugs) Sub Component: error importing --- Version: 20 Hardware: Unspecified Unspecified Priority unspecified Severity unspecified TargetMilestone: --- TargetRelease: --- Assigned To: Ngo Than QA Contact: Fedora Extras Quality Assurance Docs Contact: URL: Whiteboard: Keywords: Depends On: Blocks: Show dependency tree /graph Reported: 2014-12-09 19:11 EST by Rex Dieter Modified: 2015-06-29 19:46 EDT error importing function (History) CC List: 14 users (show) fweimer hgkamath john.haxby jreznik jsynacek kde-sig kevin ltinkl mmaslano orion rdieter rnovacek than tmraz See Also: 1147043 Fixed In Version: Doc Type: Bug Fix Doc Text: Story Points: --- Clone Of: Clones: 1306804 (view as bug list) Environment: Last Closed: 2015-06-29 19:46:43 EDT Type: Bug Regression: --- Mount Type: --- Documentation: --- CRM: Verified Versions: Category: --- oVirt Team: --- RHEL 7.3 requirements from Atomic Host: Cloudforms Team: --- Attachments (Terms of Use) requested log.txt (6.18 KB, text/plain) 2015-01-23 15:42 EST, Rex Dieter no flags Details diff_ansi_gnometerminal.txt (4.43 KB, text/plain) 2015-02-08 00:35 EST, Ganapathi Kamath no flags Details diff_ansi_gnometerminal_exports.txt (3.62 KB, text/plain) 2015-02-08 00:40 EST, Ganapathi Kamath no flags Details Add an attachment (proposed patch, testcase, etc.) Groups: None (edit) Description Rex Dieter 2014-12-09 19:11:19 EST I *think* this started recently with bash security fixes... open
clean. Screenshot instructions: Windows Mac Red Hat Linux Ubuntu Click URL instructions: Right-click on ad, choose "Copy Link", then paste here → (This may not be possible with some types of ads) More information about our ad policies X You seem to have CSS turned off. Please don't fill out this field. You seem to have CSS turned off. Please don't fill out this field. Briefly describe the problem (required): Upload screenshot of ad (required): Select a file, or drag & drop file here. ✔ ✘ Please provide the ad click URL, if possible: Home Browse Environment Modules Mailing Lists Environment Modules Manage your shell environment variables and aliases Brought to you by: leomania, rkowen, sirdude Summary Files Reviews Support Wiki Mailing Lists Code Tickets ▾ Patches Bugs Feature Requests Discussion Git ▾ Environment Modules - C Environment Modules - Tcl Only modules-interest Re: [Modules] modules error during job submission Re: [Modules] modules error during job submission From: Kevin Van Workum