Print

Print


On 6/5/20 1:59 PM, Michal Simon wrote:
> Hi Adrian,
> 
> Sorry for the late response!
> 
> Indeed you managed to amaze me ;-) you’re full of surprises ;-)
> 
> It fails at this line: https://github.com/xrootd/xrootd/blob/master/packaging/wheel/setup.py#L11
> 
> It seems the './genversion.sh' (https://github.com/xrootd/xrootd/blob/master/genversion.sh) is not in CWD,
> which is strange as the pip should run the setup.py from the root directory of the project, hmmm
> 
> Any chance you could check the CWD?
so... i think that i spotted the problem .. any chance of changing all shebang usage to /usr/bin/env bash?
the default shell is the busybox's ash

while modern/enterprise switches and routers have complete linux installations (like debian or fedora)
the small ones have only busybox (likely also on phones), so any other package have high chances of being
in a non standard location
admin@ac66u:/tmp/mnt/AC66U/entware/home/root# which bash
/opt/bin/bash

In mean time i will see if i can do it directly from git and when working i will do a pr :)
Adrian


> 
> Cheers,
> Michal
> 
>> On 29 May 2020, at 00:29, Adrian Sevcenco <[log in to unmask] <mailto:[log in to unmask]>> wrote:
>>
>> So, if i'm not first for sure i'm among just a few that tries to install the xrootd python bindings on it's router :D
>>
>> so, the environment is highly non-standard, operations are executed as root, the include dependencies are almost by hand added etc...
>> so, while trying the pip install i got this :
>>
>> admin@ac66u:/tmp/home/root# pip3 install xrootd
>> Collecting xrootd
>>  Using cached xrootd-4.12.0.tar.gz (2.6 MB)
>>    ERROR: Command errored out with exit status 1:
>>     command: /opt/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/mnt/AC66U/entware/tmp/pip-install-bnlclidb/xrootd/setup.py'"'"'; __file__='"'"'/tmp/mnt/AC66U/entware/tmp/pip-install-bnlclidb/xrootd/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/mnt/AC66U/entware/tmp/pip-pip-egg-info-jwr6blya
>>         cwd: /tmp/mnt/AC66U/entware/tmp/pip-install-bnlclidb/xrootd/
>>    Complete output (11 lines):
>>    Traceback (most recent call last):
>>      File "<string>", line 1, in <module>
>>      File "/tmp/mnt/AC66U/entware/tmp/pip-install-bnlclidb/xrootd/setup.py", line 118, in <module>
>>        version = get_version()
>>      File "/tmp/mnt/AC66U/entware/tmp/pip-install-bnlclidb/xrootd/setup.py", line 11, in get_version
>>        version = subprocess.check_output(['./genversion.sh', '--print-only'])
>>      File "/subprocess.py", line 411, in check_output
>>      File "/subprocess.py", line 489, in run
>>      File "/subprocess.py", line 854, in __init__
>>      File "/subprocess.py", line 1702, in _execute_child
>>    FileNotFoundError: [Errno 2] No such file or directory: './genversion.sh'
>>    ----------------------------------------
>> ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
>>
>> so, any idea what is going on?
>> while bash is installed, it lives in /opt/bin
>> maybe the scripts can change from a hardcoded /bin/bash to
>> /usr/bin/env bash ?
>>
>> Thank you!
>> Adrian
>>
>>
>> ########################################################################
>> Use REPLY-ALL to reply to list
>>
>> To unsubscribe from the XROOTD-L list, click the following link:
>> https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=XROOTD-L&A=1
> 

########################################################################
Use REPLY-ALL to reply to list

To unsubscribe from the XROOTD-L list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=XROOTD-L&A=1