Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error: Getting some error while setting up the environment. #4791

Closed
2 tasks done
lkbhitesh07 opened this issue Mar 4, 2021 · 5 comments
Closed
2 tasks done

error: Getting some error while setting up the environment. #4791

lkbhitesh07 opened this issue Mar 4, 2021 · 5 comments
Labels

Comments

@lkbhitesh07
Copy link

Your environment

  • Operating system [e.g. Linux]: Ubuntu 18.04
  • Python version [e.g. 3.7.1]: 3.7.5
  • aiida-core version [e.g. 1.2.1]:

Issue

I was first facing one attribute error while setting up the environment which was AttributeError: module 'setuptools.build_meta' has no attribute '__legacy__' it was resolved by here suggested by @ltalirz. Now I am facing another issue which is

Installing collected packages: aiida-core
  Running setup.py develop for aiida-core
    ERROR: Command errored out with exit status 1:
     command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/home/ht/opensource/aiida-core/setup.py'"'"'; __file__='"'"'/home/ht/opensource/aiida-core/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' develop --no-deps --user --prefix=
         cwd: /home/ht/opensource/aiida-core/
    Complete output (15 lines):
    /usr/lib/python3.7/distutils/dist.py:274: UserWarning: Unknown distribution option: 'long_description_content_type'
      warnings.warn(msg)
    [ REENTRY ] registering entry points with reentry...
    [ REENTRY ] ... registered to /home/ht/.config/reentry/data/06a032212d5bb565a52c418d6be982833c91b91e01c42d5cbd6017e5185d534d
    [ REENTRY ] Following entrypoints were registered
    
    	aiida-core -> {'aiida.calculations': {'core.transfer': 'core.transfer = aiida.calculations.transfer:TransferCalculation', 'arithmetic.add': 'arithmetic.add = aiida.calculations.arithmetic.add:ArithmeticAddCalculation', 'templatereplacer': 'templatereplacer = aiida.calculations.templatereplacer:TemplatereplacerCalculation'}, 'aiida.cmdline.computer.configure': {'local': 'local = aiida.transports.plugins.local:CONFIGURE_LOCAL_CMD', 'ssh': 'ssh = aiida.transports.plugins.ssh:CONFIGURE_SSH_CMD'}, 'aiida.cmdline.data': {'array': 'array = aiida.cmdline.commands.cmd_data.cmd_array:array', 'bands': 'bands = aiida.cmdline.commands.cmd_data.cmd_bands:bands', 'cif': 'cif = aiida.cmdline.commands.cmd_data.cmd_cif:cif', 'dict': 'dict = aiida.cmdline.commands.cmd_data.cmd_dict:dictionary', 'remote': 'remote = aiida.cmdline.commands.cmd_data.cmd_remote:remote', 'singlefile': 'singlefile = aiida.cmdline.commands.cmd_data.cmd_singlefile:singlefile', 'structure': 'structure = aiida.cmdline.commands.cmd_data.cmd_structure:structure', 'trajectory': 'trajectory = aiida.cmdline.commands.cmd_data.cmd_trajectory:trajectory', 'upf': 'upf = aiida.cmdline.commands.cmd_data.cmd_upf:upf'}, 'aiida.data': {'array': 'array = aiida.orm.nodes.data.array.array:ArrayData', 'array.bands': 'array.bands = aiida.orm.nodes.data.array.bands:BandsData', 'array.kpoints': 'array.kpoints = aiida.orm.nodes.data.array.kpoints:KpointsData', 'array.projection': 'array.projection = aiida.orm.nodes.data.array.projection:ProjectionData', 'array.trajectory': 'array.trajectory = aiida.orm.nodes.data.array.trajectory:TrajectoryData', 'array.xy': 'array.xy = aiida.orm.nodes.data.array.xy:XyData', 'base': 'base = aiida.orm.nodes.data:BaseType', 'bool': 'bool = aiida.orm.nodes.data.bool:Bool', 'cif': 'cif = aiida.orm.nodes.data.cif:CifData', 'code': 'code = aiida.orm.nodes.data.code:Code', 'dict': 'dict = aiida.orm.nodes.data.dict:Dict', 'float': 'float = aiida.orm.nodes.data.float:Float', 'folder': 'folder = aiida.orm.nodes.data.folder:FolderData', 'int': 'int = aiida.orm.nodes.data.int:Int', 'list': 'list = aiida.orm.nodes.data.list:List', 'numeric': 'numeric = aiida.orm.nodes.data.numeric:NumericType', 'orbital': 'orbital = aiida.orm.nodes.data.orbital:OrbitalData', 'remote': 'remote = aiida.orm.nodes.data.remote:RemoteData', 'singlefile': 'singlefile = aiida.orm.nodes.data.singlefile:SinglefileData', 'str': 'str = aiida.orm.nodes.data.str:Str', 'structure': 'structure = aiida.orm.nodes.data.structure:StructureData', 'upf': 'upf = aiida.orm.nodes.data.upf:UpfData'}, 'aiida.groups': {'core': 'core = aiida.orm.groups:Group', 'core.auto': 'core.auto = aiida.orm.groups:AutoGroup', 'core.import': 'core.import = aiida.orm.groups:ImportGroup', 'core.upf': 'core.upf = aiida.orm.groups:UpfFamily'}, 'aiida.node': {'data': 'data = aiida.orm.nodes.data.data:Data', 'process': 'process = aiida.orm.nodes.process.process:ProcessNode', 'process.calculation': 'process.calculation = aiida.orm.nodes.process.calculation.calculation:CalculationNode', 'process.calculation.calcfunction': 'process.calculation.calcfunction = aiida.orm.nodes.process.calculation.calcfunction:CalcFunctionNode', 'process.calculation.calcjob': 'process.calculation.calcjob = aiida.orm.nodes.process.calculation.calcjob:CalcJobNode', 'process.workflow': 'process.workflow = aiida.orm.nodes.process.workflow.workflow:WorkflowNode', 'process.workflow.workchain': 'process.workflow.workchain = aiida.orm.nodes.process.workflow.workchain:WorkChainNode', 'process.workflow.workfunction': 'process.workflow.workfunction = aiida.orm.nodes.process.workflow.workfunction:WorkFunctionNode'}, 'aiida.parsers': {'arithmetic.add': 'arithmetic.add = aiida.parsers.plugins.arithmetic.add:ArithmeticAddParser', 'templatereplacer.doubler': 'templatereplacer.doubler = aiida.parsers.plugins.templatereplacer.doubler:TemplatereplacerDoublerParser'}, 'aiida.schedulers': {'direct': 'direct = aiida.schedulers.plugins.direct:DirectScheduler', 'lsf': 'lsf = aiida.schedulers.plugins.lsf:LsfScheduler', 'pbspro': 'pbspro = aiida.schedulers.plugins.pbspro:PbsproScheduler', 'sge': 'sge = aiida.schedulers.plugins.sge:SgeScheduler', 'slurm': 'slurm = aiida.schedulers.plugins.slurm:SlurmScheduler', 'torque': 'torque = aiida.schedulers.plugins.torque:TorqueScheduler'}, 'aiida.transports': {'local': 'local = aiida.transports.plugins.local:LocalTransport', 'ssh': 'ssh = aiida.transports.plugins.ssh:SshTransport'}, 'aiida.tools.calculations': {}, 'aiida.tools.dbexporters': {}, 'aiida.tools.dbimporters': {'cod': 'cod = aiida.tools.dbimporters.plugins.cod:CodDbImporter', 'icsd': 'icsd = aiida.tools.dbimporters.plugins.icsd:IcsdDbImporter', 'materialsproject': 'materialsproject = aiida.tools.dbimporters.plugins.materialsproject:MaterialsProjectImporter', 'mpds': 'mpds = aiida.tools.dbimporters.plugins.mpds:MpdsDbImporter', 'mpod': 'mpod = aiida.tools.dbimporters.plugins.mpod:MpodDbImporter', 'nninc': 'nninc = aiida.tools.dbimporters.plugins.nninc:NnincDbImporter', 'oqmd': 'oqmd = aiida.tools.dbimporters.plugins.oqmd:OqmdDbImporter', 'pcod': 'pcod = aiida.tools.dbimporters.plugins.pcod:PcodDbImporter', 'tcod': 'tcod = aiida.tools.dbimporters.plugins.tcod:TcodDbImporter'}, 'aiida.tools.data.orbitals': {'orbital': 'orbital = aiida.tools.data.orbital.orbital:Orbital', 'realhydrogen': 'realhydrogen = aiida.tools.data.orbital.realhydrogen:RealhydrogenOrbital'}, 'aiida.workflows': {'arithmetic.multiply_add': 'arithmetic.multiply_add = aiida.workflows.arithmetic.multiply_add:MultiplyAddWorkChain', 'arithmetic.add_multiply': 'arithmetic.add_multiply = aiida.workflows.arithmetic.add_multiply:add_multiply'}}
    [ REENTRY ] Current entry point map at /home/ht/.config/reentry/data/06a032212d5bb565a52c418d6be982833c91b91e01c42d5cbd6017e5185d534d:
    	aiida-core -> {'aiida.calculations': {'core.transfer': 'core.transfer = aiida.calculations.transfer:TransferCalculation', 'arithmetic.add': 'arithmetic.add = aiida.calculations.arithmetic.add:ArithmeticAddCalculation', 'templatereplacer': 'templatereplacer = aiida.calculations.templatereplacer:TemplatereplacerCalculation'}, 'aiida.cmdline.computer.configure': {'local': 'local = aiida.transports.plugins.local:CONFIGURE_LOCAL_CMD', 'ssh': 'ssh = aiida.transports.plugins.ssh:CONFIGURE_SSH_CMD'}, 'aiida.cmdline.data': {'array': 'array = aiida.cmdline.commands.cmd_data.cmd_array:array', 'bands': 'bands = aiida.cmdline.commands.cmd_data.cmd_bands:bands', 'cif': 'cif = aiida.cmdline.commands.cmd_data.cmd_cif:cif', 'dict': 'dict = aiida.cmdline.commands.cmd_data.cmd_dict:dictionary', 'remote': 'remote = aiida.cmdline.commands.cmd_data.cmd_remote:remote', 'singlefile': 'singlefile = aiida.cmdline.commands.cmd_data.cmd_singlefile:singlefile', 'structure': 'structure = aiida.cmdline.commands.cmd_data.cmd_structure:structure', 'trajectory': 'trajectory = aiida.cmdline.commands.cmd_data.cmd_trajectory:trajectory', 'upf': 'upf = aiida.cmdline.commands.cmd_data.cmd_upf:upf'}, 'aiida.data': {'array': 'array = aiida.orm.nodes.data.array.array:ArrayData', 'array.bands': 'array.bands = aiida.orm.nodes.data.array.bands:BandsData', 'array.kpoints': 'array.kpoints = aiida.orm.nodes.data.array.kpoints:KpointsData', 'array.projection': 'array.projection = aiida.orm.nodes.data.array.projection:ProjectionData', 'array.trajectory': 'array.trajectory = aiida.orm.nodes.data.array.trajectory:TrajectoryData', 'array.xy': 'array.xy = aiida.orm.nodes.data.array.xy:XyData', 'base': 'base = aiida.orm.nodes.data:BaseType', 'bool': 'bool = aiida.orm.nodes.data.bool:Bool', 'cif': 'cif = aiida.orm.nodes.data.cif:CifData', 'code': 'code = aiida.orm.nodes.data.code:Code', 'dict': 'dict = aiida.orm.nodes.data.dict:Dict', 'float': 'float = aiida.orm.nodes.data.float:Float', 'folder': 'folder = aiida.orm.nodes.data.folder:FolderData', 'int': 'int = aiida.orm.nodes.data.int:Int', 'list': 'list = aiida.orm.nodes.data.list:List', 'numeric': 'numeric = aiida.orm.nodes.data.numeric:NumericType', 'orbital': 'orbital = aiida.orm.nodes.data.orbital:OrbitalData', 'remote': 'remote = aiida.orm.nodes.data.remote:RemoteData', 'singlefile': 'singlefile = aiida.orm.nodes.data.singlefile:SinglefileData', 'str': 'str = aiida.orm.nodes.data.str:Str', 'structure': 'structure = aiida.orm.nodes.data.structure:StructureData', 'upf': 'upf = aiida.orm.nodes.data.upf:UpfData'}, 'aiida.groups': {'core': 'core = aiida.orm.groups:Group', 'core.auto': 'core.auto = aiida.orm.groups:AutoGroup', 'core.import': 'core.import = aiida.orm.groups:ImportGroup', 'core.upf': 'core.upf = aiida.orm.groups:UpfFamily'}, 'aiida.node': {'data': 'data = aiida.orm.nodes.data.data:Data', 'process': 'process = aiida.orm.nodes.process.process:ProcessNode', 'process.calculation': 'process.calculation = aiida.orm.nodes.process.calculation.calculation:CalculationNode', 'process.calculation.calcfunction': 'process.calculation.calcfunction = aiida.orm.nodes.process.calculation.calcfunction:CalcFunctionNode', 'process.calculation.calcjob': 'process.calculation.calcjob = aiida.orm.nodes.process.calculation.calcjob:CalcJobNode', 'process.workflow': 'process.workflow = aiida.orm.nodes.process.workflow.workflow:WorkflowNode', 'process.workflow.workchain': 'process.workflow.workchain = aiida.orm.nodes.process.workflow.workchain:WorkChainNode', 'process.workflow.workfunction': 'process.workflow.workfunction = aiida.orm.nodes.process.workflow.workfunction:WorkFunctionNode'}, 'aiida.parsers': {'arithmetic.add': 'arithmetic.add = aiida.parsers.plugins.arithmetic.add:ArithmeticAddParser', 'templatereplacer.doubler': 'templatereplacer.doubler = aiida.parsers.plugins.templatereplacer.doubler:TemplatereplacerDoublerParser'}, 'aiida.schedulers': {'direct': 'direct = aiida.schedulers.plugins.direct:DirectScheduler', 'lsf': 'lsf = aiida.schedulers.plugins.lsf:LsfScheduler', 'pbspro': 'pbspro = aiida.schedulers.plugins.pbspro:PbsproScheduler', 'sge': 'sge = aiida.schedulers.plugins.sge:SgeScheduler', 'slurm': 'slurm = aiida.schedulers.plugins.slurm:SlurmScheduler', 'torque': 'torque = aiida.schedulers.plugins.torque:TorqueScheduler'}, 'aiida.transports': {'local': 'local = aiida.transports.plugins.local:LocalTransport', 'ssh': 'ssh = aiida.transports.plugins.ssh:SshTransport'}, 'aiida.tools.calculations': {}, 'aiida.tools.dbexporters': {}, 'aiida.tools.dbimporters': {'cod': 'cod = aiida.tools.dbimporters.plugins.cod:CodDbImporter', 'icsd': 'icsd = aiida.tools.dbimporters.plugins.icsd:IcsdDbImporter', 'materialsproject': 'materialsproject = aiida.tools.dbimporters.plugins.materialsproject:MaterialsProjectImporter', 'mpds': 'mpds = aiida.tools.dbimporters.plugins.mpds:MpdsDbImporter', 'mpod': 'mpod = aiida.tools.dbimporters.plugins.mpod:MpodDbImporter', 'nninc': 'nninc = aiida.tools.dbimporters.plugins.nninc:NnincDbImporter', 'oqmd': 'oqmd = aiida.tools.dbimporters.plugins.oqmd:OqmdDbImporter', 'pcod': 'pcod = aiida.tools.dbimporters.plugins.pcod:PcodDbImporter', 'tcod': 'tcod = aiida.tools.dbimporters.plugins.tcod:TcodDbImporter'}, 'aiida.tools.data.orbitals': {'orbital': 'orbital = aiida.tools.data.orbital.orbital:Orbital', 'realhydrogen': 'realhydrogen = aiida.tools.data.orbital.realhydrogen:RealhydrogenOrbital'}, 'aiida.workflows': {'arithmetic.multiply_add': 'arithmetic.multiply_add = aiida.workflows.arithmetic.multiply_add:MultiplyAddWorkChain', 'arithmetic.add_multiply': 'arithmetic.add_multiply = aiida.workflows.arithmetic.add_multiply:add_multiply'}}
    usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
       or: setup.py --help [cmd1 cmd2 ...]
       or: setup.py --help-commands
       or: setup.py cmd --help
    
    error: option --user not recognized
    ----------------------------------------
