composer archive create Error: Expected "#", "." or "\"" but "-" found v0.75 - blockchain

I am using composer version 0.75v. When I try to create a archive with the following command:
composer archive create --sourceType dir --sourceName . -a ./dist/my-network.bna
I get this back:
/Users/fabianhinsenkamp/Documents/businessNetwork
/usr/local/lib/node_modules/composer-cli/node_modules/yargs/yargs.js:1079
else throw err
^
ParseException: Expected "#", "." or "\"" but "-" found. Line 14 column 20
Do you know what is the problem? I tried to change the network files but it doesn't seem to be the problem.

would have to firstly check that your supported node/npm/docker versions matched these ->
Operating Systems: Ubuntu Linux 14.04 / 16.04 LTS (both 64-bit), or Mac OS 10.12
Docker Engine: Version 17.03 or higher
Docker-Compose: Version 1.8 or higher
Node: 6.x (note version 7 is not supported)
npm: 3.10.x
Note: we are (ie at time of writing) on Hyperledger Composer v0.9.2 - suggest to get this level of Hyperledger Composer (as there have been quite a few changes, since 0.7.5, including syntax in model transactions for example). You can try out your business network definition (ie modeled assets, participants, transactions etc in the online playground https://composer-playground.mybluemix.net/ to verify that everything is OK.

Related

Failure to "opam init", how to manually specify index.tar.gz?

I cannot opam init:
$ opam init --verbose
[NOTE] Will configure from built-in defaults.
Checking for available remotes: rsync and local, git, mercurial.
- you won't be able to use darcs repositories unless you install the darcs command on your system.
<><> Fetching repository information ><><><><><><><><><><><><><><><><><><><><><>
[ERROR] Could not update repository "default": OpamDownload.Download_fail(_, "Curl failed: \"/usr/bin/curl --write-out %{http_code}\\\\n --retry 3 --retry-delay 2
--user-agent opam/2.0.7 -L -o /tmp/opam-1697-6d07ae/index.tar.gz.part https://opam.ocaml.org/index.tar.gz\" exited with code 28")
[ERROR] Initial download of repository failed
However, I've manually downloaded index.tar.gz. How to manually specify index.tar.gz to opam init?
System info:
$ uname -a
CYGWIN_NT-10.0-19043 xxx 3.4.5-1.x86_64 2023-01-19 19:09 UTC x86_64 Cygwin
P.S. I'm trying to build one project using OCaml, but it turned out that it is very tricky: either OCaml complains about compatibility (is not a compiled interface for this version of OCaml followed by It seems to be for an older version of OCaml; does it mean that OCaml is not backward compatible?), either opam init fails, either <whatever>.
Your error message indicates that you either have network problems or very poor connection. Also, you opam version is very old, so it might not handle bad networks very well, I would suggest your installing a newer version of opam (at least 2.1.x), or, if it is possible, switching to docker or a virtual machine.
Answering your original question: I don't think there is a way (at least officially supported to specify your own downloaded index). Also, if you have trouble with downloading the index it most likely means that you will have more trouble in the future with your network when opam will start downloading actual packages.

Need a better understanding of installing AWS-Nuke for Mac

Im sure this this just a lack of knowledge on my end but im having a hard time understand how to install aws-nuke following there documentation. I have downloaded the latest release but install instructions are not so clear for me https://github.com/rebuy-de/aws-nuke#:~:text=Use%20Released%20Binaries,Run%20%24%20aws%2Dnuke%2Dv2.16.0%2Dlinux%2Damd64
Any suggestions would be appreciated.
On a Mac you can run aws-nuke using the following steps:
Open a terminal (Command + Space and write terminal)
Grab the latest version of the aws-nuke. Currently the latest version is 2.17.0 but obviously this will change in the future. In order to download aws-nuke, we can run the following command:
For M1 Mac:
wget https://github.com/rebuy-de/aws-nuke/releases/download/v2.17.0/aws-nuke-v2.17.0-darwin-arm64.tar.gz
For intel Mac:
wget https://github.com/rebuy-de/aws-nuke/releases/download/v2.17.0/aws-nuke-v2.17.0-darwin-amd64.tar.gz
Extract the package using the following command (note: use amd64 instead of arm64 if you are on an intel Mac):
tar -xvf aws-nuke-v2.17.0-darwin-arm64.tar.gz
Create a config.yml file with the following content and place it nearby the extracted executable:
regions:
- global
account-blocklist:
- "999999999999" # leave it as it is, since the current version wont work if you don't provide a blocklist
accounts:
"000000000000": {} # fill in your own AWS account number
Run the following command:
./aws-nuke-v2.17.0-darwin-arm64 -c config.yml
This should list the resources which might be deleted. If you are ok with the list, append --no-dry-run to the previous command.

Parser error during archiving business network: const is reserved

I'm unable to create an archive using basic network samples "Digital Property network model".
Context
I always get the following error
Expected Behavior
Network archived!
Actual Behavior
azureuser#hyperledger101:~/.nvm/v6.9.5/lib/node_modules/composer-cli$ composer archive create --archiveFile digitialPropertyNetwork.zip --sourceType module --sourceName digitalproperty-network
Creating Business Network Archive
Looking for package.json of Business Network Definition
Input directory: /home/azureuser/.nvm/v6.9.5/lib/node_modules/digitalproperty-network
/home/azureuser/.nvm/v6.9.5/lib/node_modules/composer-cli/node_modules/yargs/yargs.js:1079
else throw err
^
SyntaxError: The keyword 'const' is reserved (17:0)
at Parser.pp$4.raise (/home/azureuser/.nvm/v6.9.5/lib/node_modules/composer-cli/node_modules/acorn/dist/acorn.js:2488:13)
at Parser.pp$3.parseIdent (/home/azureuser/.nvm/v6.9.5/lib/node_modules/composer-cli/node_modules/acorn/dist/acorn.js:2436:12)
at Parser.pp$3.parseExprAtom (/home/azureuser/.nvm/v6.9.5/lib/node_modules/composer-cli/node_modules/acorn/dist/acorn.js:1946:19)
at Parser.pp$3.parseExprSubscripts (/home/azureuser/.nvm/v6.9.5/lib/node_modules/composer-cli/node_modules/acorn/dist/acorn.js:1872:19)
at Parser.pp$3.parseMaybeUnary (/home/azureuser/.nvm/v6.9.5/lib/node_modules/composer-cli/node_modules/acorn/dist/acorn.js:1849:17)
at Parser.pp$3.parseExprOps (/home/azureuser/.nvm/v6.9.5/lib/node_modules/composer-cli/node_modules/acorn/dist/acorn.js:1791:19)
at Parser.pp$3.parseMaybeConditional (/home/azureuser/.nvm/v6.9.5/lib/node_modules/composer-cli/node_modules/acorn/dist/acorn.js:1774:19)
at Parser.pp$3.parseMaybeAssign (/home/azureuser/.nvm/v6.9.5/lib/node_modules/composer-cli/node_modules/acorn/dist/acorn.js:1750:19)
at Parser.pp$3.parseExpression (/home/azureuser/.nvm/v6.9.5/lib/node_modules/composer-cli/node_modules/acorn/dist/acorn.js:1722:19)
at Parser.pp$1.parseStatement (/home/azureuser/.nvm/v6.9.5/lib/node_modules/composer-cli/node_modules/acorn/dist/acorn.js:777:45)
Environment
Version used: composer-cli v0.9.0
Environment name and version (e.g. Chrome 39, node.js 5.4):
node --version
v6.9.5
Operating System and version (desktop or mobile): Ubuntu 14.04
Retry the command with digitialPropertyNetwork.bna. I mean change the extension in the composer archive create... command.

How do I tell ColdFusion 9.0.1 to use a directory besides /tmp?

I installed ColdFusion 9.0.0 today and I'm trying to upgrade to 9.0.1.
Linux 64bit environment.
I don't have root access.
/tmp doesn't seem to have enough room to install 9.0.1
I found the following errors in /opt/coldfusion9/Adobe_ColdFusion_9.0.1_InstallLog.log
Install File: /tmp/515453.tmp/cf-multi-startup
Status: ERROR
Additional Notes: ERROR - ZeroGlq: No space left on device
Install File: /tmp/515453.tmp/cf-init.sh
Status: ERROR
Additional Notes: ERROR - ZeroGlq: No space left on device
I tried -D IATEMPDIR=/opt/temp, but installer says it's trying to use /home/coldfusion due to lack of space in /tmp. It tries to use /tmp anyway.
Any ideas?
Here's my final script that worked. I had to fill /tmp and /home to 100% to get a decent error response out of the bin file. I'm sure my Linux admins were very pleased.
cd /opt/coldfusion9/bin
IATEMPDIR=/home/coldfusion
export IATEMPDIR
LAX_DEBUG=1
export LAX_DEBUG
./ColdFusion_update_901_WWEJ_linux64.bin

Mac/Django error message: "/mercurial/osutil.so: no appropriate 64-bit architecture"

I'm new to Macs (and quite new to Django) and I'm setting up an existing Django/MySQL site that uses Mercurial as a site package, on a new Macbook Pro.
All was going well during installation - no error messages. I installed the default versions of most packages from macports.
However when I try runserver, localhost shows the following error message:
ImportError at /
.../lib/python2.6/site-packages/mercurial/osutil.so: no appropriate 64-bit architecture (see "man python" for running in 32-bit mode)
Please could anyone advise? I've tried typing the following at the terminal:
defaults write com.apple.versioner.python Prefer-32-Bit -bool yes
but it didn't help.
I've gotten a similar error and a combination of two things helped me install Mercurial for OS X Lion. I'm running OS X 10.7.3.
First, there is a bug on line 455 of the setup.py script (at least for Mercurial 2.2.1, the version I tried). The line
version = runcmd(['/usr/bin/xcodebuild', '-version'], {})[0].splitlines()
should be replaced with
version = runcmd(['/usr/bin/xcodebuild', '-version'], {})[0]
Second, after I installed Mercurial (either by easy_install, Mac OS X binary installer, and compilation), I kept getting the following error message:
ImportError: dlopen(/Library/Python/2.7/site-packages/mercurial/osutil.so, 2): no suitable image found. Did find: /Library/Python/2.7/site-packages/mercurial/osutil.so: mach-o, but wrong architecture
However, after seeing this post, I noticed that
defaults read com.apple.versioner.python Prefer-32-Bit
outputs 1 on my system. However, running this command
defaults write com.apple.versioner.python Prefer-32-Bit -bool no
and then recompiling / installing mercurial resulted in a working executable for me at the end.
If everything from my comment checks out, try setting that Prefer-32-bit in an user environment variable instead of at the command line.
Edit this file: ~/.MacOSX/environment.plist
See:
http://developer.apple.com/mac/library/documentation/MacOSX/Conceptual/BPRuntimeConfig/Articles/EnvironmentVars.html#//apple_ref/doc/uid/20002093-113982