Open WChauncey opened 3 weeks ago
Which python version are you using? Also, is it running on a Linux or Mac system?
Thanks, Bo
From: Chandler Wu @.> Sent: Saturday, November 2, 2024 5:19 AM To: s175573/GIANA @.> Cc: Subscribed @.***> Subject: [External][s175573/GIANA] Error when running GIANA4.1 (Issue #15)
Dear Author, when I run your code, it shows that there is no module named "resource," but I have already downloaded this module using the command “pip install resource”. The specific error is as follows:
Traceback (most recent call last): File "D:\Anaconda3\Lib\site-packages\IPython\core\interactiveshell.py", line 3577, in run_code exec(code_obj, self.user_global_ns, self.user_ns) File "", line 1, in runfile('D:\PycharmProjects\pythonProject\project1\GIANA4.1.py', wdir='D:\PycharmProjects\pythonProject\project1') File "D:\py\Pycharm\plugins\python\helpers\pydev_pydev_bundle\pydev_umd.py", line 198, in runfile pydev_imports.execfile(filename, global_vars, local_vars) # execute the script ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\py\Pycharm\plugins\python\helpers\pydev_pydev_imps_pydev_execfile.py", line 18, in execfile exec(compile(contents+"\n", file, 'exec'), glob, loc) File "D:\PycharmProjects\pythonProject\project1\GIANA4.1.py", line 24, in import sys, os, re, resource File "D:\py\Pycharm\plugins\python\helpers\pydev_pydev_bundle\pydev_import_hook.py", line 21, in do_import module = self._system_import(name, *args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ModuleNotFoundError: No module named 'resource'
— Reply to this email directly, view it on GitHubhttps://github.com/s175573/GIANA/issues/15, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AKWYQCZS74X7EHBUTBVWQRDZ6SKJZAVCNFSM6AAAAABRBRYNIGVHI2DSMVQWIX3LMV43ASLTON2WKOZSGYZTAMZTG42TAOA. You are receiving this because you are subscribed to this thread.Message ID: @.***>
This email originated from an EXTERNAL sender to CHOP. Proceed with caution when replying, opening attachments, or clicking links. Do not disclose your CHOP credentials, employee information, or protected health information to a potential hacker.
Hello, author. I am using Python 3.12. I apologize, I’m a beginner with Python, and I‘m running it in a Windows environment. I will try running it in a Linux environment to see if it works.
Dear Author, when I run your code, it shows that there is no module named "resource," but I have already downloaded this module using the command “pip install resource”. The specific error is as follows:
Traceback (most recent call last): File "D:\Anaconda3\Lib\site-packages\IPython\core\interactiveshell.py", line 3577, in run_code exec(code_obj, self.user_global_ns, self.user_ns) File "", line 1, in
runfile('D:\PycharmProjects\pythonProject\project1\GIANA4.1.py', wdir='D:\PycharmProjects\pythonProject\project1')
File "D:\py\Pycharm\plugins\python\helpers\pydev_pydev_bundle\pydev_umd.py", line 198, in runfile
pydev_imports.execfile(filename, global_vars, local_vars) # execute the script
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\py\Pycharm\plugins\python\helpers\pydev_pydev_imps_pydev_execfile.py", line 18, in execfile
exec(compile(contents+"\n", file, 'exec'), glob, loc)
File "D:\PycharmProjects\pythonProject\project1\GIANA4.1.py", line 24, in
import sys, os, re, resource
File "D:\py\Pycharm\plugins\python\helpers\pydev_pydev_bundle\pydev_import_hook.py", line 21, in do_import
module = self._system_import(name, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ModuleNotFoundError: No module named 'resource'