ERROR: Command errored out with exit status 1: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/home/ht/opensource/aiida-core/setup.py'"'"'; __file__='"'"'/home/ht/opensource/aiida-core/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' develop --no-deps --user --prefix= Check the logs for full command output.
@ltalirz
Copy link
Member

ltalirz commented Mar 4, 2021

hi @lkbhitesh07 - sorry for the issues, but it seems to me that something about your python environment isn't quite right.
Can you please report the steps you took and the commands you've been running?

I personally recommend using miniconda for creating environments, since it makes it very easy to create environments with a specific python version (and then I usually use pip inside the environment to manage packages, since not all packages are available on conda).

@lkbhitesh07
Copy link
Author

lkbhitesh07 commented Mar 5, 2021

Thank you so much for replying @ltalirz , I was following the guide which is mentioned in the contributors wiki in development part here and yes you might be right, actually I set up the environment with the help of virtualenv. I'll try to do with the miniconda and will update you.
Sorry for late reply.
Thanks

@lkbhitesh07
Copy link
Author

The error has been resolved, thank you so much.
For those who incase encounters the same problem I did, you can follow these commands:

  1. Installing miniconda from here.
  2. When it'll ask to run miniconda in the first place make sure to type yes
  3. Close the terminal and reopen again.
  4. Now set the environment using conda
  5. Now follow the development setup guide and make sure to run this command pip install -e .[pre-commit] with sudo due to permission issues.
    Thanks

@ltalirz
Copy link
Member

ltalirz commented Mar 5, 2021

@lkbhitesh07
Copy link
Author

Thanks @ltalirz.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants